From 8bca75abcff1a055951f46204b8fb1835fdac50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Mon, 6 Nov 2023 22:22:10 +0100 Subject: [PATCH] better result parsing --- run_tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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")