source: test/do-tests-parallel.sh @ 568a341

cachetimestampsdevelopdpdk-ndagetsilivendag_formatrc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformance
Last change on this file since 568a341 was 568a341, checked in by Shane Alcock <salcock@…>, 3 years ago

Update test suite for pcapng

Also added a new test for set_capture_length(). Setting the caplen
for pcapng is a bit more complicated than most formats, so I
needed a test for that format anyway. Figured I may as well add
tests for some of the other truncatable formats as well.

I've also added a 'complex.pcapng' test trace -- I haven't written
any tests that use it but it is useful for checking if you can
still read the full variety of pcapng records.

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/bash
2
3OK=0
4FAIL=""
5
6do_test() {
7        if $@; then
8                OK=$[ $OK + 1 ]
9        else
10                FAIL="$FAIL
11$@"
12        fi
13}
14
15libdir=../lib/.libs:../libpacketdump/.libs
16export LD_LIBRARY_PATH="$libdir"
17export DYLD_LIBRARY_PATH="${libdir}"
18
19rm -f traces/*.out.*
20echo \* Read erf
21do_test ./test-format-parallel erf
22
23echo \* Read pcap
24do_test ./test-format-parallel pcap
25
26echo \* Read pcapfile
27do_test ./test-format-parallel pcapfile
28
29echo \* Read pcapfilens
30do_test ./test-format-parallel pcapfilens
31
32echo \* Read legacyatm
33do_test ./test-format-parallel legacyatm
34
35echo \* Read legacyeth
36do_test ./test-format-parallel legacyeth
37
38echo \* Read legacypos
39do_test ./test-format-parallel legacypos
40
41echo \* Read tsh
42do_test ./test-format-parallel tsh
43
44echo \* Read rawerf
45do_test ./test-format-parallel rawerf
46
47echo \* Read pcapng
48do_test ./test-format-parallel pcapng
49
50echo \* Read testing hasher function
51do_test ./test-format-parallel-hasher erf
52
53echo \* Read testing single-threaded datapath
54do_test ./test-format-parallel-singlethreaded erf
55
56echo \* Read testing single-threaded hasher datapath
57do_test ./test-format-parallel-singlethreaded-hasher erf
58
59echo \* Read stress testing with 100 threads
60do_test ./test-format-parallel-stressthreads erf
61
62echo \* Read testing reporter thread
63do_test ./test-format-parallel-reporter erf
64
65echo \* Testing Trace-Time Playback
66do_test ./test-tracetime-parallel
67
68echo
69echo "Tests passed: $OK"
70echo "Tests failed: $FAIL"
Note: See TracBrowser for help on using the repository browser.