1 |
|
#! /bin/sh |
2 |
|
# tagdemo-exec.test - check that programs in the ../tagdemo subdirectory are viable |
3 |
|
|
4 |
|
# Test script header. |
5 |
|
need_prefix=no |
6 |
|
if test -z "$srcdir"; then |
7 |
|
srcdir=`echo "$0" | sed 's%/[^/]*$%%'` |
8 |
|
test "$srcdir" = "$0" && srcdir=. |
9 |
|
test "${VERBOSE+set}" != "set" && VERBOSE=yes |
10 |
|
fi |
11 |
|
. $srcdir/defs || exit 1 |
12 |
|
|
13 |
|
if test -f ../tagdemo/tagdemo; then : |
14 |
|
else |
15 |
|
echo "You must run tagdemo-make.test before running $0" 1>&2 |
16 |
|
exit 77 |
17 |
|
fi |
18 |
|
|
19 |
|
# Check to see if the programs really run. |
20 |
|
echo "Executing uninstalled programs in ../tagdemo" |
21 |
|
|
22 |
|
if ../tagdemo/tagdemo; then : |
23 |
|
else |
24 |
|
echo "$0: cannot execute ../tagdemo/tagdemo" 1>&2 |
25 |
|
status=1 |
26 |
|
fi |
27 |
|
|
28 |
|
exit $status |