Skip to content

Commit 97245ed

Browse files
brsongraydon
authored andcommitted
Add 99-bottles benchmarks to testsuite
1 parent 8438eca commit 97245ed

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/Makefile

+11-5
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \
575575
wrong-ret-type.rs \
576576
), \
577577
$(wildcard test/*fail/*.rs test/*fail/*.rc)) \
578-
test/bench/shootout/fasta.rs
579-
578+
test/bench/shootout/fasta.rs \
579+
$(wildcard test/bench/99-bottles/*rs)
580580

581581
ifdef MINGW_CROSS
582582
TEST_XFAILS_BOOT += test/run-pass/native-mod.rc
@@ -587,9 +587,9 @@ TEST_XFAILS_BOOT += test/run-pass/native-mod.rc
587587
TEST_XFAILS_RUSTC += test/run-pass/native-mod.rc
588588
endif
589589

590-
BENCH_RC := $(wildcard test/bench/shootout/*rc)
591-
BENCH_RS := $(wildcard test/bench/shootout/*rs)
592-
RPASS_RC := $(wildcard test/run-pass/*.rc) $(BENCH_RC)
590+
BENCH_RS := $(wildcard test/bench/shootout/*rs) \
591+
$(wildcard test/bench/99-bottles/*rs)
592+
RPASS_RC := $(wildcard test/run-pass/*.rc)
593593
RPASS_RS := $(wildcard test/run-pass/*.rs) $(BENCH_RS)
594594
RFAIL_RC := $(wildcard test/run-fail/*.rc)
595595
RFAIL_RS := $(wildcard test/run-fail/*.rs)
@@ -740,6 +740,12 @@ test/bench/shootout/%.out.tmp: test/bench/shootout/%$(CFG_EXE_SUFFIX) \
740740
@$(call CFG_ECHO, run: $<)
741741
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
742742

743+
test/bench/99-bottles/%.out.tmp: test/bench/99-bottles/%$(CFG_EXE_SUFFIX) \
744+
$(CFG_RUNTIME)
745+
$(CFG_QUIET)rm -f $<.tmp
746+
@$(call CFG_ECHO, run: $<)
747+
$(CFG_QUIET)$(call CFG_RUN_TARG, $<) > $@
748+
743749
test/run-fail/%.out.tmp: test/run-fail/%$(CFG_EXE_SUFFIX) \
744750
$(CFG_RUNTIME)
745751
$(CFG_QUIET)rm -f $<.tmp

0 commit comments

Comments
 (0)