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/
|
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")
|
||||||
|
|
Loading…
Reference in a new issue