Add TEST_RUNNER variable to makefiles.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
This commit is contained in:
OGINO Masanori 2015-07-16 17:44:34 +09:00
parent 6fdd5ef05d
commit 2a2dce97cb
10 changed files with 11 additions and 9 deletions

View File

@ -15,6 +15,8 @@ CONTRIB_INITS =
CONTRIB_TESTS = CONTRIB_TESTS =
CONTRIB_DOCS = $(wildcard contrib/*/docs/*.rst) CONTRIB_DOCS = $(wildcard contrib/*/docs/*.rst)
TEST_RUNNER = bin/picrin
CFLAGS += -I./extlib/benz/include -Wall -Wextra CFLAGS += -I./extlib/benz/include -Wall -Wextra
LDFLAGS += -lm LDFLAGS += -lm

View File

@ -3,4 +3,4 @@ CONTRIB_LIBS += $(wildcard contrib/10.macro/*.scm)
CONTRIB_TESTS += test-macro CONTRIB_TESTS += test-macro
test-macro: bin/picrin test-macro: bin/picrin
bin/picrin contrib/10.macro/t/ir-macro.scm $(TEST_RUNNER) contrib/10.macro/t/ir-macro.scm

View File

@ -27,5 +27,5 @@ CONTRIB_TESTS += test-r7rs
test-r7rs: bin/picrin test-r7rs: bin/picrin
for test in `ls contrib/20.r7rs/t/*.scm`; do \ for test in `ls contrib/20.r7rs/t/*.scm`; do \
bin/picrin "$$test"; \ $(TEST_RUNNER) "$$test"; \
done done

View File

@ -3,5 +3,5 @@ CONTRIB_TESTS += test-optional
test-optional: bin/picrin test-optional: bin/picrin
for test in `ls contrib/30.optional/t/*.scm`; do \ for test in `ls contrib/30.optional/t/*.scm`; do \
bin/picrin $$test; \ $(TEST_RUNNER) $$test; \
done done

View File

@ -4,5 +4,5 @@ CONTRIB_TESTS += test-random
test-random: bin/picrin test-random: bin/picrin
for test in `ls contrib/30.random/t/*.scm`; do \ for test in `ls contrib/30.random/t/*.scm`; do \
bin/picrin $$test; \ $(TEST_RUNNER) $$test; \
done done

View File

@ -12,5 +12,5 @@ contrib/src/readline.o: contrib/src/readline.c
test-readline: bin/picrin test-readline: bin/picrin
for test in `ls contrib/30.readline/t/*.scm`; do \ for test in `ls contrib/30.readline/t/*.scm`; do \
bin/picrin $$test; \ $(TEST_RUNNER) $$test; \
done done

View File

@ -4,5 +4,5 @@ CONTRIB_TESTS += test-regexp
test-regexp: bin/picrin test-regexp: bin/picrin
for test in `ls contrib/30.regexp/t/*.scm`; do \ for test in `ls contrib/30.regexp/t/*.scm`; do \
bin/picrin $$test; \ $(TEST_RUNNER) $$test; \
done done

View File

@ -19,5 +19,5 @@ CONTRIB_TESTS += test-srfi
test-srfi: bin/picrin test-srfi: bin/picrin
for test in `ls contrib/40.srfi/t/*.scm`; do \ for test in `ls contrib/40.srfi/t/*.scm`; do \
bin/picrin "$$test"; \ $(TEST_RUNNER) "$$test"; \
done done

View File

@ -3,5 +3,5 @@ CONTRIB_TESTS += test-for
test-for: bin/picrin test-for: bin/picrin
for test in `ls contrib/50.for/t/*.scm`; do \ for test in `ls contrib/50.for/t/*.scm`; do \
bin/picrin "$$test"; \ $(TEST_RUNNER) "$$test"; \
done done

View File

@ -3,4 +3,4 @@ CONTRIB_LIBS += $(wildcard contrib/90.array/*.scm)
CONTRIB_TESTS += test-array CONTRIB_TESTS += test-array
test-array: bin/picrin test-array: bin/picrin
bin/picrin contrib/90.array/t/array.scm $(TEST_RUNNER) contrib/90.array/t/array.scm