Skip to content

Commit

Permalink
add unit test for --preload-pcap. refs appneta#410
Browse files Browse the repository at this point in the history
  • Loading branch information
synfinatic committed Mar 13, 2010
1 parent e2581f9 commit 31db414
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ tcprewrite: rewrite_portmap rewrite_endpoint rewrite_pnat rewrite_trunc \
rewrite_1ttl rewrite_2ttl rewrite_3ttl rewrite_tos rewrite_mtutrunc

tcpreplay: replay_basic replay_cache replay_pps replay_rate replay_top \
replay_config replay_multi replay_pps_multi
replay_config replay_multi replay_pps_multi replay_precache

prep_config:
$(PRINTF) "%s" "[tcpprep] Config mode test: "
Expand Down Expand Up @@ -519,6 +519,12 @@ replay_top:
$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) -t test.pcap >>test.log 2>&1
if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi

replay_precache:
$(PRINTF) "%s" "[tcpreplay] Precache test: "
$(PRINTF) "%s\n" "*** [tcpreplay] Precache test: " >>test.log
$(TCPREPLAY) $(ENABLE_DEBUG) -i $(nic1) --preload-pcap test.pcap >>test.log 2>&1
if [ $? ] ; then $(PRINTF) "\t\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t\t%s\n" "OK"; fi

datadump_mode:
$(PRINTF) "%s" "[tcpreplay] Data dump test: "
$(PRINTF) "%s\n" "*** [tcpreplay] Data dump mode test: " >>test.log
Expand Down

0 comments on commit 31db414

Please sign in to comment.