about summary refs log tree commit diff stats
path: root/test/README.md
diff options
context:
space:
mode:
authorMarc <foxtrot@malloc.me>2021-12-17 18:52:36 +0000
committerMarc <foxtrot@malloc.me>2021-12-17 19:31:25 +0000
commitcd1df65dc36ac35d526de195284d5ebf18e1f92b (patch)
treefc0c163cd9f86d452fec1eb90d48a22d67cf4256 /test/README.md
parent8e09d29df19312583747a3de00fe4269c17e6586 (diff)
downloadlibwifi-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 'test/README.md')
-rw-r--r--test/README.md69
1 files changed, 69 insertions, 0 deletions
diff --git a/test/README.md b/test/README.md new file mode 100644 index 0000000..402fa87 --- /dev/null +++ b/test/README.md
@@ -0,0 +1,69 @@
1# libwifi Tests
2libwifi uses CMakes testing functionalities. The tests are in the `src/` directory, and can be used with `make test`.
3
4## Running Tests
5```
6>> mkdir build
7>> cd build
8>> cmake ..
9>> make && make test
10```
11
12## Expected Output
13```
14>> make test
15Running tests...
16Test project libwifi/test/build
17 Start 1: test_action_gen_full
18 1/24 Test #1: test_action_gen_full ............. Passed 0.00 sec
19 Start 2: test_action_gen_details
20 2/24 Test #2: test_action_gen_details .......... Passed 0.00 sec
21 Start 3: test_assoc_req_gen_full
22 3/24 Test #3: test_assoc_req_gen_full .......... Passed 0.00 sec
23 Start 4: test_assoc_req_gen_tags
24 4/24 Test #4: test_assoc_req_gen_tags .......... Passed 0.00 sec
25 Start 5: test_assoc_resp_gen_full
26 5/24 Test #5: test_assoc_resp_gen_full ......... Passed 0.00 sec
27 Start 6: test_assoc_resp_gen_tags
28 6/24 Test #6: test_assoc_resp_gen_tags ......... Passed 0.00 sec
29 Start 7: test_atim_gen_full
30 7/24 Test #7: test_atim_gen_full ............... Passed 0.00 sec
31 Start 8: test_auth_gen_full
32 8/24 Test #8: test_auth_gen_full ............... Passed 0.00 sec
33 Start 9: test_auth_gen_tags
34 9/24 Test #9: test_auth_gen_tags ............... Passed 0.00 sec
35 Start 10: test_beacon_gen_full
3610/24 Test #10: test_beacon_gen_full ............. Passed 0.00 sec
37 Start 11: test_beacon_gen_tags
3811/24 Test #11: test_beacon_gen_tags ............. Passed 0.00 sec
39 Start 12: test_deauth_gen_full
4012/24 Test #12: test_deauth_gen_full ............. Passed 0.00 sec
41 Start 13: test_deauth_gen_tags
4213/24 Test #13: test_deauth_gen_tags ............. Passed 0.00 sec
43 Start 14: test_disassoc_gen_full
4414/24 Test #14: test_disassoc_gen_full ........... Passed 0.00 sec
45 Start 15: test_disassoc_gen_tags
4615/24 Test #15: test_disassoc_gen_tags ........... Passed 0.00 sec
47 Start 16: test_probe_req_gen_full
4816/24 Test #16: test_probe_req_gen_full .......... Passed 0.00 sec
49 Start 17: test_probe_req_gen_tags
5017/24 Test #17: test_probe_req_gen_tags .......... Passed 0.00 sec
51 Start 18: test_probe_resp_gen_full
5218/24 Test #18: test_probe_resp_gen_full ......... Passed 0.00 sec
53 Start 19: test_probe_resp_gen_tags
5419/24 Test #19: test_probe_resp_gen_tags ......... Passed 0.00 sec
55 Start 20: test_reassoc_req_gen_full
5620/24 Test #20: test_reassoc_req_gen_full ........ Passed 0.00 sec
57 Start 21: test_reassoc_req_gen_tags
5821/24 Test #21: test_reassoc_req_gen_tags ........ Passed 0.00 sec
59 Start 22: test_reassoc_resp_gen_full
6022/24 Test #22: test_reassoc_resp_gen_full ....... Passed 0.00 sec
61 Start 23: test_reassoc_resp_gen_tags
6223/24 Test #23: test_reassoc_resp_gen_tags ....... Passed 0.00 sec
63 Start 24: test_timing_ad_gen_tags
6424/24 Test #24: test_timing_ad_gen_tags .......... Passed 0.00 sec
65
66100% tests passed, 0 tests failed out of 24
67
68Total Test time (real) = 0.06 sec
69```