diff --git a/tests/compile_tests.sh b/tests/compile_tests.sh index 64e07f945..b030fb666 100755 --- a/tests/compile_tests.sh +++ b/tests/compile_tests.sh @@ -13,6 +13,7 @@ show_failure() { cat "$RESULTS_DIR/$1-compile_result.txt" cat "$RESULTS_DIR/$1-compilelog.txt" + cat "$RESULTS_DIR/$1-errorcompilelog.txt" } for test in $(ls ./tests/compile_tests) @@ -22,6 +23,7 @@ do "$QB64" -x "./tests/compile_tests/$test/test.bas" -o "$RESULTS_DIR/$test-output.exe" 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 diff --git a/tests/qbasic_tests.sh b/tests/qbasic_tests.sh index 6489ef458..c6b5f11e1 100755 --- a/tests/qbasic_tests.sh +++ b/tests/qbasic_tests.sh @@ -15,6 +15,7 @@ show_failure() { cat "$RESULTS_DIR/$1-compile_result.txt" cat "$RESULTS_DIR/$1-compilelog.txt" + cat "$RESULTS_DIR/$1-errorcompilelog.txt" } for sourceFile in $(find ./tests/qbasic_testcases/n54/ -name '*.bas') \ @@ -31,6 +32,7 @@ do "$QB64" -x "$sourceFile" -o "./$EXES_DIR/$test-output.exe" 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