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.
This commit is contained in:
Mathieu Lirzin 2017-09-28 17:59:40 +02:00
commit c285d36ab2
No known key found for this signature in database
GPG key ID: 0ADEE10094604D37
5 changed files with 647 additions and 1 deletions

View file

@ -32,4 +32,7 @@ export PATH
MCRON_UNINSTALLED=1
export MCRON_UNINSTALLED
srcdir="@srcdir@"
export srcdir
exec "$@"