source: test/do-live-tests.sh @ e78e408

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
3OK=0
4FAIL=""
5
6do_test() {
7        if $@; then
8                OK=$[ $OK + 1 ]
9        else
10                FAIL="$FAIL
11$@"
12        fi
13}
14
15if [[ -z "$GOT_NETNS" ]]; then
16        ./netns-env.sh "./$0"
17        exit 0
18fi
19
20libdir=../lib/.libs:../libpacketdump/.libs
21export LD_LIBRARY_PATH="$libdir:/usr/local/lib/"
22export DYLD_LIBRARY_PATH="${libdir}"
23
24declare -a formats=("pcapint" "int" "ring")
25
26for a in "${formats[@]}"
27do
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
37done
38
39echo
40echo "Tests passed: $OK"
41echo "Tests failed: $FAIL"
Note: See TracBrowser for help on using the repository browser.