Lines Matching +full:unit +full:- +full:tests
1 <!--
4 SPDX-License-Identifier: curl
5 -->
7 # Unit tests
9 The goal is to add tests for *all* functions in libcurl. If functions are too
12 ## Build Unit Tests
14 `./configure --enable-debug` is required for the unit tests to build. To
15 enable unit tests, there is a separate static libcurl built that is used
16 exclusively for linking unit test programs. Just build everything as normal,
17 and then you can run the unit test cases as well.
19 ## Run Unit Tests
21 Unit tests are run as part of the regular test suite. If you have built
22 everything to run unit tests, to can do 'make test' at the root level. Or you
23 can `cd tests` and `make` and then invoke individual unit tests with
26 ## Debug Unit Tests
29 the %LOGDIR subdirectory, but most importantly you can re-run the test again
30 using gdb by doing `./runtests.pl -g NNNN`. That is, add a `-g` to make it
33 ## Write Unit Tests
35 We put tests that focus on an area or a specific function into a single C
39 Add your test to `tests/unit/Makefile.inc` (if it is a unit test). Add your
40 test data filename to `tests/data/Makefile.am`
42 You also need a separate file called `tests/data/testNNNN` (using the same
44 and the `tests/FILEFORMAT.md` documentation.