Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84835568
run_tests.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 25, 03:52
Size
747 B
Mime Type
text/x-shellscript
Expires
Fri, Sep 27, 03:52 (2 d)
Engine
blob
Format
Raw Data
Handle
21093660
Attached To
rTAMAAS tamaas
run_tests.sh
View Options
#!/bin/bash
n_tests=0
passed_tests=0
for test_file in test_*.py; do
((n_tests++))
echo "Testing $test_file"
echo -n "------------ "
python $test_file >/dev/null 2>&1
result=$?
if [ $result -ne 0 ]; then
echo "failure"
else
echo "success"
((passed_tests++))
fi
done
python test_fractal.py 2>/dev/null | tail -n 19 > test_fractal.out 2>&1
diff test_fractal.out test_fractal.verified >/dev/null 2>&1
result=$?
if [ $result -ne 0 ]; then
echo ""
echo "test_fractal.py diff failed"
((passed_tests--))
fi
rm test_fractal.out
failed_tests=$((n_tests - passed_tests))
echo ""
echo "Test results :"
echo " - passed $passed_tests/$n_tests"
echo " - failed $failed_tests/$n_tests"
Event Timeline
Log In to Comment