tests: Redirect tcpdump output to a file
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4c559019bd
commit
be1a40f26f
2 changed files with 2 additions and 2 deletions
|
@ -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 &
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue