From 03e4677347e32174e0fd789ba8a4015e0b0abe6c Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 26 Jun 2023 21:09:55 +0200 Subject: [PATCH] tests: run tests from the root directory This makes it easier to debug --- Makefile.am | 5 +++++ tests/Makefile.am | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index ba436f34..a92e3007 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,3 +12,8 @@ man1_MANS = man/mlmmj-bounce.1 man/mlmmj-make-ml.1 man/mlmmj-receive.1 \ man/mlmmj-send.1 man/mlmmj-unsub.1 man/mlmmj-list.1 SUBDIRS = src listtexts contrib tests + +check: $(check_SCRIPTS) $(check_PROGRAMS) + kyua --config=none test --kyuafile='$(builddir)/Kyuafile' \ + --build-root='$(builddir)' + diff --git a/tests/Makefile.am b/tests/Makefile.am index d00cf3b7..5d4785db 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -40,8 +40,6 @@ SUFFIXES= .sh all: $(check_PROGRAMS) $(check_SCRIPTS) check: $(check_SCRIPTS) $(check_PROGRAMS) - kyua --config=none test --kyuafile='$(builddir)/Kyuafile' \ - --build-root='$(builddir)' .sh: install -m 755 $< $@ -- 2.47.2