#!/bin/sh
-# Copyright (C) 2003-2012 Free Software Foundation, Inc.
+# Copyright (C) 2003-2013 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# This example is taken from the manual.
required='cc native libtoolize'
-. ./defs || Exit 1
+. test-init.sh
cat >>configure.ac <<'END'
AC_PROG_CC
rm -f installcheck-ok
find empty -type f -print > empty.lst
-test -s empty.lst && { cat empty.lst; Exit 1; }
+test -s empty.lst && { cat empty.lst; exit 1; }
$MAKE clean
-test ! -f libtop.la
-test ! -f sub1/libsub1.la
-test ! -f sub2/libsub2.la
-test ! -f sub2/sub21/libsub21.la
-test ! -f sub2/sub22/libsub22.la
-test ! -f ltconvtest
+test ! -e libtop.la
+test ! -e sub1/libsub1.la
+test ! -e sub2/libsub2.la
+test ! -e sub2/sub21/libsub21.la
+test ! -e sub2/sub22/libsub22.la
+test ! -e ltconvtest
$MAKE installcheck
test -f installcheck-ok
$MAKE uninstall
for d in lib bin; do
find $d -type f -print > $d.lst
- test -s $d.lst && { cat $d.lst; Exit 1; }
+ test -s $d.lst && { cat $d.lst; exit 1; }
: For shells with busted 'set -e'.
done