hostap/tests/hwsim/stop-wifi.sh
Jouni Malinen 0c43a982c7 tests: Add option to run test cases under valgrind/concurrent P2P
./run-all.sh can now take an optional argument to select whether to run
all test cases as before (default), to run these under valgrind
("valgrind"), to run P2P test cases with concurrent station interface
("concurrent"), or the concurrent P2P test cases under valgrind
("concurrent-valgrind").

valgrind cases report errors if a test case fails or valgrind reports an
error.

Signed-hostap: Jouni Malinen <j@w1.fi>
2013-08-24 20:33:21 +03:00

15 lines
338 B
Bash
Executable file

#!/bin/sh
sudo killall -q hostapd
sudo killall -q wpa_supplicant
if [ "x$1" = "xvalgrind" ]; then
sudo kill `pidof valgrind.bin`
fi
sudo killall -q wlantest
sudo killall -q tcpdump
if grep -q hwsim0 /proc/net/dev; then
sudo ifconfig hwsim0 down
fi
if grep -q mac80211_hwsim /proc/modules ; then
sudo rmmod mac80211_hwsim
fi