Skip to content

Commit

Permalink
Adjust sleep time and add wait to intel_mp test
Browse files Browse the repository at this point in the history
  • Loading branch information
takikawa committed Aug 16, 2017
1 parent 9f3074d commit b0b0daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/apps/intel_mp/test_10g_come_and_go.sh
Expand Up @@ -2,12 +2,14 @@
SNABB_SEND_BLAST=true ./testsend.snabb $SNABB_PCI_INTEL1 0 source.pcap &
BLAST=$!

SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=5 ./testrecv.snabb $SNABB_PCI_INTEL0 0 > results.0 &
SNABB_RECV_SPINUP=2 SNABB_RECV_DURATION=10 ./testrecv.snabb $SNABB_PCI_INTEL0 0 > results.0 &
RECV=$!

sleep 1
export SNABB_RECV_DURATION=1
for i in {1..7}; do ./testrecv.snabb $SNABB_PCI_INTEL0 1; done > results.1
sleep 1
kill -9 $BLAST
wait $RECV
test `cat results.* | grep "^RXDGPC" | awk '{print $2}'` -gt 10000
exit $?

0 comments on commit b0b0daa

Please sign in to comment.