libzint.so: suppress exporting INTERNAL functions to the shared library; ZINT_TEST

This commit is contained in:
gitlost
2019-12-19 00:37:55 +00:00
parent c524d32227
commit bca82ecc0d
58 changed files with 489 additions and 491 deletions

View File

@ -1,15 +1,25 @@
Zint backend test suite
-----------------------
To make:
To make, first make libzint with ZINT_TEST defined:
cd <project-dir>
mkdir build
cd build
cmake -DZINT_TEST:BOOL:1 ..
make
Then make the tests:
cd <project-dir>
cd backend/tests
mkdir build
cd build
cmake ..
cmake -DZINT_TEST:BOOL:1 ..
make
(ZINT_TEST is needed to export INTERNAL functions for use and testing.)
To run all tests:
make test
@ -50,4 +60,8 @@ To undo sanitize/debug, remake each after setting:
cmake -DZINT_SANITIZE:BOOL=0 ..
cmake -DZINT_DEBUG:BOOL=0 ..
Note that sanitize is not safe to use in production, as it's a security risk.
To get a clean libzint, set the above and also:
cmake -DZINT_TEST:BOOL=0 ..
(The tests will now fail to link.)