Skip to content

Commit

Permalink
Add time test files
Browse files Browse the repository at this point in the history
  • Loading branch information
fxlb committed Mar 21, 2024
1 parent b84bd2b commit 5c09904
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 0 deletions.
36 changes: 36 additions & 0 deletions tests/time.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- perl -*-

# The "verbose" Link Management Protocol test involves a float calculation that
# may produce a slightly different result depending on the compiler and the
# version of the instruction set for which it's generating code (see GitHub
# issue #333). The test is done with an output file that depends on the
# floating-point type, as reported by "./tcpdump --fp-type".

$testlist = [
{
name => 'time_2038',
input => 'time_2038.pcap',
output => 'time_2038.out',
args => ''
},
{
name => 'time_2039',
input => 'time_2039.pcap',
output => 'time_2039.out',
args => ''
},
{
name => 'time_2106',
input => 'time_2106.pcap',
output => 'time_2106.out',
args => ''
},
{
name => 'time_2107',
input => 'time_2107.pcapng',
output => 'time_2107.out',
args => ''
},
];

1;
1 change: 1 addition & 0 deletions tests/time_2038.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 2038-01-01 00:00:00.000000 IP 192.168.1.11.43966 > 209.87.249.18.53: 22836+ [1au] A? www.tcpdump.org. (56)
Binary file added tests/time_2038.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/time_2039.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 2039-01-01 00:00:00.000000 IP 192.168.1.11.43966 > 209.87.249.18.53: 22836+ [1au] A? www.tcpdump.org. (56)
Binary file added tests/time_2039.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/time_2106.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 2106-01-01 00:00:00.000000 IP 192.168.1.11.43966 > 209.87.249.18.53: 22836+ [1au] A? www.tcpdump.org. (56)
Binary file added tests/time_2106.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/time_2107.out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 2107-01-01 00:00:00.000000 IP 192.168.1.11.43966 > 209.87.249.18.53: 22836+ [1au] A? www.tcpdump.org. (56)
Binary file added tests/time_2107.pcapng
Binary file not shown.

0 comments on commit 5c09904

Please sign in to comment.