From a9754879d127fd492606327b7397350f094f3ff4 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 26 Apr 2022 11:13:54 +0900 Subject: [PATCH] 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 --- agent/Makefile.am | 4 +++- agent/all-tests.scm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/agent/Makefile.am b/agent/Makefile.am index d5998c71c..fe2d7d222 100644 --- a/agent/Makefile.am +++ b/agent/Makefile.am @@ -111,10 +111,12 @@ $(PROGRAMS): $(common_libs) $(commonpth_libs) $(pwquery_libs) # # Module tests # +module_tests = t-protect + if DISABLE_TESTS TESTS = else -TESTS = t-protect +TESTS = $(module_tests) endif t_common_ldadd = $(common_libs) $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) \ diff --git a/agent/all-tests.scm b/agent/all-tests.scm index 6449ebb97..9376adf6e 100644 --- a/agent/all-tests.scm +++ b/agent/all-tests.scm @@ -32,4 +32,4 @@ (path-join (getenv "objdir") "agent" name))) (parse-makefile-expand (in-srcdir "agent" "Makefile.am") (lambda (filename port key) (parse-makefile port key)) - "TESTS"))) + "module_tests")))