blob: dbd6bc59a8080aad576850bb67d19250d392c0fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
set -e
if [ $# -lt 3 ]
then
echo >&2 'usage: m1test <name> <initfile> [<initflags>] <queryargs>'
exit 1
fi
case="case-$1"; shift
initfile="$1"; shift
case "$1" in
-*) initflags="$1"; shift
esac
queryargs="$*"
initstring="`cat init-$initfile.text`"
echo $initfile $initflags >"$case.sys"
echo "$queryargs" >>"$case.sys"
EF_DISABLE_BANNER=1
export EF_DISABLE_BANNER
echo running hrecord $initflags "/... $queryargs"
set +e
ADNS_TEST_OUT_FD=3 3>>"$case.sys" >"$case.out" 2>"$case.err" </dev/null \
./hrecord $initflags "/$initstring" $queryargs
rc=$?
set -e
echo "rc=$rc" >>$case.out
egrep . -- "$case.err" "$case.out"
echo "exit status: $rc"
|