File: nomode.test

package info (click to toggle)
libtool 1.5.22-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 13,252 kB
  • ctags: 645
  • sloc: sh: 11,093; ansic: 4,354; makefile: 816; cpp: 91; fortran: 19
file content (27 lines) | stat: -rwxr-xr-x 626 bytes parent folder | download | duplicates (7)
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
#! /bin/sh
# nomode.test - check that we can actually get help

# Test script header.
need_prefix=no
if test -z "$srcdir"; then
  srcdir=`echo "$0" | sed 's%/[^/]*$%%'`
  test "$srcdir" = "$0" && srcdir=.
  test "${VERBOSE+set}" != "set" && VERBOSE=yes
fi
. $srcdir/defs || exit 1

status=0
if $libtool --help 2>&1 | grep '^Usage:' >/dev/null; then :
else
  echo "cannot get top-level help"
  status=1
fi

# The emoticon below works around a nasty bug in Ultrix /bin/sh
if ($libtool 2>&1; :) | grep 'you must specify a MODE' >/dev/null; then :
else
  echo "invalid error when no mode is specified"
  status=1
fi

exit $status