Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 61) sorted by relevance

123

/hostap-3.6.0/src/utils/
Dutils_module_tests.c57 const struct printf_test_data *test = &printf_tests[i]; in printf_encode_decode_tests() local
58 printf_encode(buf, sizeof(buf), test->data, test->len); in printf_encode_decode_tests()
62 if (binlen != test->len || in printf_encode_decode_tests()
63 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests()
69 binlen = printf_decode(bin, sizeof(bin), test->encoded); in printf_encode_decode_tests()
70 if (binlen != test->len || in printf_encode_decode_tests()
71 os_memcmp(bin, test->data, binlen) != 0) { in printf_encode_decode_tests()
898 const struct json_test_data *test = &json_test_cases[i]; in json_tests() local
901 root = json_parse(test->json, os_strlen(test->json)); in json_tests()
902 if ((root && !test->tree) || (!root && test->tree)) { in json_tests()
[all …]
/hostap-3.6.0/tests/
Dtest-rc4.c225 const struct rc4_test_vector *test = &tests[i]; in main() local
226 ret += run_test(i, test->key, test->key_len, in main()
227 test->stream0, 0); in main()
228 ret += run_test(i, test->key, test->key_len, in main()
229 test->stream240, 240); in main()
230 ret += run_test(i, test->key, test->key_len, in main()
231 test->stream496, 496); in main()
232 ret += run_test(i, test->key, test->key_len, in main()
233 test->stream752, 752); in main()
234 ret += run_test(i, test->key, test->key_len, in main()
[all …]
DREADME1 hostap.git test tools
7 hwsim directory contains the test setup for full system testing of
16 combinations. The test scripts in the build subdirectory can be used to
19 (build-{hostapd,wpa_supplicant}-*.config) to get them included in test
35 Number of the test tools here can be used for fuzz testing with tools
38 test-eapol, test-json, test-tls, and test-x509 are examples of such
46 CC=afl-gcc make test-json
51 afl-fuzz -i json-examples -o json-findings -- $PWD/test-json @@
55 make test-json LIBFUZZER=y
60 ./test-json json-examples
[all …]
Dcipher-and-key-mgmt-testing.txt5 special test builds to be used for testing functionality related to
26 functionality. The test commands in wpa_supplicant/hostapd control
31 In theory, the test functionality is available with most drivers
35 sniffer captures and verify that the test tools are behaving correctly.
37 wpa_supplicant is used to control a test device in station mode to test
38 an AP and hostapd is similarly used to control a test device in AP mode
39 to test a station.
41 Various data traffic generators could be used to test the behavior, but
42 this document focuses on using ping to test unicast traffic and arping
43 to test broadcast traffic. To keep things simple and to reduce
[all …]
Dtest-list.c13 struct test { struct
20 struct test *t; in dump_list() argument
22 dl_list_for_each(t, head, struct test, list) in dump_list()
31 struct test *t, *tmp; in main()
56 dl_list_for_each(t, &head, struct test, list) in main()
64 dl_list_for_each_safe(t, tmp, &head, struct test, list) { in main()
D.gitignore1 test-*
2 !test-*.[ch]
3 !test-*.sh
/hostap-3.6.0/tests/hwsim/
DREADME4 This directory contains testing infrastructure and test cases to run
18 the other two virtual radios. wpa_supplicant/hostapd test functionality
22 The python scripts and tools in this directory control test case
28 These test cases are run automatically against the hostap.git commits
56 The test scripts can find the binaries in the locations where they were
69 test setup can be built.
94 Some parts of the testing process requires root privileges. The test
101 Or on a dedicated test system, you could even disable password prompting
110 Some of the test scripts are still using hardcoded interface names, so
120 can result in conflicts with the test scripts and you may need to
[all …]
Dexample-setup.txt1 Step-by-step guide for setting up hostapd/wpa_supplicant test framework
5 hostapd/wpa_supplicant test framework with mac80211_hwsim. While the
69 Couple of the test cases expect iw to have support for requesting
73 optional, i.e., most test cases will work with the old iw version, but
74 some test cases are skipped and some are more likely to fail if iw does
88 Number of VHT and DFS test cases are skipped if the old wireless-regdb
91 enable additional test cases:
109 Setup is now ready for testing. You can run a quick test to confirm that
112 # load mac80211_hwsim and start test software
115 # run a single test case ap_open
[all …]
Drun-tests.py85 def add_log_file(conn, test, run, type, path): argument
94 params = (test, run, type, sqlite3.Binary(contents))
102 def report(conn, prefill, build, commit, run, test, result, duration, logdir, argument
110 … conn.execute('DELETE FROM results WHERE test=? AND run=? AND result=?', (test, run, 'NOTRUN'))
112 params = (test, result, run, time.time(), duration, build, commit)
124 add_log_file(conn, test, run, log,
125 logdir + "/" + test + "." + log)
437 test = sys.stdin.readline()
438 if not test:
440 test = test.splitlines()[0]
[all …]
Dtest_p2p_wifi_display.py176 test = "00000600411c440028"
177 if "OK" not in dev[0].request("WFD_SUBELEM_SET all " + test):
179 if dev[0].request("WFD_SUBELEM_GET all") != test:
280 test = "00000600411c440028"
281 if "OK" not in dev[0].request("WFD_SUBELEM_SET all " + test):
283 if dev[0].request("WFD_SUBELEM_GET all") != test:
/hostap-3.6.0/tests/remote/
Drun-tests.py208 for test in requested_hwsim_tests:
212 if name == test:
216 logger.warning("hwsim test case: " + test + " NOT-FOUND")
247 for test in test_names:
248 print("\t", test)
262 for test in tests:
263 if re.search(filter_key, test.__name__):
264 filtered_tests.append(test)
274 for test in tests:
275 if test.__name__.startswith("test_sanity_"):
[all …]
/hostap-3.6.0/src/wps/
Dwps_module_tests.c275 const struct wps_attr_parse_test *test = in wps_attr_parse_tests() local
278 len = os_strlen(test->data) / 2; in wps_attr_parse_tests()
282 if (hexstr2bin(test->data, wpabuf_put(buf, len), len) < 0) { in wps_attr_parse_tests()
286 if (wps_parse_msg(buf, &attr) != test->result) { in wps_attr_parse_tests()
288 i, test->data); in wps_attr_parse_tests()
291 switch (test->extra) { in wps_attr_parse_tests()
/hostap-3.6.0/wpa_supplicant/
Dwin_example.reg11 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs\test]
22 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs\test\blobs]
25 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs\test\networks]
27 [HKEY_LOCAL_MACHINE\SOFTWARE\wpa_supplicant\configs\test\networks\0000]
39 "config"="test"
Dtodo.txt20 - test what happens if authenticator sends EAP-Success before real EAP
23 - test compilation with gcc -W options (more warnings?)
77 - test EAP-FAST peer with OpenSSL and verify that fallback to full handshake
/hostap-3.6.0/src/common/
Dcommon_module_tests.c95 const struct ieee802_11_parse_test_data *test; in ieee802_11_parse_tests() local
99 test = &parse_tests[i]; in ieee802_11_parse_tests()
100 res = ieee802_11_parse_elems(test->data, test->len, &elems, 1); in ieee802_11_parse_tests()
101 if (res != test->result || in ieee802_11_parse_tests()
102 ieee802_11_ie_count(test->data, test->len) != test->count) { in ieee802_11_parse_tests()
211 const struct rsn_ie_parse_test_data *test; in rsn_ie_parse_tests() local
214 test = &rsn_parse_tests[i]; in rsn_ie_parse_tests()
215 if (wpa_parse_wpa_ie_rsn(test->data, test->len, &data) != in rsn_ie_parse_tests()
216 test->result) { in rsn_ie_parse_tests()
/hostap-3.6.0/tests/hwsim/vm/
Dexample-vm-setup.txt1 Step-by-step guide for setting up hostapd/wpa_supplicant test framework (VM)
5 hostapd/wpa_supplicant test framework with mac80211_hwsim. While the
35 # tools used be the test scripts
69 Setup is now ready for testing. You can run a quick test to confirm that
77 Starting test run in a virtual machine
81 passed all 1 test case(s)
85 Logfiles are at /tmp/hwsim-test-logs/1485634801
91 To run all available test cases in 7 parallel VMs, you can run
DREADME19 test efficiency (~3200 tests can be run in under 5 minutes using parallel-vm.py
36 split the test cases between all the VMs. If the host system has enough
37 memory and CPU resources, this can significantly speed up the full test
50 test run with following command line:
56 data. lcov is then used to prepare the reports at the end of the test
73 cd /tmp/hwsim-test-logs/<timestamp>
80 across the test run (otherwise, it's safe to only keep the kernel image.)
/hostap-3.6.0/doc/
Dtesting_tools.doxygen10 tools that make it easier to test the programs without having to setup
11 a full test setup with wireless cards. In addition, these tools can be
23 generate a single program that can be used to test EAP methods without
30 shell scripts without require additional test components apart from a
33 could be used to implement an automated regression test suite for a
77 configuration from test.conf against the RADIUS server running on the
78 local host. A re-authentication is triggered to test fast
87 pre-authentication. This tool can be used to test pre-authentication
106 preauth_test test.conf 02:11:22:33:44:55 eth0
108 would use network configuration from test.conf to try to complete
[all …]
Dmainpage.doxygen45 "testing and development tools" that make it easier to test the
46 programs without having to setup a full test setup with wireless
47 cards. These tools can also be used to implement automatic test
/hostap-3.6.0/hs20/server/www/
Dsignup.php23 $test = $row['test']; variable
25 if (strlen($test) > 0) {
26 echo "<p style=\"color:#FF0000\">Special test functionality: $test</red></big></p>\n";
Dspp.php24 $test = PREG_REPLACE("/[^0-9a-zA-Z\_\-]/i", '', $_GET["test"]); variable
26 $test = ""; variable
142 putenv("HS20TEST=$test");
/hostap-3.6.0/src/crypto/
Dcrypto_module_tests.c1389 const struct passphrase_test *test = &passphrase_tests[i]; in test_sha1() local
1391 if (pbkdf2_sha1(test->passphrase, in test_sha1()
1392 (const u8 *) test->ssid, strlen(test->ssid), in test_sha1()
1394 os_memcmp(psk, test->psk, 32) == 0) in test_sha1()
1405 const struct rfc6070_test *test = &rfc6070_tests[i]; in test_sha1() local
1407 if (pbkdf2_sha1(test->p, (const u8 *) test->s, strlen(test->s), in test_sha1()
1408 test->c, dk, test->dk_len) == 0 && in test_sha1()
1409 os_memcmp(dk, test->dk, test->dk_len) == 0) in test_sha1()
/hostap-3.6.0/hs20/server/
Dhs20_spp_server.c74 ctx->test = getenv("HS20TEST"); in process()
75 if (ctx->test) in process()
77 ctx->test); in process()
/hostap-3.6.0/wpa_supplicant/doc/docbook/
Deapol_test.sgml55 test EAP methods without having to setup an access point and a
62 from shell scripts without require additional test components apart
66 test suite for a RADIUS authentication server.</para>
76 configuration from test.conf against the RADIUS server running
77 on the local host. A re-authentication is triggered to test fast
/hostap-3.6.0/src/p2p/
Dp2p_build.c450 const u8 *test = hash; in p2ps_wildcard_hash() local
453 if (os_memcmp(test, p2p->wild_card_hash, P2PS_HASH_LEN) == 0) in p2ps_wildcard_hash()
455 test += P2PS_HASH_LEN; in p2ps_wildcard_hash()
640 const u8 *test = hash; in p2p_buf_add_service_instance() local
645 if (os_memcmp(test, adv->hash, P2PS_HASH_LEN) == 0 && in p2p_buf_add_service_instance()
655 test += P2PS_HASH_LEN; in p2p_buf_add_service_instance()

123