[fpc-devel] fpc tests - question
Martin Frb
lazarus at mfriebe.de
Tue Nov 3 14:53:21 CET 2026
If I wanted to create a testcase in fpc....
I put a new file into
tests/test/tmytest.pp
If that test needs to have units it uses, I can add
tests/test/umyunit.pp
Question1:
I didn't find a common prefix for inc files? they appear to just start
with "t" like the tests themself?
-----------
I can add options at the top of the test.
{ %opt=-O2 -g- }
Question2:
If my test and the used unit should be compiled with different options,
what then?
Can I get the unit to be compiled on its own with e.g.
{ %opt=-O- -g2 }
and then the test program with
{ %opt=-O2 -g- }
So that it uses the pre-compile unit (ppu/o) with the different compile
settings?
More information about the fpc-devel
mailing list