aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Mesh and HT40 support differenceJouni Malinen2017-01-291-1/+54
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: wpa_supplicant mesh with dynamic interface and removalJouni Malinen2017-01-291-0/+22
| | | | | | | | This is a regression test case for SIGSEGV in wpa_supplicant_remove_iface() if the main interface is removed while a separate mesh interface is in use. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Remove mesh before trying to clear BSS cacheJouni Malinen2017-01-291-0/+37
| | | | | | | | | | The flush_scan_cache() operations in the finally part of these test cases ended up getting called when the mesh group was still operating. This could result in unexpected behavior due to offchannel scan being performed before the device becomes idle. Clean this up by explicitly removing the mesh group before cleaning up. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Comment out CONFIG_DEBUG_KOBJECT_RELEASE from default configJouni Malinen2017-01-291-1/+1
| | | | | | | | | | | | | | | | This kernel debugging option adds multiple seconds of extra latency to interface removal operations. While this can be worked around by increasing timeouts in number of test cases, there does not seem to be any clean way of working around this for PMKSA cacheching test with per-STA VIFs (e.g., pmksa_cache_preauth_vlan_used_per_sta_vif). To avoid unnecessary test failures, remove CONFIG_DEBUG_KOBJECT_RELEASE from the default config. If someone wants to test with this kernel debug option, it can be enabled for custom kernel builds while understanding that it can result in false failure reports and significantly extended time needed to complete full testing run. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Increase timeout in ap_vlan_iface_cleanup_multibss*Jouni Malinen2017-01-291-1/+1
| | | | | | | | | If the kernel is built with CONFIG_DEBUG_KOBJECT_RELEASE=y, the cleanup steps were taking so long that these test cases could fail. Fix this by increasing the timeout to avoid reporting failures. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: FILS SK using ERP and roam to another SSIDJouni Malinen2017-01-291-0/+56
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: FILS SK HLPJouni Malinen2017-01-291-0/+55
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Increase timeout in ap_bss_config_file for CTRL-EVENT-TERMINATINGJouni Malinen2017-01-291-1/+1
| | | | | | | | | | | | | If the kernel is built with CONFIG_DEBUG_KOBJECT_RELEASE=y, the hostapd termination event for the wlan3 interface may be delayed beyond the previous five second timeout. This could result in the test case failing and the following test case failing as well due to the separate hostapd process being still in the process of cleaning up. Fix this by increasing the timeout to avoid forcing test termination in such cases. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix OpenSSL capability check in suite_b_192_mic_failureJouni Malinen2017-01-291-1/+1
| | | | | | This needs to check for 192-bit level instead of 128-bit level. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Split proxyarp test cases into IPv4 and IPv6 partsJouni Malinen2017-01-292-83/+221
| | | | | | | | | This is useful for now since the IPv6 support for proxyarp is not yet included in the upstream kernel. This allows the IPv4 test cases to pass with the current upstream kernel while allowing the IPv6 test cases to report SKIP instead of FAIL. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Step-by-step guide for testing in VMJouni Malinen2017-01-291-0/+95
| | | | | | | This describes example steps on how to get the VM testing setup with parallel VMs configured with Ubuntu Server 16.04.1. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Skip rrm_link_measurement tests if kernel support is not availableJouni Malinen2017-01-281-0/+7
| | | | | | | | | | rrm_link_measurement and rrm_link_measurement_oom test cases were causing incorrect failures when executed with a kernel version that does not modify mac80211_hwsim to support TX power insertion. Fix this by checking for that capability and skipping the test cases if the kernel does not support this. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Update example VM kernel configJouni Malinen2017-01-281-124/+724
| | | | | | This is now based on Linux 4.10.0-rc5. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: GAS comeback delay that is longer than query timeoutJouni Malinen2017-01-231-1/+8
| | | | | | | This is a regression test for comeback delay values larger than GAS_QUERY_TIMEOUT_PERIOD causing timeouts for the query. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Secure mesh network and PMKSA caching and external storageJouni Malinen2017-01-141-0/+88
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: D-Bus Get/Set PmfJouni Malinen2017-01-141-0/+43
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Disable HT in ibss_rsn to avoid a strange issue with mac80211Jouni Malinen2017-01-141-0/+7
| | | | | | | | | | | | | | | When fixing the TK clearing on Authentication frame RX, an issue in getting unicast frames through after re-joining the IBSS was hit. It is not exactly clear why this happens, but the unicast frame from the STA that re-joined the network gets lost in the frame reorder buffer of the STA that remains in the network. For now, this disables HT to avoid a strange issue with mac80211 frame reordering during the final test_connectivity() call. Once that is figured out, these disable_ht=1 calls should be removed from the test case. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: AP dropping duplicate management framesJouni Malinen2017-01-131-0/+60
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Fix peerkey_sniffer_check with tshark 1.10.6Jouni Malinen2017-01-131-0/+9
| | | | | | | | It looks like the previous mechanism for catching older tshark versions for EAPOL-Key key info field was not sufficient. Fix that to cover the version used in Ubuntu 14.04. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Mesh with two stations that can't reach each other directly (RSN)Jouni Malinen2017-01-131-0/+24
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Add a test for mesh forwardingJohannes Berg2017-01-132-0/+31
| | | | | | | | Add a new test that tests connectivity between two stations that can't reach each other directly in the mesh, but need forwarding on another station to talk to each other. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Scan result parsingJouni Malinen2017-01-081-0/+97
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPS_AP_PIN failureJouni Malinen2017-01-081-0/+22
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: WPS_PIN start failureJouni Malinen2017-01-081-0/+9
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: PIN generation failureJouni Malinen2017-01-081-1/+8
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Invalid WMM_AC_ADDTS parameterJouni Malinen2017-01-081-0/+4
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: TDLS_CHAN_SWITCH error caseJouni Malinen2017-01-081-0/+2
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: TDLS and tdls_external_controlJouni Malinen2017-01-081-0/+47
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: More GET wifi_display coverageJouni Malinen2017-01-081-0/+16
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: wpa_supplicant SET tdls_trigger_controlJouni Malinen2017-01-081-0/+7
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: wpa_supplicant SET radio_disabledJouni Malinen2017-01-081-0/+7
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: wpa_supplicant SET lci error casesJouni Malinen2017-01-081-0/+9
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Additional bgscan test coverageJouni Malinen2017-01-081-1/+121
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add more wpas_config_file variable coverageJouni Malinen2017-01-071-22/+114
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Use logdir for config file in wpas_config_fileJouni Malinen2017-01-071-11/+10
| | | | | | | This reduces use of /tmp for test case specific dynamically created files. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: LCI report generation and os_get_reltime() failureJouni Malinen2017-01-071-0/+15
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Radio measurement request - link measurementJouni Malinen2017-01-071-0/+48
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Radio/link measurement request for non-RRM associationJouni Malinen2017-01-071-0/+29
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Radio measurement request - OOM while rejecting a requestJouni Malinen2017-01-071-0/+23
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix rrm_beacon_req_passive_ap_channels to use passive scanJouni Malinen2017-01-071-1/+1
| | | | | | | | The request from the AP was encoded incorrectly for this test case and an active scan was requested instead of the passive one that was supposed to be used here. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Beacon request - active scan mode os_get_random failureJouni Malinen2017-01-071-0/+16
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Check rrm capabilities with a helper functionJouni Malinen2017-01-071-39/+22
| | | | | | And also move couple of these checks to the beginning of the test case. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Remove write-only bssid assignments from rrm test casesJouni Malinen2017-01-071-13/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Beacon request - passive scan mode - VHTJouni Malinen2017-01-071-0/+102
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Prepare rrm_beacon_req_passive_no_match_oom for code changeJouni Malinen2017-01-071-1/+1
| | | | | | | | | Replace the TEST_ALLOC function wpas_beacon_rep_no_results with an earlier function in the backtrace and wpabuf_resize() in preparation to a code change that allows the compiler to optimize out wpas_beacon_rep_no_results(). Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: P2P autonomous GO switching channels (separate group interface)Jouni Malinen2017-01-051-1/+12
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Use group control interface for GO commands in autogo_chan_switchAvraham Stern2017-01-051-2/+2
| | | | | | | | | | | | The channel switch command is intended for the GO interface, but it was not sent on the group control interface. For configurations that use a separate interface for P2P groups, this will fail the test. Fix this by sending the channel switch command on the group control interface and waiting for the channel switch event on the group control interface. Signed-off-by: Avraham Stern <avraham.stern@intel.com>
* tests: Beacon request - active scan mode and old scan resultJouni Malinen2017-01-031-0/+27
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Beacon request - passive scan mode and no matching BSSJouni Malinen2017-01-031-0/+40
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Beacon request - active scan mode and many BSSsJouni Malinen2017-01-035-0/+87
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>