mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
test: Let Make generate shellcheck test from the list of test sources
Not very readable yet, so it needs clean up! Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
4e035f77f6
commit
6b7ae50fbb
3 files changed
+7
-8
No files matched your search
@@ -17,6 +17,11 @@ AM_TESTS_ENVIRONMENT += export top_srcdir;
|
||||
AM_TESTS_ENVIRONMENT += top_builddir=$(top_builddir);
|
||||
AM_TESTS_ENVIRONMENT += export top_builddir;
|
||||
|
||||
checkself.sh:
|
||||
echo '#!/bin/sh' > $@
|
||||
echo shellcheck $(addprefix '"$$srcdir"'/,$(filter %$(TEST_EXTENSIONS),$(filter-out $@, $(EXTRA_DIST)))) >> $@
|
||||
chmod +x $@
|
||||
|
||||
TEST_EXTENSIONS = .sh
|
||||
TESTS = checkself.sh
|
||||
TESTS += setup-root.sh
|
||||
@@ -27,3 +32,4 @@ TESTS += start-stop-service-sub-config/test.sh
|
||||
|
||||
clean-local:
|
||||
make -C test-root/ clean
|
||||
-rm checkself.sh
|
||||
Reference in new issue
Block a user