Commit d0c1da75 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

4353 add a rule to run stress tests refs[t:4353]

git-svn-id: file:///svn/toku/tokudb@38474 c7de825b-a66e-492c-adef-691d508d4ae1
parent 85598cd2
...@@ -969,12 +969,20 @@ check_blocking_tdb: $(BLOCKING_TDB_TESTS) ...@@ -969,12 +969,20 @@ check_blocking_tdb: $(BLOCKING_TDB_TESTS)
check_blocking_bdb: $(BLOCKING_BDB_TESTS) check_blocking_bdb: $(BLOCKING_BDB_TESTS)
# stress tests with drd
STRESS_TEST_SRCS = $(wildcard test_stress*.c) STRESS_TEST_SRCS = $(wildcard test_stress*.c)
STRESS_TESTS = $(patsubst %.c,%,$(STRESS_TEST_SRCS)) STRESS_TESTS = $(patsubst %.c,%,$(STRESS_TEST_SRCS))
stress_tests.tdbrun: $(patsubst %,%.stressrun,$(STRESS_TESTS))
true
%.stressrun: %.tdb
./$< --only_create --envdir dir.$@ && \
$(VGRIND) ./$< $(VERBVERBOSE) --only_stress --num_seconds 1000 --envdir dir.$@ \
$(MAYBEINVERTER) $(SUMMARIZE_CMD)
# stress tests with drd
TINY_STRESS_TESTS = $(patsubst %,tiny_%.drdrun,$(STRESS_TESTS)) TINY_STRESS_TESTS = $(patsubst %,tiny_%.drdrun,$(STRESS_TESTS))
MID_STRESS_TESTS = $(patsubst %,mid_%.drdrun,$(STRESS_TESTS)) MID_STRESS_TESTS = $(patsubst %,mid_%.drdrun,$(STRESS_TESTS))
LARGE_STRESS_TESTS = $(patsubst %,mid_%.drdrun,$(STRESS_TESTS))
LARGE_STRESS_TESTS = $(patsubst %,large_%.drdrun,$(STRESS_TESTS)) LARGE_STRESS_TESTS = $(patsubst %,large_%.drdrun,$(STRESS_TESTS))
stress_tests.drdrun: $(TINY_STRESS_TESTS) \ stress_tests.drdrun: $(TINY_STRESS_TESTS) \
...@@ -1010,6 +1018,8 @@ test_4015.drdrun: test_4015.tdb ...@@ -1010,6 +1018,8 @@ test_4015.drdrun: test_4015.tdb
$(VALGRIND) --tool=drd --quiet --suppressions=drd.suppressions --error-exitcode=1 ./$< --envdir dir.tdb.$@ \ $(VALGRIND) --tool=drd --quiet --suppressions=drd.suppressions --error-exitcode=1 ./$< --envdir dir.tdb.$@ \
$(MAYBEINVERTER) $(SUMMARIZE_CMD) $(MAYBEINVERTER) $(SUMMARIZE_CMD)
# upgrade tests # upgrade tests
UPGRADE_TEST_SRCS = $(wildcard upgrade-test-*.c) UPGRADE_TEST_SRCS = $(wildcard upgrade-test-*.c)
UPGRADE_TESTS = $(patsubst %.c,%,$(UPGRADE_TEST_SRCS)) UPGRADE_TESTS = $(patsubst %.c,%,$(UPGRADE_TEST_SRCS))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment