aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: Suite BJouni Malinen2014-11-163-0/+42
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Clear ignore_old_scan_res settingJouni Malinen2014-11-151-0/+1
| | | | | | | | | | This parameter was used in some of the NFC test cases to make scanning more robust in case of changing AP configuration. However, the parameter was not cleared anywhere, so it could have been left in use for other test cases as well. To get more consistent behavior, clear the value back to its default between test cases. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: PMF required with SHA1-based AKMJouni Malinen2014-11-141-0/+19
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: DFS with chanlistJouni Malinen2014-11-011-1/+113
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Make vm-run.sh arguments non-positionalIlan Peer2014-11-011-18/+26
| | | | | | | | This was currently breaking parallel-run.*, as it was passing --split num/num parameters (intended for rnu-tests.py) to vm-run.sh which broke the --codecov and --timewrap options. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Update vm READMEIlan Peer2014-11-011-1/+1
| | | | | | | Update the code coverage documentation to also specify the source base directory for the code coverage generation. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add usage() to run-all.shIlan Peer2014-11-011-0/+11
| | | | | | | The -h or --help command line arguments can now be used to request usage information for run-all.sh. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add option to build before running all testsIlan Peer2014-11-011-1/+39
| | | | | | | | Add an option --build to run-all.sh to build before starting to run all the tests. In addition, add an option --codecov to extract the code coverage data at the end of the run. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Make run-all.sh arguments non-positionalIlan Peer2014-11-011-20/+37
| | | | Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Concurrent station mode scan and p2p_find with P2P DeviceJouni Malinen2014-10-301-0/+12
| | | | | | | This verifies that station mode interface SCAN command gets executed if P2P Device instance is running p2p_find. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: P2P_STOP_FIND/P2P_FLUSH to ignore new resultsJouni Malinen2014-10-301-0/+31
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: GO Negotiation and timeout while waiting for peerJouni Malinen2014-10-291-0/+26
| | | | | | | | grpform_cred_ready_timeout2 is similar to the grpform_cred_ready_timeout test case with the difference being in initiating a P2P_FIND operation during the wait. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Remove ap_ht40_csa and ap_ht40_csa3 workaroundsJouni Malinen2014-10-281-20/+4
| | | | | | | | The issue in mac80211 was identified and proposed fix is now available, so remove the workaround here and start reporting failures from unexpected disconnection during CSA. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Scan result update changing last_scan_res and connect_workJouni Malinen2014-10-271-0/+87
| | | | | | | | This verifies that last_scan_res and connect work pointers to BSS entries get updated when scan result update ends up removing or reallocating a BSS entry. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: WPS with ap_scan=2Jouni Malinen2014-10-271-0/+31
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Allow GCMP to be added into ap_wps_mixed_cred network profileJouni Malinen2014-10-271-1/+1
| | | | | | | This is needed in preparation for WPS AES being mapped to enabling both CCMP and GCMP if the driver supports both ciphers. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Add support for reading modules list from a fileIlan Peer2014-10-261-2/+14
| | | | | | | The new run-tests.py argument "-l <file>" can now be used to specify the test modules using a text file. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add usage() to build.shIlan Peer2014-10-261-1/+7
| | | | Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add an option to force copy config filesIlan Peer2014-10-261-2/+7
| | | | | | | "./build.sh --force-config" can be used to force copying configuration files before building. This will overwrite any changes in .config files. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: Add an option to build with code coverageIlan Peer2014-10-261-0/+34
| | | | | | | "./build.sh --codecov" can now be used to request CONFIG_CODE_COVERAGE=y to be added to hostapd and wpa_supplicant .config files. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
* tests: cfg80211 connect command for WEP connectionJouni Malinen2014-10-261-0/+30
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: External bridge control for hostapd interfaceJouni Malinen2014-10-261-0/+45
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: hostapd rfkillJouni Malinen2014-10-261-0/+43
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Print failure exeception if logger output goes to fileJouni Malinen2014-10-261-0/+2
| | | | | | | This makes it more convenient to determine failure reasons during test case development and VM testing. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: IP address in STATUSJouni Malinen2014-10-261-0/+12
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Make ap_ht40_csa and ap_ht40_csa3 less likely to failJouni Malinen2014-10-251-2/+10
| | | | | | | | It looks like cfg80211 can trigger disconnection even without disabling HT, so the same issue may be hit with both of the channel switches in these test cases. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Group formation wait for peer with driver increasing ROC durationJouni Malinen2014-10-251-0/+22
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Channel switch with HT40Jouni Malinen2014-10-251-0/+130
| | | | | | | | | | | | ap_ht40_csa and ap_ht40_csa3 seem to show a cfg80211/mac80211 issue where a CSA from HT40+ to HT40- channel results in HT getting disabled due to cfg80211_chandef_compatible() check on c1->width == c2->width claiming that the new channel is not compatible. For now, comment out the FAIL case for these known issues to avoid constant failure for cases that are not wpa_supplicant/hostapd issues. Once the kernel side design has been reviewed, these error cases can be enabled here. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Channel switch with VHT80Jouni Malinen2014-10-251-0/+51
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Radar detection on HT40 channelJouni Malinen2014-10-251-11/+31
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Allow time for go_neg_pbc() GO Neg Resp to go outJouni Malinen2014-10-231-0/+3
| | | | | | | | | | | It was possible for the not-pre-authorized GO Negotiation case to end up starting new GO Negotiation before the GO Negotiation Response frame with status=1 was transmitted. While this works for group formation, it could reduce test coverage for the common case where that response is received. At a small sleep to make it less likely for this unexpected sequence to happen during testing. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Disable support_p2p_device by defaultJohannes Berg2014-10-222-2/+2
| | | | | | | | When loading the hwsim module, disable support_p2p_device by default. This will also become the default in the kernel, but until then it makes sure it's not turned on by default. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Use dynamic radio for P2P_DEVICE testsJohannes Berg2014-10-221-27/+31
| | | | | | | Use dynamic radios for P2P_DEVICE tests to be able to test support when the default in hwsim is to not support it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Run run-tests.py as root from run-all.shJouni Malinen2014-10-221-1/+1
| | | | | | | | | | | | This will be needed to be able to control dynamic mac80211_hwsim operations like adding and removing a phy. In the past, it has been possible to start the main programs as root and then use non-root account for run-tests.py. However, there is already a large number of cases within the test scripts where sudo is needed. Moving that requirement to execution of run-tests.py allows those to be simplified as well. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: P2P SD with GOJouni Malinen2014-10-211-0/+31
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: BSS Load updatesJouni Malinen2014-10-211-0/+14
| | | | Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
* tests: Introduce hwsim radio context managerJohannes Berg2014-10-211-1/+27
| | | | | | | | | | The new HWSimRadio context manager allows the following syntax to create (and appropriately destroy) a new radio: with HWSimRadio([...]) as (radio_id, iface_name): [...] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Allow creating radio with p2p-device supportJohannes Berg2014-10-211-1/+5
| | | | | | | For testing P2P-Device support properly, allow dynamically creating radios with support for it in hwsim. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Remove wlan5-related interfaces based on listJouni Malinen2014-10-201-1/+4
| | | | | | | | Instead of hardcoding reset_devs() to remove wlan5, remove all wlan* interfaces renaming in the wpa_supplicant process to support the case of dynamically added hwsim phy. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Make RELOG command use global control interfaceJouni Malinen2014-10-202-2/+2
| | | | | | | This allows RELOG to be used even if a wpa_supplicant process does not have any interfaces configured. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Use internal DATA_TEST_* functionality instead of hwsim_testJouni Malinen2014-10-192-13/+116
| | | | | | | | | | | | | This replaces use of the external hwsim_test tool for most data connectivity test cases. Only the cases where a special interface (bridge/VLAN) is used are still executed through hwsim_test. The internal DATA_TEST_* functionality makes it easier to extend the connectivity test cases through an external device with real WLAN hardware instead of the hwsim test setup. In addition, the error reports from this code can be made more informative. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add WpaSupplicant.wait_group_event()Jouni Malinen2014-10-191-0/+47
| | | | | | This can be used to wait for events from a P2P group interface. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add own_addr() for both Hostapd and WpaSupplicant classesJouni Malinen2014-10-192-0/+13
| | | | | | | | This makes it easier to use instances of control interfaces in common code without having to separately address hostapd and wpa_supplicant behavior differences. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Pass wpas/hapd instance to test_connectivity()Jouni Malinen2014-10-1926-380/+411
| | | | | | | This makes it easier to replace data connectivity testing to use something else than local hwsim_test binary on the controller device. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add test cases for AP channel switch announcementLuciano Coelho2014-10-191-0/+116
| | | | | | | | Signed-hostap: Luciano Coelho <luciano.coelho@intel.com> Skip CSA tests if the driver doesn't support this in AP mode. Signed-hostap: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
* Add a test vector for AES-SIVJouni Malinen2014-10-191-0/+58
| | | | | | | This verifies that the AES-SIV implementation results matches RFC 5297 test vector A.1. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Provide more details of parallel testing with curses UIJouni Malinen2014-10-191-42/+94
| | | | | | | This extends parallel-vm.py to show more details about testing progress from each VM. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: P2P re-invocation with p2p_add_cli_chan=1Jouni Malinen2014-10-181-0/+13
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Removing a P2P group via the group control interfaceToby Gray2014-10-181-0/+18
| | | | | | | This adds a test which attempts to use the control interface for the P2P group to remove the P2P group. Signed-off-by: Toby Gray <toby.gray@realvnc.com>
* tests: SAE PMKSA cachingJouni Malinen2014-10-181-0/+37
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>