]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/test/README.md
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / test / README.md
1 Testing
2 =======
3
4 C API
5 -----
6
7 The unit tests leverage the CTest and Check frameworks to provide a easy
8 environment to build up unit tests. They are split into Public and Private
9 test suites reflecting the public and internal API functions of civetweb.
10
11 When adding new functionality to civetweb tests should be written so that the
12 new functionality will be tested across the continuous build servers. There
13 are various levels of the unit tests:
14
15 * Tests are included in
16 * Test Cases which are there are multiple in
17 * Test Suites which are ran by the check framework by
18 * `civetweb-unit-tests` which is driven using the `--suite` and
19 `--test-case` arguments by
20 * CTest via `add_test` in `CMakeLists.txt`
21
22 Each test suite and test case is ran individually by CTest so that it provides
23 good feedback to the continuous integration servers and also CMake. Adding a
24 new test case or suite will require the corresponding `add_test` driver to be
25 added to `CMakeLists.txt`