[fpc-pascal] Unit testing for RTL packages

Noel Duffy noelduffy at xtra.co.nz
Sun Jan 24 08:37:10 CET 2021


How should one go about adding unit tests to a package in the RTL? In many packages, for instance fcl-db, there is a tests folder with fpcunit units and programs in them, and they're referenced in fpmake.pp as example programs, but these do not appear to be built or run during a standard build of the RTL. Separately, there are tests for some packages in the top-level tests/test folder, which do appear to be run with
   
   make full TEST_FPC=path_to_your_compiler

None of these latter tests use fpcunit.

Do any of the fpcunit tests get run as part of a test cycle?

I've written a bunch of tests, and now want to know where to put them in order to generate a patch.



More information about the fpc-pascal mailing list