[PATCH] test: Concatenate test results with &&

6 views
Skip to first unread message

Bastian Germann

unread,
Jul 29, 2026, 5:59:24 AM (7 days ago) Jul 29
to swup...@googlegroups.com, Bastian Germann
The test results which are calculated are discarded because they are
concatenated with ";". Use "&&" instead. This exposes a long-standing
test failure in test_hash.

Signed-off-by: Bastian Germann <ba...@debian.org>
---
test/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/Makefile b/test/Makefile
index ca66f7b0..6756446d 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -74,7 +74,7 @@ quiet_cmd_linktestexe = LD $(basename $@)
"$(SWLIBS)" \
"$(LDLIBS) cmocka"

-EXECUTE_TEST = echo "RUN $(subst $(obj)/,,$(var))"; LD_LIBRARY_PATH=$(objtree) CMOCKA_MESSAGE_OUTPUT=TAP SOFTHSM2_CONF=$(DATADIR)/token/softhsm.conf $(var)
+EXECUTE_TEST = echo "RUN $(subst $(obj)/,,$(var))" && LD_LIBRARY_PATH=$(objtree) CMOCKA_MESSAGE_OUTPUT=TAP SOFTHSM2_CONF=$(DATADIR)/token/softhsm.conf $(var)

PHONY += default
default:
@@ -83,7 +83,7 @@ default:
PHONY += tests
ifneq "$(tests-y)" ""
tests: $(tests-objs) $(tests-lnk)
- @+$(foreach var,$(TARGETS),$(EXECUTE_TEST);)
+ @+$(foreach var,$(TARGETS),$(EXECUTE_TEST) &&) true
else
tests:
@$(info nothing to test.)
Reply all
Reply to author
Forward
0 new messages