From 7904af5d9d798d230573a6a86abd7d3f5b3b51f1 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 8 Jul 2014 14:56:51 +0200 Subject: Implement test initialization properly Make test-init.sh work even if tests are executed from another directory. Signed-off-by: Lukas Fleischer --- test/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/Makefile.am') diff --git a/test/Makefile.am b/test/Makefile.am index d88463b..44f20cc 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -51,18 +51,21 @@ TESTS = \ recur-005.sh TESTS_ENVIRONMENT = \ + TEST_INIT='$(top_srcdir)/test/test-init.sh' \ CALCURSE='$(top_builddir)/src/calcurse' \ DATA_DIR='$(top_srcdir)/test/data/' AM_CFLAGS = -std=c99 -pedantic -D_POSIX_C_SOURCE=200809L check_PROGRAMS = run-test -check_SCRIPTS = $(TESTS) +check_SCRIPTS = test-init.sh +noinst_SCRIPTS = $(check_SCRIPTS) run_test_SOURCES = run-test.c EXTRA_DIST = \ $(TESTS) \ + test-init.sh \ data/apts \ data/apts-bug-002 \ data/apts-recur \ -- cgit v1.2.3-54-g00ecf