libtool/tests/demo-exec.test

42 lines
928 B
Plaintext
Raw Normal View History

1997-04-02 03:18:28 +08:00
#! /bin/sh
# demo-exec.test - check that programs in the ../demo subdirectory are viable
# Test script header.
need_prefix=no
if test -z "$srcdir"; then
1997-04-02 03:21:43 +08:00
srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
test "$srcdir" = "$0" && srcdir=.
1997-04-02 03:18:28 +08:00
test "${VERBOSE+set}" != "set" && VERBOSE=yes
fi
. $srcdir/defs || exit 1
if test -f ../demo/hell; then :
else
echo "You must run demo-make.test before running $0" 1>&2
exit 77
1997-04-02 03:18:28 +08:00
fi
# Check to see if the programs really run.
echo "Executing uninstalled programs in ../demo"
1997-07-25 03:00:16 +08:00
status=0
if ../demo/hell.static| grep 'Welcome to GNU Hell'; then :
1997-04-02 03:18:28 +08:00
else
echo "$0: cannot execute ../demo/hell.static" 1>&2
1997-07-25 03:00:16 +08:00
status=1
1997-04-02 03:18:28 +08:00
fi
1997-04-02 03:53:01 +08:00
if ../demo/hell | grep 'Welcome to GNU Hell'; then :
1997-04-02 03:18:28 +08:00
else
1997-07-13 05:39:00 +08:00
echo "$0: cannot execute ../demo/hell" 1>&2
1997-07-25 03:00:16 +08:00
status=1
1997-07-13 05:39:00 +08:00
fi
1997-07-22 01:31:05 +08:00
if ../demo/helldl | egrep -e '(Welcome to .*GNU Hell|unsupported)'; then :
1997-07-13 05:39:00 +08:00
else
echo "$0: cannot execute ../demo/helldl" 1>&2
1997-07-25 03:00:16 +08:00
status=1
1997-04-02 03:18:28 +08:00
fi
1997-07-25 03:00:16 +08:00
exit $status