Commit 9d4ed679 authored by Shane Snyder's avatar Shane Snyder

add timeout & mktemp to test environment

parent dd6be4fb
......@@ -8,6 +8,7 @@ noinst_PROGRAMS =
bin_PROGRAMS =
check_PROGRAMS =
TESTS =
TESTS_ENVIRONMENT=
EXTRA_DIST = prepare.sh
AM_CPPFLAGS = -I$(top_srcdir)/include
......
......@@ -15,12 +15,34 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL
# checks for libraires
#pkg-config and libraries supporting that
# pkg-config and libraries supporting that
PKG_PROG_PKG_CONFIG
if test "x$PKG_CONFIG" == "x"; then
AC_MSG_ERROR([Could not find pkg-config utility!])
fi
# coreutils checks for OSX
AC_ARG_VAR([TIMEOUT], timeout program)
AC_ARG_VAR([MKTEMP], mktemp program)
if test -z "$TIMEOUT" ; then
AC_CHECK_PROGS(TIMEOUT, [timeout gtimeout])
if test -z "$TIMEOUT" ; then
AC_MSG_ERROR([Could not find timeout command (can optionally provide via the TIMEOUT variable)])
fi
else
AC_SUBST([TIMEOUT], ["$TIMEOUT"])
fi
if test -z "$MKTEMP" ; then
AC_CHECK_PROGS(MKTEMP, [mktemp gmktemp])
if test -z "$MKTEMP" ; then
AC_MSG_ERROR([Could not find mktemp command (can optionally provide via the MKTEMP variable)])
fi
else
AC_SUBST([MKTEMP], ["$MKTEMP"])
fi
# check for MPI -- currently required for SSG on server daemons
AC_MSG_CHECKING([If MPI programs can be compiled])
AC_LINK_IFELSE(
......
TESTS_ENVIRONMENT += \
TIMEOUT="$(TIMEOUT)" \
MKTEMP="$(MKTEMP)"
check_PROGRAMS += \
tests/mobject-connect-test \
tests/mobject-server \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment