make: let the test timeout be configurable at run time

This commit is contained in:
Natanael Copa 2022-09-13 07:42:09 +02:00
parent 58a9262c48
commit 53501883fc

View File

@ -58,6 +58,8 @@ LDFLAGS-abuild-gzsplit = $(ZLIB_LIBS)
OBJS-abuild-sudo = abuild-sudo.o OBJS-abuild-sudo = abuild-sudo.o
OBJS-abuild-fetch = abuild-fetch.o OBJS-abuild-fetch = abuild-fetch.o
TEST_TIMEOUT = 15
.SUFFIXES: .sh.in .in .SUFFIXES: .sh.in .in
%.sh: %.sh.in %.sh: %.sh.in
${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@ ${SED} ${SED_REPLACE} ${SED_EXTRA} $< > $@
@ -106,7 +108,7 @@ tests/Kyuafile: $(wildcard tests/*_test)
echo "syntax(2)" > $@ echo "syntax(2)" > $@
echo "test_suite('abuild')" >> $@ echo "test_suite('abuild')" >> $@
for i in $(notdir $(wildcard tests/*_test)); do \ 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 done
Kyuafile: tests/Kyuafile Kyuafile: tests/Kyuafile