diff --git a/run_tests.sh b/run_tests.sh index 25efa8b..fa95c9d 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,11 +1,12 @@ GRAPHS=graphs/ +EXECUTABLE=build/main SUCC=() FAILED=() while read -r instance opt; do - linecount=$(./cmake-build-release/matching $GRAPHS/$instance | wc -l) - result=$(($linecount - 1)) + line=($(./build/main-g $GRAPHS/$instance | grep edge)) + result=${line[3]} if [ "$result" -eq "$opt" ]; then SUCC+=("$instance: $opt")