aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Haslam <stuart.haslam@linaro.org>2016-01-26 16:39:09 +0000
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-01-27 14:59:10 +0300
commit000008f7f1de54a70d118f0ae56db48c47d60aff (patch)
tree4bfe648c4fb8df5661160faa9b7ac271edee84a7
parentfcd466aaff8fc0f6bd607f3a6eaa3b451d032beb (diff)
linux-generic: validation: fix dependency for tests-validation.env
The tests-validation.env file lists the test binaries/scripts to be run during post-install testing, but the Makefile dependencies are wrong so it gets created once and never updated. This means the following sequence doesn't actually peform testing as expected - ./configure make ./configure --enable-test-vald --with-testdir --prefix=$(pwd)/mytests make install installcheck As the tests-environment.env file generated during the first make (with test-vald disabled) isn't updated. Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r--platform/linux-generic/test/Makefile.am15
1 files changed, 10 insertions, 5 deletions
diff --git a/platform/linux-generic/test/Makefile.am b/platform/linux-generic/test/Makefile.am
index e6298729..8c35c15f 100644
--- a/platform/linux-generic/test/Makefile.am
+++ b/platform/linux-generic/test/Makefile.am
@@ -36,14 +36,19 @@ TESTS += pktio/pktio_run_pcap
endif
endif
-dist_check_SCRIPTS = run-test tests-validation.env $(LOG_COMPILER)
+TEST_ENV = tests-validation.env
+
+dist_check_SCRIPTS = run-test $(TEST_ENV) $(LOG_COMPILER)
test_SCRIPTS = $(dist_check_SCRIPTS)
-tests-validation.env:
- echo "TESTS=\"$(TESTS)\"" > $@
- echo "$(TESTS_ENVIRONMENT)" >> $@
- echo "$(LOG_COMPILER)" >> $@
+$(TEST_ENV): validation-test-env
+
+.PHONY: validation-test-env
+validation-test-env:
+ echo "TESTS=\"$(TESTS)\"" > $(TEST_ENV)
+ echo "$(TESTS_ENVIRONMENT)" >> $(TEST_ENV)
+ echo "$(LOG_COMPILER)" >> $(TEST_ENV)
if test_installdir
installcheck-local: