better result parsing
This commit is contained in:
parent
6418c17413
commit
8bca75abcf
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue