better result parsing

This commit is contained in:
Maximilian Keßler 2023-11-06 22:22:10 +01:00
parent 6418c17413
commit 8bca75abcf
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -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")