aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: WPA2-PSK and supplicant receiving unexpected EAPOL-Key framesHEADpendingmasterJouni Malinen29 hours1-0/+34
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Use helper functions for PSK ext EAPOL-Key processingJouni Malinen29 hours1-74/+26
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: ANQP protection indicationJouni Malinen30 hours1-0/+13
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Fix test description strings for couple of SAE casesJouni Malinen8 days1-3/+3
| | | | | | Remove the extraneous closing parenthesis. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Prepare for control interface message changeJouni Malinen2020-11-031-1/+2
| | | | | | | Update ap_wpa2_psk_supp_proto_too_long_gtk_in_group_msg to accept upcoming change in the parsing validation step that catches the issue. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: TDLS with SAEJouni Malinen2020-11-021-15/+36
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Update dpp_controller_rx_errors to use the assigned TCP portJouni Malinen2020-10-201-1/+1
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: SAE status code handlingJouni Malinen2020-10-191-0/+41
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* Fix spelling of "unexpected" in messagesJouni Malinen2020-10-161-2/+2
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove wpas_mesh_open_5ghz_coexMarkus Theil2020-10-141-50/+0
| | | | | | | This is in preparation for an implementation change that ends up contradicting the operations enforced in this test case for mesh coex. Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
* tests: Silence compiler warnings from test-base64Jouni Malinen2020-10-121-2/+2
| | | | | | | Use typecasting to match the base64_{encode,decode}() function prototype for signed/unsigned char buffer. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Build test-https and test-https_server as part of ALLJouni Malinen2020-10-121-1/+1
| | | | | | | Even though these are not part of run-tests, it is simpler to just build them like all other tests/test-* tools. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove unnecessary libraries from tests/test-*.c buildJouni Malinen2020-10-121-11/+0
| | | | | | | These libraries are not needed anymore with the remaining tests/test-*.c tools. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete ASN.1 parser/fuzzerJouni Malinen2020-10-122-199/+1
| | | | | | | tests/fuzzing/asn1 replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete TLS fuzzerJouni Malinen2020-10-122-247/+0
| | | | | | | tests/fuzzing/tls-{client,server} replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete EAPOL-Key fuzzerJouni Malinen2020-10-122-612/+0
| | | | | | | tests/fuzzing/eapol-key-{auth,supp} replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete json fuzzerJouni Malinen2020-10-122-68/+0
| | | | | | | tests/fuzzing/json replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete ap-mgmt-fuzzerJouni Malinen2020-10-126-277/+0
| | | | | | | tests/fuzzing/ap-mgmt replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete eapol-fuzzerJouni Malinen2020-10-125-279/+0
| | | | | | | tests/fuzzing/eapol-supp replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete wnm-fuzzerJouni Malinen2020-10-124-210/+0
| | | | | | | tests/fuzzing/wnm replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Remove obsolete p2p-fuzzerJouni Malinen2020-10-128-267/+0
| | | | | | | tests/fuzzing/p2p replaced this more than a year ago, so get rid of the now obsolete version. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Fix mesh_open_vht_160 false negative by using common finalizerMasashi Honma2020-10-121-5/+1
| | | | | | | | | | | | | mesh_open_vht_160 might fail with this message: --------------- wlan0: Country code not reset back to 00: is ZA wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix wpas_mesh_open_vht_80p80 false negative by using common finalizerMasashi Honma2020-10-121-5/+1
| | | | | | | | | | | | | wpas_mesh_open_vht_80p80 might fail with this message: --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix wpas_mesh_open_vht20 false negative by using common finalizerMasashi Honma2020-10-121-5/+1
| | | | | | | | | | | | | wpas_mesh_open_vht20 might fails with this message: --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix wpas_mesh_open_vht40 false negative by using common finalizerMasashi Honma2020-10-121-5/+1
| | | | | | | | | | | | | wpas_mesh_open_vht40 might fail with this message: --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix wpas_mesh_open_ht40 false negative by using common finalizerMasashi Honma2020-10-121-1/+1
| | | | | | | | | | | | | wpas_mesh_open_ht40 might fail with this message: --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix wpas_mesh_open_5ghz false negative by using common finalizerMasashi Honma2020-10-121-5/+1
| | | | | | | | | | | | | wpas_mesh_open_5ghz might fail with this message: --------------- wlan0: Country code not reset back to 00: is US wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: Fix mesh_secure_ocv_mix_legacy false negative by using common finalizerMasashi Honma2020-10-121-1/+1
| | | | | | | | | | | | | mesh_secure_ocv_mix_legacy might fail with this message: --------------- wlan0: Country code not reset back to 00: is AZ wlan0: Country code cleared back to 00 --------------- This patch fixes the issue. Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
* tests: build.sh: Avoid copying .config if identicalJohannes Berg2020-10-111-2/+6
| | | | | | | If the .config file is already identical, avoid copying it even if -f was specified; this improves build time if nothing has changed. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: build.sh: Remove 'make clean' stepsJohannes Berg2020-10-111-5/+0
| | | | | | | Since the build artifacts are now landing in distinct directories, we don't need to 'make clean' and save some rebuild time. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* build: Put archive files into build/ folder tooJohannes Berg2020-10-1118-87/+72
| | | | | | | | | | | | | | | | This is something I hadn't previously done, but there are cases where it's needed, e.g., building 'wlantest' and then one of the tests/fuzzing/*/ projects, they use a different configuration (fuzzing vs. not fuzzing). Perhaps more importantly, this gets rid of the last thing that was dumped into the source directories, apart from the binaries themselves. Note that due to the use of thin archives, this required building with absolute paths. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* build: Use the new build system for fuzz testsJohannes Berg2020-10-1117-123/+130
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: dbus: Add test for RemoveAllNetworks while connectedBrian Norris2020-10-101-0/+100
| | | | | | | | | This likely passes today (at least without ASAN), but without the next commit, it trips up a use-after-free bug, which ASAN can catch. So consider this a regression test. Signed-off-by: Brian Norris <briannorris@chromium.org>
* tests: run-tests: Do not use sudo if already rootBrian Norris2020-10-101-1/+7
| | | | | | | Among other things, sudo can disrupt environment variables that a caller provides. Signed-off-by: Brian Norris <briannorris@chromium.org>
* tests: Skip busctl tests when not availableBrian Norris2020-10-101-0/+3
| | | | Signed-off-by: Brian Norris <briannorris@chromium.org>
* tests: D-Bus RoamJouni Malinen2020-10-101-0/+68
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Prepare ap_blacklist_all for implementation changeJouni Malinen2020-10-101-2/+1
| | | | | | | | The blacklist design will be modified in the following commits and that would result in this validation step based on the older implementation starting to fail. Remove this check to avoid such testing failures. Signed-off-by: Jouni Malinen <j@w1.fi>
* gitignore: Add various thingsJohannes Berg2020-10-1017-0/+17
| | | | Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Use new build system for the testsJohannes Berg2020-10-101-26/+17
| | | | | | | I had previously kept that building in the sources, but we can also change that. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: Rewrite .gitignore fileJohannes Berg2020-10-101-16/+3
| | | | | | | The file was already outdated again, so rewrite it to ignore anything but c, h and sh files that start with "test-". Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* build: Put object files into build/ folderJohannes Berg2020-10-101-0/+7
| | | | | | | | | | | | | | | | Instead of building in the source tree, put most object files into the build/ folder at the root, and put each thing that's being built into a separate folder. This then allows us to build hostapd and wpa_supplicant (or other combinations) without "make clean" inbetween. For the tests keep the objects in place for now (and to do that, add the build rule) so that we don't have to rewrite all of that with $(call BUILDOBJS,...) which is just noise there. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* build: Add a common-clean targetJohannes Berg2020-10-101-3/+2
| | | | | | | | Clean up in a more common fashion as well, initially for ../src/. Also add $(Q) to the clean target in src/ Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* build: Pull common fragments into a build.rules fileJohannes Berg2020-10-101-16/+4
| | | | | | | Some things are used by most of the binaries, pull them into a common rule fragment that we can use properly. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
* tests: bgscan parameter updateJouni Malinen2020-10-091-0/+11
| | | | Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: Empty network profile parameters will be validJouni Malinen2020-10-091-2/+1
| | | | | | | | Remove this part of the dbus_network test case since it would be causing failures after wpa_supplicant is modified to accept empty strings through D-Bus. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
* tests: remote: Add run_monitor test caseJanusz Dziedzic2020-10-091-0/+52
| | | | | | | | | | | This is useful to run monitor quickly: ./run-tests.py -t run_monitor -m mon:36,20,36,0:1,20,1,0 In such example we will get one PCAP for 36/20 and 1/20. After execution, PCAP file is in the log directory, e.g.: ./logs/2019_11_11_13_36_24/run_monitor_mon_wlp3s0_wlp5s0.pcap Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
* tests: remote: Allow passing of parameters with monitor interfaceJanusz Dziedzic2020-10-092-2/+17
| | | | | | | | | | | | | | | This is mainly for standalone monitor in case we know and would like to setup specific monitor configuration. -m monitor:<chan>,<bw>, <cf1>, <cf2>:... For example: -m monitor:1,40,3,0 -m e4300:1,40,3,0:11,40,9,0 This also supports monitor with multiple interfaces (one pcap). Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
* tests: remote: Allow passing of parameters with devnameJanusz Dziedzic2020-10-091-0/+2
| | | | | | | Allow parameters to be passed together with the device name. For example, -m mon1:1,20,1,0 Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
* tests: remote: Unblock rfkill on monitorJanusz Dziedzic2020-10-091-0/+1
| | | | | | Unblock wifi rfkill before setup/run monitor. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
* tests: remote: Stop wpa_supplicant/hostapd using pidfileJanusz Dziedzic2020-10-091-4/+8
| | | | | | Instead of killall, use pidfile. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>