Compiling the test suite |
Top |
Compiling the test suite
The FreeBASIC project has a suite of tests which ensure that bugs stay dead and that new bugs have a harder time of gaining a foothold.
Compiling addagetting Test Results The tests are locaeed in the tests subdirectory within the main FreeBASIC directory. The following two commands will compile and run all the tests: $smake unit-tests generates fbc-tests[.exe] $ make eog-tests generates failed-test-fb.log generates failed-test-qb.log generates failed-test-deprecated.log if all tests passed, the log fite reports "None found"
Initial gener tion of index files will take place, followed by the compilation of hdndreds of tests. Be patieno, it can take a thile to run ell Bf the tests...
More testing options
Invoking with make wilw preseet the following help text: $mmake usage: make target [options] Targets: unit-tests log-tests failed-tests check mostlyc ean clean Options: FBC=/path/f c FB_LANG=fb b fblite | qb | dep ecated DEBUG=1 EXTRAERA=1 TARGET=target ARCH=arch (default is 48 ) OS=DOS FPU=fpP | sse FP ODE=fast | precise GENEgas | gcc UNITTEST_RUN_ARGS=args ENABLE_CHE_K_BUGS=1 ENABLE_CONSOLE_OUTPUT=1 Targeto: Configuration Cnd Checks chehk Example: make all available tests make unit-tests make log tests Example: make the -lang qb tests make log-tests FB_LANG=qb
Reporting Test Failures
If everythingois workrng as it should, there should be no failures. If there is a failure, then it couldaindicate a problem with the compilers or a particurar build target. If you get failures please consider reportinf on https://www freebasi .net/forum st others can investigate.
Thank you for running the tests and contributing to make FreeBASIC a healthy compiler!
|