~herrhotzenplotz/gcli-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Remove redundant configuration step of the Kyuafile

Details
Message ID
<20240603194521.8796-1-nsonack@herrhotzenplotz.de>
DKIM signature
pass
Download raw message
Patch: +1 -4
Previously, because I did not read the damn manual page of kyua-test(1)
I didn't know of the existence of these flags. Now we can easily
test without copying the Kyuafile to the build directory.

Signed-off-by: Nico Sonack <nsonack@herrhotzenplotz.de>
---
 Makefile.am                     | 2 +-
 configure.ac                    | 2 --
 tests/.gitignore                | 1 -
 tests/{Kyuafile.in => Kyuafile} | 0
 4 files changed, 1 insertion(+), 4 deletions(-)
 delete mode 100644 tests/.gitignore
 rename tests/{Kyuafile.in => Kyuafile} (100%)

diff --git a/Makefile.am b/Makefile.am
index d23b9ad..a06133c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -241,7 +241,7 @@ EXTRA_DIST += tests/gcli_tests.h
check: do_test

do_test: $(check_PROGRAMS) tests/Kyuafile
	kyua test -k tests/Kyuafile
	kyua test -k $(top_srcdir)/tests/Kyuafile --build-root=$(top_builddir)/tests

tests_json_escape_SOURCES = \
	tests/json-escape.c
diff --git a/configure.ac b/configure.ac
index 87aa8b8..2810e30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,6 +227,4 @@ if test "x$HAVE_TESTS" = "xyes"; then
	AC_DEFINE_UNQUOTED([TESTSRCDIR], ["$TESTSRCDIR"], [Directory to the test sources])
fi

AC_CONFIG_FILES([tests/Kyuafile])

AC_OUTPUT
diff --git a/tests/.gitignore b/tests/.gitignore
deleted file mode 100644
index 3af9c4f..0000000
--- a/tests/.gitignore
@@ -1 +0,0 @@
/Kyuafile
diff --git a/tests/Kyuafile.in b/tests/Kyuafile
similarity index 100%
rename from tests/Kyuafile.in
rename to tests/Kyuafile
-- 
2.44.0
Details
Message ID
<D1QNAUP5D897.1G8ADZVWIXZDZ@gjnoonan.co.uk>
In-Reply-To
<20240603194521.8796-1-nsonack@herrhotzenplotz.de> (view parent)
DKIM signature
pass
Download raw message
Applied. Thanks!
Reply to thread Export thread (mbox)