File: time.tests

package info (click to toggle)
tcpdump 4.99.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,640 kB
  • sloc: ansic: 84,205; sh: 3,801; makefile: 505; perl: 327; awk: 123
file content (117 lines) | stat: -rw-r--r-- 3,149 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# -*- perl -*-

# The packet time when > 2038-01-19T03:14:07Z cannot be correctly printed
# if time_t size is 32 bits (overflow).
# Some tests are run only if HAVE_TIME_T_64 is set. it depends on the
# output of "./tcpdump --time-t-size" (32 or 64).

# A 32-bit unsigned time_t goes until 2106-02-07T06:28:15Z.
# All values above require a pcapng file.

$testlist = [
    {
        name => 'time_2038',
        input => 'time_2038.pcap',
        output => 'time_2038.out',
        args   => '-q'
    },
    {
        name => 'time_2038_max',
        input => 'time_2038_max.pcap',
        output => 'time_2038_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2038_overflow',
        input => 'time_2038_overflow.pcap',
        output => 'time_2038_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2039',
        input => 'time_2039.pcap',
        output => 'time_2039.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106',
        input => 'time_2106.pcap',
        output => 'time_2106.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_max',
        input => 'time_2106_max.pcap',
        output => 'time_2106_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107',
        input => 'time_2107.pcapng',
        output => 'time_2107.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow-tt',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107-tt',
        input => 'time_2107.pcapng',
        output => 'time_2107-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-v',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-vv',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-v',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-vv',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'ntp-v',
        input => 'ntp.pcap',
        output => 'ntp-v.out',
        args => '-v'
    },
];

1;