• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

ajax/11-Mar-2024-301167

canvasdir/11-Mar-2024-339227

cgidir/11-Mar-2024-126

dir with spaces/11-Mar-2024-41

htmldir/11-Mar-2024-2922

imagetest/11-Mar-2024-

linux_shell_cgi/11-Mar-2024-105

luarest/api/1/sensors/11-Mar-2024-6343

nonlatin/11-Mar-2024-191184

protected/11-Mar-2024-84

python_cgi/11-Mar-2024-63

scriptdir/11-Mar-2024-6353

svgdir/11-Mar-2024-4640

.leading.dot.txtD11-Mar-20247 21

1000images.luaD11-Mar-20248.1 KiB200195

100images.htmD11-Mar-20246.3 KiB161146

HugeText.luaD11-Mar-20243.9 KiB150140

Image_2kB.pngD11-Mar-20241.5 KiB

Image_2kB.png.gzD11-Mar-20242 KiB

MakefileTest.mkD11-Mar-20242.2 KiB8968

MethodTest.xhtmlD11-Mar-20246.9 KiB201165

README.mdD11-Mar-2024978 2620

all_build_flags.plD11-Mar-2024790 2922

bad.cgiD11-Mar-2024113 73

bad2.cgiD11-Mar-202479 41

bad_page.lpD11-Mar-202428 21

bad_script.luaD11-Mar-202413 21

cgi_test.htmlD11-Mar-2024242 1312

cors.htmlD11-Mar-20242.5 KiB7666

cors.reply.htmlD11-Mar-2024163 87

cors.reply.luaD11-Mar-20242.6 KiB8762

cors.reply.shtmlD11-Mar-2024163 87

delayed.cgiD11-Mar-2024137 219

donate.htmlD11-Mar-20241 KiB3324

echo.luaD11-Mar-2024928 4226

env.cgiD11-Mar-2024728 4732

error.luaD11-Mar-2024253 1210

error404.htmD11-Mar-2024197 1010

exit.luaD11-Mar-2024272 1611

exploit.plD11-Mar-20241.8 KiB7042

filehandler.luaD11-Mar-20242.3 KiB9470

form.htmlD11-Mar-20244.7 KiB11990

handle_form.luaD11-Mar-20243.8 KiB12483

hello.cgiD11-Mar-202489 84

hello.shtmlD11-Mar-202498 65

hello.txtD11-Mar-202417 21

hello_gz.txt.gzD11-Mar-202466 21

hello_gz_unzipped.txtD11-Mar-202430 21

html_esc.luaD11-Mar-20244.5 KiB6154

linux.cgiD11-Mar-2024119 105

linux_fail.cgiD11-Mar-202449 51

linux_fail_silent.cgiD11-Mar-202471 62

linux_stderr.cgiD11-Mar-2024237 179

lua_preload_file.luaD11-Mar-2024168 81

page.lpD11-Mar-20242.2 KiB8270

page.luaD11-Mar-20243.2 KiB13098

page.ssjsD11-Mar-2024469 2013

page1.luaD11-Mar-2024246 96

page2.lpD11-Mar-20241.8 KiB7364

page2.luaD11-Mar-20243.1 KiB131103

page2.ssjsD11-Mar-2024913 3123

page3.lpD11-Mar-2024380 2116

page3.luaD11-Mar-20241.6 KiB3530

page3.ssjsD11-Mar-20241.3 KiB6256

page3a.lpD11-Mar-2024371 2116

page3a.luaD11-Mar-20241,021 3121

page3r.lpD11-Mar-2024366 2116

page3v.lpD11-Mar-2024374 2116

page4.lpD11-Mar-20241.2 KiB4936

page4.luaD11-Mar-20246.7 KiB181154

page4kepler.lpD11-Mar-20241.3 KiB5440

page5.luaD11-Mar-2024161 98

page6.luaD11-Mar-2024411 1714

page_keep_alive.luaD11-Mar-20241.1 KiB3525

page_keep_alive_chunked.luaD11-Mar-20242 KiB6750

page_shared.luaD11-Mar-20242.9 KiB11386

page_status.luaD11-Mar-2024812 3925

passfileD11-Mar-2024113 42

preload.luaD11-Mar-20242.3 KiB8972

prime.ssjsD11-Mar-2024959 3728

pytest.linux.cgiD11-Mar-202497 63

require_test.luaD11-Mar-202440 32

resource_script_demo.luaD11-Mar-20244.9 KiB125109

ssi_test.shtmlD11-Mar-20241.1 KiB3829

syntax_error.ssjsD11-Mar-2024142 84

test.icoD11-Mar-20241.4 KiB

test.plD11-Mar-202416.7 KiB462377

timeout.cgiD11-Mar-2024336 135

websocket.luaD11-Mar-20242.8 KiB11989

websocket.xhtmlD11-Mar-20243.8 KiB118103

windows.cgiD11-Mar-202421 30

windows.cgi.cmdD11-Mar-2024118 87

windows_fail.cgiD11-Mar-202429 30

windows_fail.cgi.cmdD11-Mar-202448 32

windows_fail_silent.cgiD11-Mar-202436 30

windows_fail_silent.cgi.cmdD11-Mar-202472 43

ws_status.luaD11-Mar-20243.1 KiB138104

x.phpD11-Mar-2024141 107

README.md

1Testing
2=======
3
4C API
5-----
6
7The unit tests leverage the CTest and Check frameworks to provide a easy
8environment to build up unit tests. They are split into Public and Private
9test suites reflecting the public and internal API functions of civetweb.
10
11When adding new functionality to civetweb tests should be written so that the
12new functionality will be tested across the continuous build servers. There
13are 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
22Each test suite and test case is ran individually by CTest so that it provides
23good feedback to the continuous integration servers and also CMake. Adding a
24new test case or suite will require the corresponding `add_test` driver to be
25added to `CMakeLists.txt`
26