cachetimestampsdevelopdpdk-ndagetsiliverc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformance
Last change
on this file since e78e408 was
ccef50c,
checked in by Shane Alcock <salcock@…>, 3 years ago
|
Add /usr/local/lib to LD_LIBRARY_PATH for test scripts
|
-
Property mode set to
100755
|
File size:
621 bytes
|
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 | if [[ -z "$GOT_NETNS" ]]; then |
---|
16 | ./netns-env.sh "./$0" |
---|
17 | exit 0 |
---|
18 | fi |
---|
19 | |
---|
20 | libdir=../lib/.libs:../libpacketdump/.libs |
---|
21 | export LD_LIBRARY_PATH="$libdir:/usr/local/lib/" |
---|
22 | export DYLD_LIBRARY_PATH="${libdir}" |
---|
23 | |
---|
24 | declare -a formats=("pcapint" "int" "ring") |
---|
25 | |
---|
26 | for a in "${formats[@]}" |
---|
27 | do |
---|
28 | for b in "${formats[@]}" |
---|
29 | do |
---|
30 | echo |
---|
31 | echo ./test-live "$a" "$b" |
---|
32 | do_test ./test-live "$a" "$b" |
---|
33 | echo |
---|
34 | echo ./test-live-snaplen "$a" "$b" |
---|
35 | do_test ./test-live-snaplen "$a" "$b" |
---|
36 | done |
---|
37 | done |
---|
38 | |
---|
39 | echo |
---|
40 | echo "Tests passed: $OK" |
---|
41 | echo "Tests failed: $FAIL" |
---|
Note: See
TracBrowser
for help on using the repository browser.