mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
make: let the test timeout be configurable at run time
This commit is contained in:
parent
58a9262c48
commit
53501883fc
4
Makefile
4
Makefile
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user