source: test/do-tests-parallel.sh @ 014f733

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivelibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 014f733 was 014f733, checked in by Richard Sanger <rsangerarj@…>, 7 years ago

Add a generic test for the parallel system to test all the file based formats, all of which will be using emulation within the library to create the threads.

  • Property mode set to 100644
File size: 1.1 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
22do_test ./test-decode erf
23
24echo \* Read pcap
25do_test ./test-format-parallel pcap
26do_test ./test-decode pcap
27
28echo \* Read pcapfile
29do_test ./test-format-parallel pcapfile
30do_test ./test-decode pcapfile
31
32echo \* Read pcapfilens
33do_test ./test-format-parallel pcapfilens
34do_test ./test-decode pcapfilens
35
36echo \* Read legacyatm
37do_test ./test-format-parallel legacyatm
38do_test ./test-decode legacyatm
39
40echo \* Read legacyeth
41do_test ./test-format-parallel legacyeth
42do_test ./test-decode legacyeth
43
44echo \* Read legacypos
45do_test ./test-format-parallel legacypos
46do_test ./test-decode legacypos
47
48echo \* Read tsh
49do_test ./test-format-parallel tsh
50do_test ./test-decode tsh
51
52echo \* Read rawerf
53do_test ./test-format-parallel rawerf
54do_test ./test-decode rawerf
55
56
57echo
58echo "Tests passed: $OK"
59echo "Tests failed: $FAIL"
Note: See TracBrowser for help on using the repository browser.