File: run-tests.sh

package info (click to toggle)
libpcapnav 0.8-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,968 kB
  • ctags: 207
  • sloc: sh: 8,869; ansic: 1,849; makefile: 221
file content (18 lines) | stat: -rwxr-xr-x 500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

# -- Test 1:
# Jump to the middle of a file and read from there on,
# writing to a new trace file.
echo -n "Running test 1 ... "
./pcapnav-test1 test1.trace test1-result.trace &> /dev/null
diff test1-result.trace test1-correct.le.trace &> /dev/null
if test $? -eq 0; then
        echo "passed."
else
        diff test1-result.trace test1-correct.be.trace &> /dev/null
        if test $? -eq 0; then
                echo "passed."
        else
                echo "FAILED."
        fi
fi