From 53501883fc09eddccdf766bc2dff6b7b97c851f9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 13 Sep 2022 07:42:09 +0200 Subject: [PATCH] make: let the test timeout be configurable at run time --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2d1ebe7..9651eb1 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,8 @@ LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS) OBJS-abuild-sudo = abuild-sudo.o OBJS-abuild-fetch = abuild-fetch.o +TEST_TIMEOUT = 15 + .SUFFIXES: .sh.in .in %.sh: %.sh.in ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ @@ -106,7 +108,7 @@ tests/Kyuafile: $(wildcard tests/*_test) echo "syntax(2)" > $@ echo "test_suite('abuild')" >> $@ for i in $(notdir $(wildcard tests/*_test)); do \ - echo "atf_test_program{name='$$i',timeout=10}" >> $@ ; \ + echo "atf_test_program{name='$$i',timeout=$(TEST_TIMEOUT)}" >> $@ ; \ done Kyuafile: tests/Kyuafile