diff options
author | Marc <foxtrot@malloc.me> | 2021-12-17 18:52:36 +0000 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2021-12-17 19:31:25 +0000 |
commit | cd1df65dc36ac35d526de195284d5ebf18e1f92b (patch) | |
tree | fc0c163cd9f86d452fec1eb90d48a22d67cf4256 /utils/CMakeLists.txt | |
parent | 8e09d29df19312583747a3de00fe4269c17e6586 (diff) | |
download | libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.tar.gz libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.tar.bz2 libwifi-cd1df65dc36ac35d526de195284d5ebf18e1f92b.zip |
test: Add ctests for generation functions.
This commit also enforces error code checking on functions inside of the generation functions, such as for `libwifi_quick_add_tag`.
Diffstat (limited to 'utils/CMakeLists.txt')
-rw-r--r-- | utils/CMakeLists.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt new file mode 100644 index 0000000..bdf7227 --- /dev/null +++ b/utils/CMakeLists.txt | |||
@@ -0,0 +1,15 @@ | |||
1 | cmake_minimum_required(VERSION 3.18) | ||
2 | |||
3 | project(libwifi_tests VERSION 0.1) | ||
4 | |||
5 | set(CMAKE_CXX_STANDARD 11) | ||
6 | set(CMAKE_CXX_STANDARD_REQUIRED True) | ||
7 | |||
8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") | ||
9 | |||
10 | add_executable(test_misc src/helpers.c src/test_misc.c) | ||
11 | add_executable(test_generation src/helpers.c src/test_generation.c) | ||
12 | add_executable(test_parsing src/helpers.c src/test_parsing.c) | ||
13 | target_link_libraries(test_misc wifi) | ||
14 | target_link_libraries(test_generation wifi pcap) | ||
15 | target_link_libraries(test_parsing wifi pcap) | ||