Skip to content

Commit b550918

Browse files
committed
---
yaml --- r: 64359 b: refs/heads/snap-stage3 c: cdce33a h: refs/heads/master i: 64357: 13ae19a 64355: 51ad4d2 64351: e7e060c v: v3
1 parent f90fe74 commit b550918

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: bc4c89c10a02abda1c2c83b7fcde756c84913e5f
4+
refs/heads/snap-stage3: cdce33a421c793b8969ad521388f79e738a54d65
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/configure

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ opt optimize 1 "build optimized rust code"
372372
opt optimize-cxx 1 "build optimized C++ code"
373373
opt optimize-llvm 1 "build optimized LLVM"
374374
opt debug 0 "build with extra debug fun"
375+
opt ratchet-bench 0 "ratchet benchmarks"
375376
opt fast-make 0 "use .gitmodules as timestamp for submodule deps"
376377
opt manage-submodules 1 "let the build manage the git submodules"
377378
opt mingw-cross 0 "cross-compile for win32 using mingw"

branches/snap-stage3/mk/tests.mk

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,21 @@ endif
6060
TEST_LOG_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
6161
TEST_OK_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).ok
6262

63+
TEST_RATCHET_FILE=tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4)-metrics.json
64+
TEST_RATCHET_NOISE_PERCENT=10.0
65+
66+
# Whether to ratchet or merely save benchmarks
67+
ifdef CFG_RATCHET_BENCH
68+
CRATE_TEST_BENCH_ARGS=\
69+
--test --bench \
70+
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
71+
--ratchet-noise-percent $(TEST_RATCHET_NOISE_PERCENT)
72+
else
73+
CRATE_TEST_BENCH_ARGS=\
74+
--test --bench \
75+
--save-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4))
76+
endif
77+
6378
define DEF_TARGET_COMMANDS
6479

6580
ifdef CFG_UNIXY_$(1)
@@ -359,11 +374,14 @@ $(foreach host,$(CFG_HOST_TRIPLES), \
359374
define DEF_TEST_CRATE_RULES
360375
check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4))
361376

377+
check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4))
378+
362379
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
363380
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2))
364381
@$$(call E, run: $$<)
365382
$$(Q)$$(call CFG_RUN_TEST_$(2),$$<,$(2),$(3)) $$(TESTARGS) \
366383
--logfile $$(call TEST_LOG_FILE,$(1),$(2),$(3),$(4)) \
384+
$$(call CRATE_TEST_BENCH_ARGS,$(1),$(2),$(3),$(4)) \
367385
&& touch $$@
368386
endef
369387

@@ -552,6 +570,7 @@ CTEST_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
552570
$$(CTEST_COMMON_ARGS$(1)-T-$(2)-H-$(3)) \
553571
--src-base $$(S)src/test/$$(CTEST_SRC_BASE_$(4))/ \
554572
--build-base $(3)/test/$$(CTEST_BUILD_BASE_$(4))/ \
573+
--ratchet-metrics $(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) \
555574
--mode $$(CTEST_MODE_$(4)) \
556575
$$(CTEST_RUNTOOL_$(4))
557576

0 commit comments

Comments
 (0)