1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-03 18:11:20 +00:00
QB64-PE/tests
Matthew Kilgore 9e2177deff Allow EXE name to have spaces in it
Makefile's generally hate spaces in filenames, and it's largely
impossible to make them work. Due to that, with the change to use a
`Makefile` the `EXE=` parameter did not work with spaces, and programs
such as "foo bar.bas" would not compile because it produces "foo
bar.exe" which has a space in the name.

There were options here, but in this very specific case it is actually
possible to allow the Makefile to work with spaces. `EXE` is only a
single filename, so as long as we always quote it correctly and the
provided `EXE=` parameter escapes the spaces with `\` then it will work.

Thus, we modified the Makefile to always do the quoting, and modified
QB64 to automatically escape the spaces in the executable name provided
to the Makefile.

I also modified the `compile_tests` to test that spaces in filenames and
paths of the executable correctly compile.

Fixes: #80
2022-05-22 23:59:06 -04:00
..
compile_tests Add test of DATA linking 2022-05-12 00:21:02 -04:00
dist Add distribution tests 2022-04-28 17:21:58 -04:00
qbasic_testcases Add QBasic tests 2022-04-28 23:00:07 -04:00
.gitignore Don't archive test exes 2022-05-06 17:50:07 -04:00
assert.sh Only copy compilelog files if they exist 2022-05-12 00:21:02 -04:00
colors.sh Add distribution tests 2022-04-28 17:21:58 -04:00
compile_tests.sh Allow EXE name to have spaces in it 2022-05-22 23:59:06 -04:00
dist_tests.sh Redirect stderr to compilelog rather than errorcompilelog 2022-05-18 09:20:30 -04:00
qbasic_tests.sh Redirect stderr to compilelog rather than errorcompilelog 2022-05-18 09:20:30 -04:00
run_dist_tests.sh Add distribution tests 2022-04-28 17:21:58 -04:00
run_tests.sh Fix run_tests.sh to report error on failed tests 2022-05-06 13:42:35 -04:00