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/ GRAPHS=graphs/
EXECUTABLE=build/main
SUCC=() SUCC=()
FAILED=() FAILED=()
while read -r instance opt; do while read -r instance opt; do
linecount=$(./cmake-build-release/matching $GRAPHS/$instance | wc -l) line=($(./build/main-g $GRAPHS/$instance | grep edge))
result=$(($linecount - 1)) result=${line[3]}
if [ "$result" -eq "$opt" ]; if [ "$result" -eq "$opt" ];
then then
SUCC+=("$instance: $opt") SUCC+=("$instance: $opt")