Changeset 1488

Show
Ignore:
Timestamp:
07/09/06 18:20:26 (3 years ago)
Author:
aturner
Message:

add mac mode split test
refs #1

Location:
trunk/test
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r1465 r1488  
    1414 
    1515EXTRA_DIST = test.pcap test.auto_bridge test.auto_client test.auto_router \ 
    16                  test.auto_server test.cidr test.comment test.port \ 
     16                 test.auto_server test.cidr test.comment test.port test.mac \ 
    1717                 test.prep_config test.primary test.regex test.secondary 
    1818 
     
    3636        $(TCPPREP) --load-opts config -o test.prep_config 
    3737        $(TCPPREP) -i test.pcap -o test.port -p 
     38        $(TCPPREP) -i test.pcap -o test.mac -e 00:02:3b:00:3d:ce 
    3839        $(TCPPREP) -i test.pcap -o test.cidr -c '216.27.178.0/24' 
    3940        $(TCPPREP) -i test.pcap -o test.regex -r '216.27.178.*' 
    4041        $(TCPPREP) -i test.pcap -o test.comment -C "This is a comment" -p 
    4142 
    42 tcpprep: auto_router auto_bridge auto_client auto_server cidr regex port comment print_info print_comment prep_config 
     43tcpprep: auto_router auto_bridge auto_client auto_server cidr regex port mac comment print_info print_comment prep_config 
    4344tcprewrite: rewrite_cache rewrite_cidr rewrite_trunc rewrite_pad rewrite_rand rewrite_layer2 rewrite_config 
    4445tcpreplay: replay_basic replay_cache replay_pps replay_rate replay_top replay_config replay_multi 
     
    100101        if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi 
    101102 
     103mac: 
     104        $(PRINTF) "%s" "[tcpprep] MAC mode test: " 
     105        $(PRINTF) "%s\n" "*** [tcpprep] MAC mode test: " >>test.log 
     106        $(TCPPREP) $(ENABLE_DEBUG) -i test.pcap -o test.$@1 -e 00:02:3b:00:3d:ce 2>>test.log 
     107        diff test.$@ test.$@1 >>test.log 2>&1 
     108        if [ $? ] ; then $(PRINTF) "\t\t%s\n" "FAILED"; else $(PRINTF) "\t\t%s\n" "OK"; fi 
     109 
    102110comment: 
    103111        $(PRINTF) "%s" "[tcpprep] Comment mode test: "