am-ft: make the environment available earlier
[platform/upstream/automake.git] / t / self-check-configure-help.sh
old mode 100755 (executable)
new mode 100644 (file)
index 23b9dc7..8aa4f39
@@ -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 @@
 # Sanity check on the function used by the automake testsuite to
 # analyze output of "configure --help".
 
-. ./defs || Exit 1
+. test-init.sh
 
 # FIXME: this test is a good candidate for a conversion to TAP.
 
@@ -167,11 +167,11 @@ END
 
 compare_extracted_help ()
 {
-  cat > exp || Exit 99
-  extract_configure_help "$1" help > got || Exit 1
+  cat > exp || exit 99
+  extract_configure_help "$1" help > got || exit 1
   cat exp
   cat got
-  diff exp got || Exit 1
+  diff exp got || exit 1
 }
 
 compare_extracted_help --disable-libcap <<'END'