From 6785c08c87af6432e966348bc4c91110ad66e91b Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 16 Feb 2023 11:37:10 -0500 Subject: [PATCH] Fix: tests: add shellcheck test to distribution MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add the shellcheck test to the distribution, also copy it to the build dir for oot builds and while where are here, rename it with the 'test_' prefix to match the rest of the test suite. Change-Id: Iaeff191022d16ea666c2145aa7e907aeebb6c5ff Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- tests/meta/Makefile.am | 18 +++++++++++++++++- .../meta/{shellcheck-tests => test_shellcheck} | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) rename tests/meta/{shellcheck-tests => test_shellcheck} (95%) diff --git a/tests/meta/Makefile.am b/tests/meta/Makefile.am index 044fc83c9..becce8137 100644 --- a/tests/meta/Makefile.am +++ b/tests/meta/Makefile.am @@ -4,4 +4,20 @@ LOG_DRIVER_FLAGS = --merge LOG_DRIVER = env PGREP='$(PGREP)' AM_TAP_AWK='$(AWK)' $(SHELL) \ $(top_srcdir)/tests/utils/tap-driver.sh -TESTS = shellcheck-tests +TESTS = test_shellcheck + +EXTRA_DIST = $(TESTS) + +all-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + cp -f $(srcdir)/$$script $(builddir); \ + done; \ + fi + +clean-local: + @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ + for script in $(EXTRA_DIST); do \ + rm -f $(builddir)/$$script; \ + done; \ + fi diff --git a/tests/meta/shellcheck-tests b/tests/meta/test_shellcheck similarity index 95% rename from tests/meta/shellcheck-tests rename to tests/meta/test_shellcheck index 49c8e73d1..3806dada1 100755 --- a/tests/meta/shellcheck-tests +++ b/tests/meta/test_shellcheck @@ -7,7 +7,7 @@ # # All file must be relative to the test directory. files=( - meta/shellcheck-tests + meta/test_shellcheck run.sh ) -- 2.34.1