bk: 51cdc557XxcelBTTTUK3JdE1TcU4gQ
+* [Bug 2413] make check fails to run tests with automake >= 1.13
(4.2.7p368) 2013/05/01 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 2145] ntpq dumps core when displaying sys_var_list and more.
(4.2.7p367) 2013/04/25 Released by Harlan Stenn <stenn@ntp.org>
fileHandlingTest.h \
$(NULL)
-dist_check_SCRIPTS = test-driver
+dist_check_SCRIPTS = tests-runner
EXTRA_DIST = \
data/debug-input-lfp-bin \
TESTS =
-TEST_INPUT_DIR = $(abs_srcdir)/data
-TEST_OUTPUT_DIR = $(abs_builddir)/data
-
-TESTS_ENVIRONMENT = $(top_srcdir)/tests/test-driver $(TEST_INPUT_DIR) $(TEST_OUTPUT_DIR)
-
if !NTP_CROSSCOMPILE
-TESTS += $(check_PROGRAMS)
+TESTS += tests-runner
endif
## ensure ../libsntp.a is built
+++ /dev/null
-#!/bin/sh
-
-# Create the output directory.
-mkdir -p "$2"
-
-exec "$3" "$1" "$2"
--- /dev/null
+#!/bin/sh
+
+# $builddir is always .
+builddir=.
+# $srcdir will be set to the correct directory when this script is called from
+# the Makefiles generated by Automake.
+
+# Create output directory.
+mkdir -p $builddir/data
+
+# Test executable expects two arguments: test_input_dir and test_output_dir.
+./tests $srcdir/data $builddir/data
+