mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-02-01 10:29:24 +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
|
:ARGS
|
||||||
-c #
|
-c "#"
|
||||||
:INPUT
|
:INPUT
|
||||||
a
|
a
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
:ARGS
|
:ARGS
|
||||||
-c # -l
|
-c "#" -l
|
||||||
:INPUT
|
:INPUT
|
||||||
:OUTPUT-FILTER
|
:OUTPUT-FILTER
|
||||||
:EXPECTED
|
:EXPECTED
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
:ARGS
|
:ARGS
|
||||||
-f 14x_tag_query.cfg -q (all)
|
-f 14x_tag_query.cfg -q "(all)"
|
||||||
:INPUT
|
:INPUT
|
||||||
:OUTPUT-FILTER
|
:OUTPUT-FILTER
|
||||||
:EXPECTED
|
:EXPECTED
|
||||||
|
@ -94,9 +94,9 @@ fi
|
|||||||
|
|
||||||
echo " Invoking: $(basename $boxesBinary) $boxesArgs"
|
echo " Invoking: $(basename $boxesBinary) $boxesArgs"
|
||||||
if [ ! -z "$BOXES_TEST_XXD" ]; then
|
if [ ! -z "$BOXES_TEST_XXD" ]; then
|
||||||
cat $testInputFile | $boxesBinary $boxesArgs | xxd >$testOutputFile 2>&1
|
cat $testInputFile | eval "$boxesBinary $boxesArgs" | xxd >$testOutputFile 2>&1
|
||||||
else
|
else
|
||||||
cat $testInputFile | $boxesBinary $boxesArgs >$testOutputFile 2>&1
|
cat $testInputFile | eval "$boxesBinary $boxesArgs" >$testOutputFile 2>&1
|
||||||
fi
|
fi
|
||||||
declare -ir actualReturnCode=$?
|
declare -ir actualReturnCode=$?
|
||||||
cat $testOutputFile | tr -d '\r' | sed -E -f $testFilterFile | diff - $testExpectationFile
|
cat $testOutputFile | tr -d '\r' | sed -E -f $testFilterFile | diff - $testExpectationFile
|
||||||
|
Loading…
Reference in New Issue
Block a user