File: run.test

package info (click to toggle)
libtool 1.0h-5
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,156 kB
  • ctags: 41
  • sloc: sh: 3,619; makefile: 238; ansic: 114
file content (21 lines) | stat: -rwxr-xr-x 378 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
# run.test - Check that hell is viable.

if test -z "$srcdir"; then
  srcdir=.
  test "${VERBOSE+set}" != "set" && VERBOSE=yes
fi

# See how redirections should work.
if test -z "$VERBOSE"; then
   exec > /dev/null 2>&1
fi

echo "=== Running test $0"

# Attempt to execute the program we built.
if ./hell | grep 'GNU Hell' > /dev/null; then
  exit 0
else
  exit 1
fi