2020-08-05 09:22:26 +12:00
|
|
|
Zint frontend test suite
|
|
|
|
------------------------
|
|
|
|
|
2021-03-30 03:39:40 +13:00
|
|
|
See <project-dir>/backend/tests/README to see how to build the test suite.
|
2021-06-10 22:15:39 +12:00
|
|
|
In addition to the setup for the backend tests, the environment needs to be
|
|
|
|
able to find the `zint` application using that name. In UNIX-like systems
|
2021-03-30 22:12:20 +13:00
|
|
|
this can be configured by prepending the PATH variable with the frontend's
|
|
|
|
directory inside the build directory:
|
|
|
|
|
|
|
|
cd <build-dir>
|
|
|
|
export PATH=$(pwd)/frontend:${PATH}
|
2020-08-05 09:22:26 +12:00
|
|
|
|
|
|
|
|
2021-03-30 22:12:20 +13:00
|
|
|
------------------------------------------------------------------------------
|
|
|
|
the frontend test will be automatically run by cmake's ctest, however manual
|
|
|
|
invocation is also possible:
|
2020-08-05 09:22:26 +12:00
|
|
|
|
2021-03-30 22:12:20 +13:00
|
|
|
cd <build-dir>/frontend/test
|
2020-08-05 09:22:26 +12:00
|
|
|
./test_args
|
|
|
|
|
|
|
|
As with the backend tests, individual test functions and single dataset items
|
|
|
|
can be run using '-f <func-name>' and '-i <index>' etc.
|