From: Linux Karlsson Date: Fri, 28 Jun 2013 17:18:15 +0000 (-0400) Subject: [Bug 2413] make check fails to run tests with automake >= 1.13 X-Git-Tag: NTP_4_2_7P375~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d231792389e49d8a9e4d38c2d295d3b1d1353109;p=thirdparty%2Fntp.git [Bug 2413] make check fails to run tests with automake >= 1.13 bk: 51cdc557XxcelBTTTUK3JdE1TcU4gQ --- diff --git a/ChangeLog b/ChangeLog index 8a13b1765..95e629c3a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +* [Bug 2413] make check fails to run tests with automake >= 1.13 (4.2.7p368) 2013/05/01 Released by Harlan Stenn * [Bug 2145] ntpq dumps core when displaying sys_var_list and more. (4.2.7p367) 2013/04/25 Released by Harlan Stenn diff --git a/sntp/tests/Makefile.am b/sntp/tests/Makefile.am index 911756436..feb914276 100644 --- a/sntp/tests/Makefile.am +++ b/sntp/tests/Makefile.am @@ -27,7 +27,7 @@ noinst_HEADERS = \ fileHandlingTest.h \ $(NULL) -dist_check_SCRIPTS = test-driver +dist_check_SCRIPTS = tests-runner EXTRA_DIST = \ data/debug-input-lfp-bin \ @@ -80,13 +80,8 @@ AM_LDFLAGS = $(LDFLAGS_NTP) 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 diff --git a/sntp/tests/test-driver b/sntp/tests/test-driver deleted file mode 100755 index f8adf70aa..000000000 --- a/sntp/tests/test-driver +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# Create the output directory. -mkdir -p "$2" - -exec "$3" "$1" "$2" diff --git a/sntp/tests/tests-runner b/sntp/tests/tests-runner new file mode 100755 index 000000000..412516ca6 --- /dev/null +++ b/sntp/tests/tests-runner @@ -0,0 +1,13 @@ +#!/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 +