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