Skip to content

Instantly share code, notes, and snippets.

@CubicPill
Created December 29, 2017 09:26
Show Gist options
  • Save CubicPill/cf4ccc81bd8fc23157ab0df0d189c52a to your computer and use it in GitHub Desktop.
Save CubicPill/cf4ccc81bd8fc23157ab0df0d189c52a to your computer and use it in GitHub Desktop.
CARP solver usability auto check
#!/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