mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-01-20 20:58:35 +01:00
Improve testrunner.sh's handling of whitespace args #92
This commit is contained in:
parent
ab9f123981
commit
270d3ed7d7
@ -1,5 +1,5 @@
|
||||
:ARGS
|
||||
-c #
|
||||
-c "#"
|
||||
:INPUT
|
||||
a
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
:ARGS
|
||||
-c # -l
|
||||
-c "#" -l
|
||||
:INPUT
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
|
@ -1,5 +1,5 @@
|
||||
:ARGS
|
||||
-f 14x_tag_query.cfg -q (all)
|
||||
-f 14x_tag_query.cfg -q "(all)"
|
||||
:INPUT
|
||||
:OUTPUT-FILTER
|
||||
:EXPECTED
|
||||
|
@ -94,9 +94,9 @@ fi
|
||||
|
||||
echo " Invoking: $(basename $boxesBinary) $boxesArgs"
|
||||
if [ ! -z "$BOXES_TEST_XXD" ]; then
|
||||
cat $testInputFile | $boxesBinary $boxesArgs | xxd >$testOutputFile 2>&1
|
||||
cat $testInputFile | eval "$boxesBinary $boxesArgs" | xxd >$testOutputFile 2>&1
|
||||
else
|
||||
cat $testInputFile | $boxesBinary $boxesArgs >$testOutputFile 2>&1
|
||||
cat $testInputFile | eval "$boxesBinary $boxesArgs" >$testOutputFile 2>&1
|
||||
fi
|
||||
declare -ir actualReturnCode=$?
|
||||
cat $testOutputFile | tr -d '\r' | sed -E -f $testFilterFile | diff - $testExpectationFile
|
||||
|
Loading…
Reference in New Issue
Block a user