Juergen Kuehlwein wrote:
The command "printf" was misspelled or could not be found
What is wrong?
"printf" in this case is a shell command, like from
bash shell.
St_W wrote:instead of setting up everything for a working environment yourself i recommend to use msys2
https://www.msys2.org/ or similar preconfigured environments.
@Juergen, yes, do this. A unix-y type shell and commands are needed. find, xargs, sed, and a few other commands are used to implement the framework (find files, build a list of tests, etc), independantly of creating executables. Depending on the shell (e.g. cmd.exe) there are limitations on what may still work. Setting up the environment yourself can to lead incompatible versions of tools in the tool chain or shell. I see you are running the test suite for fbc 1.05.0. I haven't run that version in a long time. Eventually, you will find the CUnit library dependence. This dependency has been removed in fbc 1.06 The framework and format of the tests are different in fbc-1.06.
For fbc-1.06:
1) See ./tests/readme.txt
2) $ make
- this will print a list of make options
3) $ make check
- this will test some basic set-up, you should get something like:
Code: Select all
D:\fb.git\tests>make check
Checking that fb compiler fbc.exe exists: OK
Checking that fbc.exe working: OK
Checking that compiled program executes: OK
4) Do a small test first: $ make unit-tests DIRLIST=pretest
Code: Select all
D:\fb.git\tests>make unit-tests DIRLIST=pretest
make -f unit-tests.mk
make[1]: Entering directory 'D:/fb.git/tests'
Generating unit-tests.inc : Done
cd fbcunit && make FPU= ARCH= TARGET=
make[2]: Entering directory 'D:/fb.git/tests/fbcunit'
fbc -mt -g -exx -i ./inc -lib src/fbcunit.bas src/fbcunit_qb.bas src/fbcunit_console.bas src/fbcunit_report.bas -x lib/libfbcunit.a
make[2]: Leaving directory 'D:/fb.git/tests/fbcunit'
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt pretest/compile_with_fbcunit.bas
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt pretest/style_direct.bas
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt pretest/style_module.bas
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt pretest/style_namespace.bas
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt pretest/style_simple.bas
fbc.exe -c -w 3 -i fbcunit/inc -m fbc-tests -mt fbc-tests.bas
fbc.exe -l fbcunit -l user32 -p fbcunit/lib -x fbc-tests.exe ./pretest/compile_with_fbcunit.o ./pretest/style_direct.o ./pretest/style_module.o ./pretest/style_namespace.o ./pretest/style_simple.o ./fbc-tests.o
./pretest/compile_with_fbcunit.o() warning 20(2): Object files or libraries with mixed multithreading (-mt) options
./fbc-tests.exe
SUMMARY
Asserts Passed Failed Suite Tests
-------- -------- -------- -------------------------------------- --------
3 3 0 fbc_tests.pretest.style_simple 3
2 2 0 fbc_tests.pretest.style_namespace 2
1 1 0 fbc_tests.pretest.style_module 1
2 2 0 fbc_tests.pretest.style_direct 2
1 1 0 fbc_tests.pretest.compile_with_fbcunit 1
-------- -------- -------- -------------------------------------- --------
9 9 0 Total 9
make[1]: Leaving directory 'D:/fb.git/tests'
D:\fb.git\tests>