Changeset 1b9272f for test


Ignore:
Timestamp:
03/27/07 00:36:01 (15 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:
3ec29a9
Parents:
9332105
Message:

Add support for testing .tsh files

Location:
test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • test/test-convert.c

    rd5a27e8 r1b9272f  
    8888        if (!strcmp(type, "duck"))
    8989                return "duck:traces/100_packets.duck";
     90        if (!strcmp(type, "tsh"))
     91                return "tsh:traces/10_packets.tsh.gz";
    9092        return "unknown";
    9193}
  • test/test-decode.c

    r38f9537 r1b9272f  
    8080        if (!strcmp(type, "legacyeth"))
    8181                return "legacyeth:traces/legacyeth.gz";
    82         return "unknown";
     82        if (!strcmp(type, "tsh"))
     83                return "tsh:traces/10_packets.tsh.gz";
     84        return type;
    8385}
    8486
  • test/test-format.c

    rd5a27e8 r1b9272f  
    7979        if (!strcmp(type, "legacyeth"))
    8080                return "legacyeth:traces/legacyeth.gz";
    81         return "unknown";
     81        if (!strcmp(type, "tsh"))
     82                return "tsh:traces/10_packets.tsh.gz";
     83        return type;
    8284}
    8385
Note: See TracChangeset for help on using the changeset viewer.