]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Redirect tcpdump output to a file
authorJouni Malinen <j@w1.fi>
Sun, 25 Aug 2013 18:43:21 +0000 (21:43 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 25 Aug 2013 18:43:21 +0000 (21:43 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/start-p2p-concurrent.sh
tests/hwsim/start.sh

index 8d14b2755e5343780de2afd8843216a763624b99..5f0608e361dc52a8f68b866fe0891cea26e5a2ad 100755 (executable)
@@ -20,7 +20,7 @@ mkdir -p $DIR/logs
 DATE=`date +%s`
 sudo ifconfig hwsim0 up
 sudo $WLANTEST -i hwsim0 -c -d > $DIR/logs/$DATE-hwsim0 &
-sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump &
+sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump > $DIR/logs/$DATE-tcpdump 2>&1 &
 if [ "x$VALGRIND" = "xy" ]; then
     for i in 0 1 2; do
        sudo valgrind --log-file=$DIR/logs/$DATE-valgrind-wlan$i $WPAS -g /tmp/wpas-wlan$i -Gadmin -Dnl80211 -iwlan$i -c $DIR/p2p$i.conf -N -Dnl80211 -ista$i -c $DIR/sta-dummy.conf -ddKt > $DIR/logs/$DATE-log$i &
index 3e96356d3a4756c8de4e047286c20b22de10d2c9..ebf0ae1f2d9ad735b1469ebee88958024936e4ea 100755 (executable)
@@ -17,7 +17,7 @@ mkdir -p $DIR/logs
 DATE=`date +%s`
 sudo ifconfig hwsim0 up
 sudo $WLANTEST -i hwsim0 -c -d > $DIR/logs/$DATE-hwsim0 &
-sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump &
+sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump > $DIR/logs/$DATE-tcpdump 2>&1 &
 if [ "x$VALGRIND" = "xy" ]; then
     for i in 0 1 2; do
        chmod a+rx $WPAS