Created
December 29, 2017 09:26
-
-
Save CubicPill/cf4ccc81bd8fc23157ab0df0d189c52a to your computer and use it in GitHub Desktop.
CARP solver usability auto check
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
#!/bin/bash | |
echo 'Test script starting...' | |
python3 ./usability_test.py | |
echo 'Script done!' | |
cd ./carp_extract/ | |
for sid in `ls` | |
do | |
echo "----------Testing cases for $sid----------" | |
for loop in 0 1 2 3 4 | |
do | |
test_case="../benchmarks/new_gdb/new_gdb$[loop+1].dat" | |
result_file="../results/usability/${sid}_case_$loop" | |
echo "case "$loop | |
if test -f "$result_file" | |
then | |
python3 ../check_solution.py $test_case $result_file | |
else | |
echo "No output file" | |
fi | |
done | |
echo "----------Done $sid----------" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment