mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-09 02:10:22 +08:00
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. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
parent
3969a96406
commit
83989941d3
@ -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>
|
2009-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||||||
|
|
||||||
* bin/autoupdate.in: Fix typos in comments.
|
* bin/autoupdate.in: Fix typos in comments.
|
||||||
|
@ -1438,9 +1438,9 @@ AT_KEYWORDS([Erlang])
|
|||||||
|
|
||||||
mkdir s t
|
mkdir s t
|
||||||
AT_DATA([configure.ac], [[AC_INIT
|
AT_DATA([configure.ac], [[AC_INIT
|
||||||
AC_ERLANG_PATH_ERL([not found])
|
AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then
|
||||||
HAVE_ERLANG=no
|
HAVE_ERLANG=no
|
||||||
HAVE_EUNIT=no
|
HAVE_EUNIT=no
|
||||||
else
|
else
|
||||||
|
@ -30,9 +30,9 @@ AT_BANNER([Erlang low level compiling and utility macros.])
|
|||||||
## ----------------- ##
|
## ----------------- ##
|
||||||
|
|
||||||
AT_CHECK_MACRO([Erlang],
|
AT_CHECK_MACRO([Erlang],
|
||||||
[[AC_ERLANG_PATH_ERL([not found])
|
[[AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
|
||||||
AC_LANG([Erlang])
|
AC_LANG([Erlang])
|
||||||
## Can't compile, but can run an Erlang module:
|
## Can't compile, but can run an Erlang module:
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [halt(0)])],
|
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],
|
AT_CHECK_MACRO([AC_ERLANG_CHECK_LIB],
|
||||||
[[AC_ERLANG_PATH_ERL([not found])
|
[[AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
|
||||||
AC_ERLANG_CHECK_LIB([stdlib],
|
AC_ERLANG_CHECK_LIB([stdlib],
|
||||||
[AC_MSG_RESULT([ok])],
|
[AC_MSG_RESULT([ok])],
|
||||||
[AC_MSG_RESULT([failed])])
|
[AC_MSG_RESULT([failed])])
|
||||||
@ -72,9 +72,9 @@ fi
|
|||||||
## --------------------------- ##
|
## --------------------------- ##
|
||||||
|
|
||||||
AT_CHECK_MACRO([AC_ERLANG_SUBST_ROOT_DIR],
|
AT_CHECK_MACRO([AC_ERLANG_SUBST_ROOT_DIR],
|
||||||
[[AC_ERLANG_PATH_ERL([not found])
|
[[AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
|
||||||
AC_ERLANG_SUBST_ROOT_DIR
|
AC_ERLANG_SUBST_ROOT_DIR
|
||||||
## Test that the root path detection really detected a directory:
|
## Test that the root path detection really detected a directory:
|
||||||
if test ! -d "$ERLANG_ROOT_DIR"; then
|
if test ! -d "$ERLANG_ROOT_DIR"; then
|
||||||
@ -89,9 +89,9 @@ fi
|
|||||||
## -------------------------- ##
|
## -------------------------- ##
|
||||||
|
|
||||||
AT_CHECK_MACRO([AC_ERLANG_SUBST_LIB_DIR],
|
AT_CHECK_MACRO([AC_ERLANG_SUBST_LIB_DIR],
|
||||||
[[AC_ERLANG_PATH_ERL([not found])
|
[[AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
|
||||||
AC_ERLANG_SUBST_LIB_DIR
|
AC_ERLANG_SUBST_LIB_DIR
|
||||||
## Test that the lib path detection really detected a directory:
|
## Test that the lib path detection really detected a directory:
|
||||||
if test ! -d "$ERLANG_LIB_DIR"; then
|
if test ! -d "$ERLANG_LIB_DIR"; then
|
||||||
@ -128,9 +128,9 @@ fi
|
|||||||
## -------------------------- ##
|
## -------------------------- ##
|
||||||
|
|
||||||
AT_CHECK_MACRO([AC_ERLANG_SUBST_ERTS_VER],
|
AT_CHECK_MACRO([AC_ERLANG_SUBST_ERTS_VER],
|
||||||
[[AC_ERLANG_PATH_ERL([not found])
|
[[AC_ERLANG_PATH_ERL([no])
|
||||||
AC_ERLANG_PATH_ERLC([not found])
|
AC_ERLANG_PATH_ERLC([no])
|
||||||
if test "$ERL" = "not found" || test "$ERLC" = "not found"; then exit 77; fi
|
if test "$ERL" = "no" || test "$ERLC" = "no"; then AS_EXIT([77]); fi
|
||||||
AC_ERLANG_SUBST_ERTS_VER
|
AC_ERLANG_SUBST_ERTS_VER
|
||||||
]],
|
]],
|
||||||
[AT_KEYWORDS([Erlang])])
|
[AT_KEYWORDS([Erlang])])
|
||||||
|
Loading…
Reference in New Issue
Block a user