mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-20 00:54:47 +00:00
Improve test log output
This commit is contained in:
parent
e84eb4da14
commit
7c7e4cc5f4
1 changed files with 3 additions and 2 deletions
|
@ -49,17 +49,18 @@ do
|
||||||
while IFS=' ' read -ra map
|
while IFS=' ' read -ra map
|
||||||
do
|
do
|
||||||
variant="${map[0]}"
|
variant="${map[0]}"
|
||||||
|
TESTCASE="$category/$testName/$variant"
|
||||||
output="$RESULTS_DIR/$category-$testName-$variant-output"
|
output="$RESULTS_DIR/$category-$testName-$variant-output"
|
||||||
compileResultOutput="$RESULTS_DIR/$category-$testName-$variant-compile_result.txt"
|
compileResultOutput="$RESULTS_DIR/$category-$testName-$variant-compile_result.txt"
|
||||||
expectedResult="$(cat "tests/format_tests/$category/$variant")"
|
expectedResult="$(cat "tests/format_tests/$category/$variant")"
|
||||||
compilerFlags=("${map[@]:1}")
|
compilerFlags=("${map[@]:1}")
|
||||||
pushd . >/dev/null
|
pushd . >/dev/null
|
||||||
cd "tests/format_tests/$category"
|
cd "tests/format_tests/$category"
|
||||||
"../../../$QB64" -y "${compilerFlags[@]}" "$testName.bas" -o "../../../$output" 1>"../../../$compileResultOutput"
|
"../../../$QB64" -y -m "${compilerFlags[@]}" "$testName.bas" -o "../../../$output" 1>"../../../$compileResultOutput"
|
||||||
ERR=$?
|
ERR=$?
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
(exit $ERR)
|
(exit $ERR)
|
||||||
assert_success_named "Format" "Formatting Error:" show_failure "$category" "$testName - $variant"
|
assert_success_named "Format" "Formatting Error:" show_failure "$category" "$testName" "$variant"
|
||||||
test -f "$output"
|
test -f "$output"
|
||||||
assert_success_named "output exists" "$test-output does not exist!" show_failure "$category" "$testName" "$variant"
|
assert_success_named "output exists" "$test-output does not exist!" show_failure "$category" "$testName" "$variant"
|
||||||
testResult="$(cat "$output")"
|
testResult="$(cat "$output")"
|
||||||
|
|
Loading…
Reference in a new issue