]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
testsuite: improve Erlang tests portability, overridability.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 13 Sep 2009 11:40:06 +0000 (13:40 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 14 Sep 2009 17:29:35 +0000 (19:29 +0200)
* tests/autotest.at (Erlang Eunit unit tests): Use "no" as
value-if-not-found for Erlang tools.
* tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
exit.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/autotest.at
tests/erlang.at

index 568e48aaddc449eccece6de83494632ef5952ced..60a4daaaaae215022f30d1c0eb3796de930490bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       testsuite: improve Erlang tests portability, overridability.
+       * tests/autotest.at (Erlang Eunit unit tests): Use "no" as
+       value-if-not-found for Erlang tools.
+       * tests/erlang.at: Likewise.  Also, use AS_EXIT instead of plain
+       exit.
+
 2009-09-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * bin/autoupdate.in: Fix typos in comments.
index 05e7cce8fb01c06d75c6024907cdbd4751ac3877..8b0a6c25ea88331d703db6b88bfc5b5eab0942c8 100644 (file)
@@ -1438,9 +1438,9 @@ AT_KEYWORDS([Erlang])
 
 mkdir s t
 AT_DATA([configure.ac], [[AC_INIT
-AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then
+AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then
   HAVE_ERLANG=no
   HAVE_EUNIT=no
 else
index 7865b144ed20b90e6de7d81e3f5975626e936db7..34023807fc5ca9adaeed8de95f8cd83967bb6b23 100644 (file)
@@ -30,9 +30,9 @@ AT_BANNER([Erlang low level compiling and utility macros.])
 ## ----------------- ##
 
 AT_CHECK_MACRO([Erlang],
-[[AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
+[[AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
 AC_LANG([Erlang])
 ## Can't compile, but can run an Erlang module:
 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [halt(0)])],
@@ -52,9 +52,9 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [halt(0)])],
 ## ---------------------- ##
 
 AT_CHECK_MACRO([AC_ERLANG_CHECK_LIB],
-[[AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
+[[AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
 AC_ERLANG_CHECK_LIB([stdlib],
                    [AC_MSG_RESULT([ok])],
                    [AC_MSG_RESULT([failed])])
@@ -72,9 +72,9 @@ fi
 ## --------------------------- ##
 
 AT_CHECK_MACRO([AC_ERLANG_SUBST_ROOT_DIR],
-[[AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
+[[AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
 AC_ERLANG_SUBST_ROOT_DIR
 ## Test that the root path detection really detected a directory:
 if test ! -d "$ERLANG_ROOT_DIR"; then
@@ -89,9 +89,9 @@ fi
 ## -------------------------- ##
 
 AT_CHECK_MACRO([AC_ERLANG_SUBST_LIB_DIR],
-[[AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
+[[AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
 AC_ERLANG_SUBST_LIB_DIR
 ## Test that the lib path detection really detected a directory:
 if test ! -d "$ERLANG_LIB_DIR"; then
@@ -128,9 +128,9 @@ fi
 ## -------------------------- ##
 
 AT_CHECK_MACRO([AC_ERLANG_SUBST_ERTS_VER],
-[[AC_ERLANG_PATH_ERL([not found])
-AC_ERLANG_PATH_ERLC([not found])
-if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
+[[AC_ERLANG_PATH_ERL([no])
+AC_ERLANG_PATH_ERLC([no])
+if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
 AC_ERLANG_SUBST_ERTS_VER
 ]],
 [AT_KEYWORDS([Erlang])])