Home
last modified time | relevance | path

Searched refs:tests (Results 1 – 25 of 69) sorted by relevance

123

/hostap-latest/tests/hwsim/vm/
Dmin-seq.py24 def run_tests(tests): argument
25 print(yellow("Run test sequence: ") + ' '.join(tests))
26 arg = ['./vm-run.sh'] + tests
33 if t == tests[-1]:
40 def reduce(tests): argument
41 if len(tests) < 2:
45 if len(tests) > 10:
46 a = list(tests[int(len(tests) / 2):])
56 for i in range(0, len(tests) - count, count):
57 b = list(tests)
[all …]
Dparallel-vm.py318 global tests
324 total_tests = len(tests)
326 test_queue = [(t, 0) for t in tests]
379 def known_output(tests, line): argument
382 if line in tests:
404 global tests
481 tests = args.params
483 tests = []
491 tests.append(name)
492 if len(tests) == 0:
[all …]
Dexample-vm-setup.txt48 cd hostap/tests/hwsim
63 cp ~/hostap/tests/hwsim/vm/kernel-config.uml .config
83 cd ~/hostap/tests/hwsim
91 cd ~/hostap/tests/hwsim/vm
97 ./run-all.sh: passing the following args to run-tests.py: ap_open
113 cd ~/hostap/tests/hwsim/vm
/hostap-latest/tests/hwsim/
Dtest_cert_check.py140 tests = ["two.example.com",
149 for match in tests:
152 tests = ["four.example.com",
156 for match in tests:
161 tests = ["one.example.com",
166 for match in tests:
169 tests = ["four.example.com",
175 for match in tests:
197 tests = ["two.example.com",
206 for match in tests:
[all …]
Dtest_hapd_ctrl.py601 tests = ["a",
606 for t in tests:
825 tests = ["foo",
829 for t in tests:
839 tests = ["foo", "foo bar"]
840 for t in tests:
844 tests = ["DETECTED freq=2412 chan_offset=12 cf1=1234 cf2=2345",
848 for t in tests:
856 tests = ["MGMT_TX 1",
863 for t in tests:
[all …]
DREADME5 automated tests of full hostapd and wpa_supplicant functionality. This
30 branch in stable state. Results from these tests are available here:
42 cp ../tests/hwsim/example-wpa_supplicant.config .config
46 cp ../tests/hwsim/example-hostapd.config .config
76 control interface, but the run-tests.py script adds the (relative)
96 tests, you'll probably want to enable sudo with a timeout to not expire
113 any wireless LAN driver before running the tests and make sure that
116 run-tests.py to allow other names to be used.
129 Running tests
133 run-all.sh in tests/hwsim directory. This will use start.sh to load the
[all …]
Dtest_ap_config.py334 tests = [("driver", "foobar"),
403 for field, val in tests:
418 tests = ["#\n\n*\tTLS\nradius_accept_attr=:",
439 for t in tests:
445 tests = [("\"foo\" TLS\n", 2, "hostapd_config_read_eap_user"),
463 for t, count, func in tests:
474 tests = [(1, "hostapd_parse_das_client",
532 tests += [(1, "hostapd_config_read_wep", "SET wep_key0 \"hello\""),
534 for count, func, cmd in tests:
553 tests = [(1, "hs20_parse_icon",
[all …]
Dbuild.sh49 if ! cmp ../tests/hwsim/example-hostapd.config .config >/dev/null 2>&1 ; then
50 cp ../tests/hwsim/example-hostapd.config .config
67 if ! cmp ../tests/hwsim/example-wpa_supplicant.config .config >/dev/null 2>&1 ; then
68 cp ../tests/hwsim/example-wpa_supplicant.config .config
Dtest_wpas_wmm_ac.py352tests = ["WMM_AC_ADDTS downlink tsid=5 up=6 nominal_msdu_size=1500 sba=9000 mean_data_rate=1500 mi…
356 for t in tests:
363 tests = []
365tests += ["11000400dd3d0050f2020201aa300000000000000000000000000000000000000000000000000000000000f…
367tests += ["11000400dd3e0050f2020201aa300010270000000000000000000000000000000000000000000000000000f…
369tests += ["11000400dd3d0050f2020201aa300010270000000000000000000000000000000000000000000000000000f…
371tests += ["11000400dd3d0050f2020201aa300010270000000000000000000000000000000000000000000000000000f…
375 for t in tests:
Dtest_scs.py61 tests = ["",
93 for t in tests:
148tests = ["scs_up=6 classifier_type=4 ip_version=ipv4 src_ip=1.2.3.4 dst_ip=5.6.7.8 src_port=12345 …
161 tests.append(qos_char)
162 for t in tests:
Dtest_authsrv.py87 tests = ["radius_server_encapsulate_eap",
89 for t in tests:
101 tests = ["radius_msg_add_attr;radius_server_encapsulate_eap",
104 for t in tests:
205 tests = ["foo@test-unknown",
215 for t in tests:
Dtest_rrm.py220 tests = [(1, "hostapd_neighbor_add"),
224 for count, func in tests:
855 tests = ["REQ_BEACON ",
863 for t in tests:
2174 tests = []
2176 tests += ["0500", "050001", "05000100"]
2178 tests += ["0500010000"]
2180 tests += ["050001000026"]
2182 tests += ["05000100002600", "0500010000260111", "050001000026021122"]
2184 tests += ["05000100002603", "0500010000260311", "050001000026031122"]
[all …]
Dtest_wpas_ctrl.py64 tests = ("bssid foo", "key_mgmt foo", "key_mgmt ", "group NONE")
65 for t in tests:
69tests = [("key_mgmt", "WPA-PSK WPA-EAP IEEE8021X NONE WPA-NONE FT-PSK FT-EAP WPA-PSK-SHA256 WPA-EA…
82 tests.append(("key_mgmt", "WPS OSEN"))
84 tests.append(("key_mgmt", "WPS SAE FT-SAE OSEN"))
87 for field, value in tests:
261 tests = ["02:11:22:33:44:55",
268 for val in tests:
278 tests = ["foo",
283 for val in tests:
[all …]
Dtest_tnc.py50 tests = [(1, "tncc_build_soh"),
52 for count, func in tests:
124 tests = [(1, "eap_ttls_process_phase2_eap;eap_ttls_process_tnc_start",
154 for count, func, identity, phase2 in tests:
Dtest_eap_proto.py825 tests = [(1, "eap_msg_alloc;eap_sake_build_msg;eap_sake_process_challenge"),
834 for count, func in tests:
850 tests = [(1, "os_get_random;eap_sake_process_challenge"),
857 for count, func in tests:
935 tests = [(1, "eap_sake_init"),
943 for count, func in tests:
947 tests = [(1, "eap_sake_init"),
955 for count, func in tests:
1645 tests = [(1, "eap_md5_init")]
1646 for count, func in tests:
[all …]
Drun-tests.py232 tests = []
245 tests.append(val)
251 return tests, test_modules, names
254 tests, test_modules, test_names = import_test_cases()
304 …if (args.tests and args.testmodules) or (args.tests and args.mfile) or (args.testmodules and args.…
308 if args.tests:
310 for t in args.tests:
352 if args.tests:
353 for selected in args.tests:
354 for t in tests:
[all …]
Dtest_pmksa_cache.py856 tests = [(1, "rsn_preauth_receive"),
860 for test in tests:
1188 tests = []
1190 tests += [_bssid + foreign + proto]
1192 tests += [_bssid + foreign + proto + struct.pack('>BBH', 0, 0, 0)]
1194 tests += [foreign + foreign + proto + struct.pack('>BBH', 0, 0, 0)]
1196 tests += [_bssid + _addr + proto + struct.pack('>BBH', 0, 0, 0)]
1198 tests += [_bssid + foreign + proto + struct.pack('>BBH', 0, 1, 1)]
1200 tests += [_bssid + foreign + proto + struct.pack('>BBH', 0, 1, 0)]
1202 tests += [_bssid + foreign + proto + struct.pack('>BBH', 0, 1, 1)]
[all …]
Dtest_owe.py788 tests = [(1, "crypto_ecdh_init;owe_build_assoc_req"),
791 for count, func in tests:
800 tests = [(1, "crypto_ecdh_set_peerkey;owe_process_assoc_resp"),
803 for count, func in tests:
812 tests = [(1, "hmac_sha256;owe_process_assoc_resp", 19),
818 for count, func, group in tests:
893 tests = [b'']
895 tests += [binascii.unhexlify('ff0120')]
897 tests += [binascii.unhexlify('ff03201200')]
899 tests += [binascii.unhexlify('ff23201300' + 31*'00' + '01')]
[all …]
Dtest_eap.py511 tests = [(1, "eap_teap_tlv_eap_payload"),
524 for count, func in tests:
534 tests = [(1, "eap_teap_derive_eap_msk"),
541 for count, func in tests:
558 tests = [(1, "eap_teap_tlv_pac_ack"),
560 for count, func in tests:
571 tests = [(1, "eap_teap_derive_cmk_basic_pw_auth")]
572 for count, func in tests:
/hostap-latest/tests/
Dtest-md4.c19 } tests[] = { in main() local
64 for (i = 0; i < ARRAY_SIZE(tests); i++) { in main()
67 addr[0] = (u8 *) tests[i].data; in main()
68 len[0] = strlen(tests[i].data); in main()
70 if (memcmp(hash, tests[i].hash, 16) != 0) { in main()
77 addr[0] = (u8 *) tests[i].data; in main()
78 len[0] = strlen(tests[i].data); in main()
79 addr[1] = (u8 *) tests[i].data + 1; in main()
80 len[1] = strlen(tests[i].data) - 1; in main()
82 if (memcmp(hash, tests[i].hash, 16) != 0) { in main()
Dtest-rc4.c30 static const struct rc4_test_vector tests[] = { variable
201 #define NUM_TESTS ARRAY_SIZE(tests)
225 const struct rc4_test_vector *test = &tests[i]; in main()
/hostap-latest/doc/
Dtesting_tools.doxygen6 \ref unit_tests "Unit tests" |
12 used to implement automatic tests suites.
31 RADIUS server. For example, the automated EAP tests described in
88 based on the code that wpa_supplicant is using. As such, it tests
113 \section unit_tests Unit tests
116 their own unit tests for automated validation of the basic
117 functionality. Most of the tests for cryptographic algorithms are
118 using standard test vectors to validate functionality. These tests can
121 The test programs are collected in the tests subdirectory. All
122 automated unit tests can be run with
[all …]
/hostap-latest/src/crypto/
Dcrypto_module_tests.c902 } tests[] = { in test_md5() local
947 for (i = 0; i < ARRAY_SIZE(tests); i++) { in test_md5()
950 addr[0] = (u8 *) tests[i].data; in test_md5()
951 len[0] = strlen(tests[i].data); in test_md5()
953 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
960 addr[0] = (u8 *) tests[i].data; in test_md5()
961 len[0] = strlen(tests[i].data); in test_md5()
962 addr[1] = (u8 *) tests[i].data + 1; in test_md5()
963 len[1] = strlen(tests[i].data) - 1; in test_md5()
965 os_memcmp(hash, tests[i].hash, 16) != 0) { in test_md5()
[all …]
/hostap-latest/tests/remote/
Drun-tests.py164 tests = []
175 tests.append(val)
176 test_names = list(set([t.__name__.replace('test_', '', 1) for t in tests]))
238 tests.sort(key=lambda t: t.__name__)
262 for test in tests:
265 tests = filtered_tests
270 tests_to_run = tests
274 for test in tests:
280 for tt in tests:
/hostap-latest/
D.gitignore3 tests/hwsim/logs
4 tests/remote/logs

123