test-all script reports success or failure.
This commit is contained in:
parent
c2aca79428
commit
49ab630c15
1 changed files with 9 additions and 1 deletions
10
test-all
10
test-all
|
|
@ -1,9 +1,17 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
FAILURE=0
|
||||
CODEBASE_PATH=$(dirname $0)
|
||||
for test in ${CODEBASE_PATH}/*_test.py; do
|
||||
echo "Testing $test ..."
|
||||
./${test} 2>&1
|
||||
${test} 2>&1
|
||||
FAILURE=$(($FAILURE | $?))
|
||||
echo
|
||||
done
|
||||
if [ $FAILURE -eq 0 ]; then
|
||||
echo "Tests passed."
|
||||
else
|
||||
echo "Tests failed."
|
||||
fi
|
||||
exit $FAILURE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue