diff options
author | Marc <foxtrot@malloc.me> | 2022-01-09 15:21:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-09 15:21:47 +0000 |
commit | 0bd924735125b34b74c893936b89cfae02e3379d (patch) | |
tree | c8140bf65c24791874fa9b0e194773178a34da83 /test/CMakeLists.txt | |
parent | 8e09d29df19312583747a3de00fe4269c17e6586 (diff) | |
parent | 11c7393bebe4df6e2061f69787f4a7dd5c31f077 (diff) | |
download | libwifi-0bd924735125b34b74c893936b89cfae02e3379d.tar.gz libwifi-0bd924735125b34b74c893936b89cfae02e3379d.tar.bz2 libwifi-0bd924735125b34b74c893936b89cfae02e3379d.zip |
Merge pull request #3 from libwifi/test
test: Add ctests for parse and generate functions.
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 72 |
1 files changed, 66 insertions, 6 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b418f93..64f8f36 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt | |||
@@ -7,10 +7,70 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) | |||
7 | 7 | ||
8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") | 8 | set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb -O0") |
9 | 9 | ||
10 | add_executable(test_misc src/helpers.c src/test_misc.c) | 10 | link_directories("../build/") |
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 | 11 | ||
14 | target_link_libraries(test_misc wifi) | 12 | add_executable(action_tests src/action_tests.c) |
15 | target_link_libraries(test_generation wifi pcap) | 13 | target_link_libraries(action_tests wifi) |
16 | target_link_libraries(test_parsing wifi pcap) | 14 | add_executable(assoc_req_tests src/assoc_req_tests.c) |
15 | target_link_libraries(assoc_req_tests wifi) | ||
16 | add_executable(assoc_resp_tests src/assoc_resp_tests.c) | ||
17 | target_link_libraries(assoc_resp_tests wifi) | ||
18 | add_executable(atim_tests src/atim_tests.c) | ||
19 | target_link_libraries(atim_tests wifi) | ||
20 | add_executable(auth_tests src/auth_tests.c) | ||
21 | target_link_libraries(auth_tests wifi) | ||
22 | add_executable(beacon_tests src/beacon_tests.c) | ||
23 | target_link_libraries(beacon_tests wifi) | ||
24 | add_executable(deauth_tests src/deauth_tests.c) | ||
25 | target_link_libraries(deauth_tests wifi) | ||
26 | add_executable(disassoc_tests src/disassoc_tests.c) | ||
27 | target_link_libraries(disassoc_tests wifi) | ||
28 | add_executable(probe_req_tests src/probe_req_tests.c) | ||
29 | target_link_libraries(probe_req_tests wifi) | ||
30 | add_executable(probe_resp_tests src/probe_resp_tests.c) | ||
31 | target_link_libraries(probe_resp_tests wifi) | ||
32 | add_executable(reassoc_req_tests src/reassoc_req_tests.c) | ||
33 | target_link_libraries(reassoc_req_tests wifi) | ||
34 | add_executable(reassoc_resp_tests src/reassoc_resp_tests.c) | ||
35 | target_link_libraries(reassoc_resp_tests wifi) | ||
36 | add_executable(timing_ad_tests src/timing_ad_tests.c) | ||
37 | target_link_libraries(timing_ad_tests wifi) | ||
38 | |||
39 | enable_testing() | ||
40 | add_test(NAME test_action_gen_full COMMAND action_tests --action-gen-full) | ||
41 | add_test(NAME test_action_gen_details COMMAND action_tests --action-gen-details) | ||
42 | |||
43 | add_test(NAME test_assoc_req_gen_full COMMAND assoc_req_tests --assoc_req-gen-full) | ||
44 | add_test(NAME test_assoc_req_gen_tags COMMAND assoc_req_tests --assoc_req-gen-tags) | ||
45 | |||
46 | add_test(NAME test_assoc_resp_gen_full COMMAND assoc_resp_tests --assoc_resp-gen-full) | ||
47 | add_test(NAME test_assoc_resp_gen_tags COMMAND assoc_resp_tests --assoc_resp-gen-tags) | ||
48 | |||
49 | add_test(NAME test_atim_gen_full COMMAND atim_tests --atim-gen-full) | ||
50 | |||
51 | add_test(NAME test_auth_gen_full COMMAND auth_tests --auth-gen-full) | ||
52 | add_test(NAME test_auth_gen_tags COMMAND auth_tests --auth-gen-tags) | ||
53 | |||
54 | add_test(NAME test_beacon_gen_full COMMAND beacon_tests --beacon-gen-full) | ||
55 | add_test(NAME test_beacon_gen_tags COMMAND beacon_tests --beacon-gen-tags) | ||
56 | add_test(NAME test_beacon_parse COMMAND beacon_tests --beacon-parse) | ||
57 | |||
58 | add_test(NAME test_deauth_gen_full COMMAND deauth_tests --deauth-gen-full) | ||
59 | add_test(NAME test_deauth_gen_tags COMMAND deauth_tests --deauth-gen-tags) | ||
60 | |||
61 | add_test(NAME test_disassoc_gen_full COMMAND disassoc_tests --disassoc-gen-full) | ||
62 | add_test(NAME test_disassoc_gen_tags COMMAND disassoc_tests --disassoc-gen-tags) | ||
63 | |||
64 | add_test(NAME test_probe_req_gen_full COMMAND probe_req_tests --probe_req-gen-full) | ||
65 | add_test(NAME test_probe_req_gen_tags COMMAND probe_req_tests --probe_req-gen-tags) | ||
66 | |||
67 | add_test(NAME test_probe_resp_gen_full COMMAND probe_resp_tests --probe_resp-gen-full) | ||
68 | add_test(NAME test_probe_resp_gen_tags COMMAND probe_resp_tests --probe_resp-gen-tags) | ||
69 | |||
70 | add_test(NAME test_reassoc_req_gen_full COMMAND reassoc_req_tests --reassoc_req-gen-full) | ||
71 | add_test(NAME test_reassoc_req_gen_tags COMMAND reassoc_req_tests --reassoc_req-gen-tags) | ||
72 | |||
73 | add_test(NAME test_reassoc_resp_gen_full COMMAND reassoc_resp_tests --reassoc_resp-gen-full) | ||
74 | add_test(NAME test_reassoc_resp_gen_tags COMMAND reassoc_resp_tests --reassoc_resp-gen-tags) | ||
75 | |||
76 | add_test(NAME test_timing_ad_gen_tags COMMAND timing_ad_tests --timing_ad-gen-full) | ||