-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test-script assumption of fglt binary location
I.e.: ensure that the test scripts can be run regardless of where they are called from (particularly useful if one does not build/install FGlT in a 1-deep subdirectory of the source tree).
- Loading branch information
Showing
2 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
|
||
DIR_TESTDATA=$(cd "$(dirname "$0")" && pwd) | ||
|
||
FGLT=${1:-./fglt} | ||
|
||
${FGLT} ../testdata/s12.mtx | ||
diff freq_net.csv ../testdata/s12_freq_net_gold.csv | ||
${FGLT} "${DIR_TESTDATA}"/s12.mtx | ||
diff freq_net.csv "${DIR_TESTDATA}"/s12_freq_net_gold.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/bash | ||
|
||
DIR_TESTDATA=$(cd "$(dirname "$0")" && pwd) | ||
|
||
FGLT=${1:-./fglt} | ||
|
||
${FGLT} ../testdata/s6.mtx | ||
diff freq_net.csv ../testdata/s6_freq_net_gold.csv | ||
${FGLT} "${DIR_TESTDATA}"/s6.mtx | ||
diff freq_net.csv "${DIR_TESTDATA}"/s6_freq_net_gold.csv |