From c285d36ab2a48f09c14655a0dcec5895700fe4dd Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Thu, 28 Sep 2017 17:59:40 +0200 Subject: tests: Add 'basic.sh' * tests/init.sh: New test framework from Gnulib. * tests/basic.sh: New test. * Makefile.am (TESTS): Add it. (TEST_EXTENSIONS): Add '.sh'. (SH_LOG_COMPILER): Use 'pre-inst-env'. (EXTRA_DIST): Add 'tests/init.sh'. * build-aux/pre-inst-env.in: export $srcdir for shell tests. --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index edca6a9..84cbf23 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,14 +124,17 @@ DISTCLEANFILES = src/mcron/config.scm ## Test suite. ## ## ------------ ## -TEST_EXTENSIONS = .scm +TEST_EXTENSIONS = .scm .sh AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0' +SH_LOG_COMPILER = ./pre-inst-env $(SHELL) + SCM_LOG_DRIVER = \ $(builddir)/pre-inst-env $(GUILE) \ $(srcdir)/build-aux/test-driver.scm TESTS = \ + tests/basic.sh \ tests/environment.scm \ tests/job-specifier.scm @@ -160,6 +163,7 @@ gen-ChangeLog: EXTRA_DIST = \ bootstrap \ build-aux/guix.scm \ + tests/init.sh \ $(TESTS) ## -------------- ## -- cgit v1.2.3