tests: Use module_tests for testing agent/.

* agent/Makefile.am (module_test): New.
* agent/all-tests.scm: Use module_tests instead of TESTS.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-04-26 11:13:54 +09:00
parent adf24ce618
commit a9754879d1
2 changed files with 4 additions and 2 deletions

View File

@ -111,10 +111,12 @@ $(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs)
# #
# Module tests # Module tests
# #
module_tests = t-protect
if DISABLE_TESTS if DISABLE_TESTS
TESTS = TESTS =
else else
TESTS = t-protect TESTS = $(module_tests)
endif endif
t_common_ldadd = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \ t_common_ldadd = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \

View File

@ -32,4 +32,4 @@
(path-join (getenv "objdir") "agent" name))) (path-join (getenv "objdir") "agent" name)))
(parse-makefile-expand (in-srcdir "agent" "Makefile.am") (parse-makefile-expand (in-srcdir "agent" "Makefile.am")
(lambda (filename port key) (parse-makefile port key)) (lambda (filename port key) (parse-makefile port key))
"TESTS"))) "module_tests")))