tests_fakesmtpd_SOURCES = \
tests/fakesmtpd.c
-EXTRA_DIST += \
- tests/*.sh
-
-CLEANFILES += \
- $(test_scripts:.sh=)
-
test_scripts = \
- tests/mlmmj-send.sh \
- tests/functional-tests.sh \
- tests/mlmmj-maintd.sh \
- tests/mlmmj-sub.sh \
- tests/mlmmj-bounce.sh \
- tests/mlmmj-list.sh \
- tests/mlmmj-process.sh \
- tests/mlmmj-receive.sh
-
-check_SCRIPTS = \
- $(test_scripts:.sh=)
-
-# Copy the test scripts striped of the '.sh' extension in the build directory
-SUFFIXES = .sh
-.sh:
- install -m 755 $< $@
+ tests/mlmmj-send \
+ tests/functional-tests \
+ tests/mlmmj-maintd \
+ tests/mlmmj-sub \
+ tests/mlmmj-bounce \
+ tests/mlmmj-list \
+ tests/mlmmj-process \
+ tests/mlmmj-receive
# Run the Kyua test suite when the 'check' target is invoked
-check-local: $(check_SCRIPTS) $(check_PROGRAMS)
+check-local: $(check_PROGRAMS) $(test_scripts)
failed=no; \
$(KYUA) --config='$(top_builddir)/kyua.conf' test \
--kyuafile='$(top_srcdir)/Kyuafile' --build-root='$(top_builddir)' \
fi
# Build the test programs when the 'all' target is invoked
-all-local: $(check_PROGRAMS) $(check_SCRIPTS)
+all-local: $(check_PROGRAMS)
endif
AS_IF([test x"$enable_tests" = xyes], [
PKG_CHECK_MODULES([ATF], [atf-c])
+ AC_PATH_PROG([ATFSH], [atf-sh])
AC_PATH_PROG([KYUA], [kyua])
AS_IF([test "x$KYUA" == "x"], [
AC_MSG_ERROR([A 'kyua' binary is required when the tests are enabled. Set the PATH or use the KYUA environment variable to specify its location.])
])
+
+ AS_IF([test "x$ATFSH" == "x"], [
+ AC_MSG_ERROR([An 'atf-sh' binary is required when the tests are enabled. Set the PATH or use the ATFSH environment variable to specify its location.])
+ ])
])
AM_CONDITIONAL([WANT_TESTS], [test x"$enable_tests" = xyes])
AC_CONFIG_FILES([contrib/Makefile])
AC_CONFIG_FILES([contrib/receivestrip/Makefile])
AC_CONFIG_FILES([tests/test_env.sh])
+AC_CONFIG_FILES([tests/functional-tests],[chmod +x tests/functional-tests])
+AC_CONFIG_FILES([tests/mlmmj-bounce],[chmod +x tests/mlmmj-bounce])
+AC_CONFIG_FILES([tests/mlmmj-list],[chmod +x tests/mlmmj-list])
+AC_CONFIG_FILES([tests/mlmmj-maintd],[chmod +x tests/mlmmj-maintd])
+AC_CONFIG_FILES([tests/mlmmj-process],[chmod +x tests/mlmmj-process])
+AC_CONFIG_FILES([tests/mlmmj-receive],[chmod +x tests/mlmmj-receive])
+AC_CONFIG_FILES([tests/mlmmj-send],[chmod +x tests/mlmmj-send])
+AC_CONFIG_FILES([tests/mlmmj-sub],[chmod +x tests/mlmmj-sub])
+
AC_OUTPUT