File: test.sh

package info (click to toggle)
libeventdb 0.90-4
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 2,176 kB
  • ctags: 920
  • sloc: sh: 8,859; ansic: 4,897; xml: 2,729; makefile: 76
file content (17 lines) | stat: -rw-r--r-- 212 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh

if test $# -ne 1
then
    echo "Usage:"
    echo "$0 test-executable"
    exit 1
fi

if $1 | diff -u "${srcdir}/$1.expected" - > "$1.output" 2>&1
then
  :
else
  ec=$?
  cat "$1.output"
  exit $ec
fi