1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00

Capture compilation error log in tests

This commit is contained in:
Matthew Kilgore 2022-04-29 00:50:08 -04:00
parent f8aeb88f97
commit dedda94a78

View file

@ -38,6 +38,7 @@ show_failure()
{
cat "$RESULTS_DIR/$1-compile_result.txt"
cat "$RESULTS_DIR/$1-compilelog.txt"
cat "$RESULTS_DIR/$1-errorcompilelog.txt"
}
for basFile in $TEST_CASES/*.bas
@ -50,6 +51,7 @@ do
./qb64 -x "$TEST_CASES/$test.bas" -o "$outputExe" 1>$RESULTS_DIR/$test-compile_result.txt
ERR=$?
cp ./internal/temp/compilelog.txt $RESULTS_DIR/$test-compilelog.txt
cp ./internal/temp/errorcompilelog.txt $RESULTS_DIR/$test-errorcompilelog.txt
(exit $ERR)
assert_success_named "compile" "Compilation Error:" show_failure $test