-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Wiseblatt
authored
Mar 21, 2017
1 parent
5a5e822
commit 30054b6
Showing
7 changed files
with
47 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
cd `dirname $0` | ||
TEST_DIR=`pwd` | ||
|
||
# Some tests need to be in the build directory | ||
# so run them all from there. | ||
cd $TEST_DIR/../.. | ||
|
||
passed_tests=() | ||
failed_tests=() | ||
|
||
for test in `cd $TEST_DIR; ls *_test.py`; do | ||
echo "Running $test" | ||
PYTHONPATH=$TEST_DIR/../pylib:$TEST_DIR/../dev python $TEST_DIR/$test | ||
|
||
if [[ $? -eq 0 ]]; then | ||
passed_tests+=("$test") | ||
else | ||
failed_tests+=("$test") | ||
fi | ||
done | ||
|
||
if [[ ${#failed_tests[@]} -eq 0 ]]; then | ||
echo "PASSED ALL ${#passed_tests[@]} TESTS" | ||
exit 0 | ||
fi | ||
|
||
>&2 echo "FAILED ${#failed_tests[@]} TESTS" | ||
for test in ${failed_tests[@]}; do | ||
>&2 echo "FAILED: $test" | ||
done | ||
exit -1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters