Add 99-bottles benchmarks to testsuite

This commit is contained in:
Brian Anderson 2011-03-06 20:11:57 -05:00 committed by Graydon Hoare
parent 8438eca45c
commit 97245edd80

View File

@ -575,8 +575,8 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \
wrong-ret-type.rs \
), \
$(wildcard test/*fail/*.rs test/*fail/*.rc)) \
test/bench/shootout/fasta.rs
test/bench/shootout/fasta.rs \
$(wildcard test/bench/99-bottles/*rs)
ifdef MINGW_CROSS
TEST_XFAILS_BOOT += test/run-pass/native-mod.rc
@ -587,9 +587,9 @@ TEST_XFAILS_BOOT += test/run-pass/native-mod.rc
TEST_XFAILS_RUSTC += test/run-pass/native-mod.rc
endif
BENCH_RC := $(wildcard test/bench/shootout/*rc)
BENCH_RS := $(wildcard test/bench/shootout/*rs)
RPASS_RC := $(wildcard test/run-pass/*.rc) $(BENCH_RC)
BENCH_RS := $(wildcard test/bench/shootout/*rs) \
$(wildcard test/bench/99-bottles/*rs)
RPASS_RC := $(wildcard test/run-pass/*.rc)
RPASS_RS := $(wildcard test/run-pass/*.rs) $(BENCH_RS)
RFAIL_RC := $(wildcard test/run-fail/*.rc)
RFAIL_RS := $(wildcard test/run-fail/*.rs)
@ -740,6 +740,12 @@ test/bench/shootout/%.out.tmp: test/bench/shootout/%$(CFG_EXE_SUFFIX) \
@$(call CFG_ECHO, run: $<)
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
test/bench/99-bottles/%.out.tmp: test/bench/99-bottles/%$(CFG_EXE_SUFFIX) \
$(CFG_RUNTIME)
$(CFG_QUIET)rm -f $<.tmp
@$(call CFG_ECHO, run: $<)
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
test/run-fail/%.out.tmp: test/run-fail/%$(CFG_EXE_SUFFIX) \
$(CFG_RUNTIME)
$(CFG_QUIET)rm -f $<.tmp