feat(test): add new tests

This commit is contained in:
2026-03-29 18:39:16 +02:00
parent c183477686
commit 4c6729eebc
12 changed files with 450 additions and 73 deletions
+2 -10
View File
@@ -22,6 +22,7 @@ add_global_arguments('-DEVELOPER', language: 'c')
add_global_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
exe = executable('cws', server, include_directories: include_dirs, dependencies: deps)
subdir('test')
# Commands
@@ -35,13 +36,4 @@ if clangformat.found()
'clang-format',
],
)
endif
# Test
test_src = files('test/server.c')
test_curl_dep = dependency('libcurl', required: false)
test_deps = [test_curl_dep]
test_exec = executable('test_http', test_src, dependencies: test_deps)
test('index get', test_exec, args: [exe.full_path()])
endif