Changeset ac62ea2


Ignore:
Timestamp:
09/15/06 16:05:55 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
e4976e1
Parents:
959f88f
Message:

Test pcapfile writing
Warn only about errors while setting compression level

Location:
test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • test/Makefile

    rfaffcfc rac62ea2  
    6060        @rm -f traces/*.out.*
    6161        @LD_LIBRARY_PATH="$(libdir)" ./test-convert pcapfile erf
     62        @echo " * pcapfile -> pcapfile"
     63        @rm -f traces/*.out.*
     64        @LD_LIBRARY_PATH="$(libdir)" ./test-convert pcapfile pcapfile
     65        @echo " * pcap -> pcapfile"
     66        @rm -f traces/*.out.*
     67        @LD_LIBRARY_PATH="$(libdir)" ./test-convert pcap pcapfile
     68        @echo " * erf -> pcapfile"
     69        @rm -f traces/*.out.*
     70        @LD_LIBRARY_PATH="$(libdir)" ./test-convert erf pcapfile
    6271        @#LD_LIBRARY_PATH="$(libdir)" ./test-convert rtclient erf
    6372        @#LD_LIBRARY_PATH="$(libdir)" ./test-convert rtclient pcap
  • test/test-convert.c

    r67cd8c1 rac62ea2  
    9090        if (!strcmp(type,"pcap"))
    9191                return "pcap:traces/100_packets.out.pcap";
     92        if (!strcmp(type,"pcapfile"))
     93                return "pcapfile:traces/100_packets.out.pcap";
    9294        if (!strcmp(type,"wtf"))
    9395                return "wtf:traces/wed.out.wtf";
     
    119121        level=0;
    120122        trace_config_output(outtrace,TRACE_OPTION_OUTPUT_COMPRESS,&level);
    121         iferrout(outtrace);
     123        if (trace_is_err_output(outtrace)) {
     124                trace_perror_output(outtrace,"WARNING: ");
     125        }
    122126
    123127        trace_start(trace);
Note: See TracChangeset for help on using the changeset viewer.