tests: expose weaknesses in make flags analysis
[platform/upstream/automake.git] / t / aclocal-path.sh
index 72b3938..d538396 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011-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
@@ -17,7 +17,7 @@
 # Check basic ACLOCAL_PATH support.
 
 am_create_testdir=empty
-. ./defs || Exit 1
+. test-init.sh
 
 cat > configure.ac << 'END'
 AC_INIT
@@ -46,9 +46,9 @@ $AUTOCONF
 # there should be no m4_include in aclocal.m4, even though ACLOCAL_PATH
 # contains 'mdir1' and './mdir2' as relative directories.  Only -I
 # directories should be subject to file inclusion.
-$FGREP m4_include aclocal.m4 && Exit 1
+$FGREP m4_include aclocal.m4 && exit 1
 
-$EGREP 'AM_(FOO|BAR|BAZ)_MACRO' configure && Exit 1
+$EGREP 'AM_(FOO|BAR|BAZ)_MACRO' configure && exit 1
 $FGREP 'am--foo' configure
 $FGREP 'am--bar' configure
 $FGREP 'am--baz' configure