1#! /bin/sh 2# nomode.test - check that we can actually get help 3 4# Test script header. 5need_prefix=no 6if test -z "$srcdir"; then 7 srcdir=`echo "$0" | sed 's%/[^/]*$%%'` 8 test "$srcdir" = "$0" && srcdir=. 9 test "${VERBOSE+set}" != "set" && VERBOSE=yes 10fi 11. $srcdir/defs || exit 1 12 13status=0 14if $libtool --help 2>&1 | grep '^Usage:' >/dev/null; then : 15else 16 echo "cannot get top-level help" 17 status=1 18fi 19 20# The emoticon below works around a nasty bug in Ultrix /bin/sh 21if ($libtool 2>&1; :) | grep 'you must specify a MODE' >/dev/null; then : 22else 23 echo "invalid error when no mode is specified" 24 status=1 25fi 26 27exit $status 28