More consistent whitespace in tests.sh
This commit is contained in:
parent
0c9c876d00
commit
2af48f63ca
|
@ -6,12 +6,12 @@ TOTAL_PASSES=0
|
||||||
TOTAL_FAILS=0
|
TOTAL_FAILS=0
|
||||||
FAILS=0
|
FAILS=0
|
||||||
FAIL_OUTPUT=""
|
FAIL_OUTPUT=""
|
||||||
VALGRIND=0
|
VALGRIND=false
|
||||||
|
|
||||||
CURRENT_BLOCK=""
|
CURRENT_BLOCK=""
|
||||||
|
|
||||||
if [ "$1" == "-val" ]; then
|
if [ "$1" == "-val" ]; then
|
||||||
VALGRIND=1
|
VALGRIND=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
endBlock() {
|
endBlock() {
|
||||||
|
@ -41,7 +41,7 @@ fail() {
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
local output
|
local output
|
||||||
if (($VALGRIND == 1)); then
|
if $VALGRIND; then
|
||||||
local output=$($VALCOM ./pl "(loadfile \"examples/lib.pbl\") $2")
|
local output=$($VALCOM ./pl "(loadfile \"examples/lib.pbl\") $2")
|
||||||
else
|
else
|
||||||
local output=$(./pl "(loadfile \"examples/lib.pbl\") $2")
|
local output=$(./pl "(loadfile \"examples/lib.pbl\") $2")
|
||||||
|
|
Loading…
Reference in New Issue