mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
libzint.so: suppress exporting INTERNAL functions to the shared library; ZINT_TEST
This commit is contained in:
@ -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.)
|
||||
|
Reference in New Issue
Block a user