#! /bin/sh
-# Copyright (C) 2012 Free Software Foundation, Inc.
+# Copyright (C) 2012-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
required=cc
am_create_testdir=empty
-. ./defs || Exit 1
+. test-init.sh
cat > configure.ac << 'END'
AC_INIT([GNU C Demo], [22.3.2], [bug-automake@gnu.org])
VERBOSE=x $MAKE check
if cross_compiling; then
- test ! -f tests/test-suite.log
- test ! -f tests/test.log
+ test ! -e tests/test-suite.log
+ test ! -e tests/test.log
else
test -f tests/test-suite.log
grep 'Foo, Bar!' tests/test.log
mv -f t lib/bar.h
$MAKE
./src/zardoz
- test "`./src/zardoz`" = 'Foo, Zap!'
+ test "$(./src/zardoz)" = 'Foo, Zap!'
fi
$MAKE clean
-test ! -f lib/foo.h
+test ! -e lib/foo.h
test -f lib/bar.h
: