Commit 81623308 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Now the makefile has a way to be happy when a test fails. The groupcommit...

Now the makefile has a way to be happy when a test fails.  The groupcommit test passes (even though it fails).  The two recovery tests fail, but those are real failures, so I'll consider that this Fixes #706.

git-svn-id: file:///svn/tokudb@3481 c7de825b-a66e-492c-adef-691d508d4ae1
parent d1f5bdb0
...@@ -55,6 +55,8 @@ TDB_TESTS = $(patsubst %.c,%.tdb,$(SRCS)) ...@@ -55,6 +55,8 @@ TDB_TESTS = $(patsubst %.c,%.tdb,$(SRCS))
BDB_DONTRUN = bug627 test_abort1 BDB_DONTRUN = bug627 test_abort1
BDB_TESTS = $(patsubst %.c,%.bdb,$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS))) BDB_TESTS = $(patsubst %.c,%.bdb,$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS)))
TDB_TESTS_THAT_SHOULD_FAIL = test_groupcommit_count
ALL_TESTS = $(TDB_TESTS) $(BDB_TESTS) ALL_TESTS = $(TDB_TESTS) $(BDB_TESTS)
RUN_TDB_TESTS = $(patsubst %.tdb,%.tdbrun,$(TDB_TESTS)) RUN_TDB_TESTS = $(patsubst %.tdb,%.tdbrun,$(TDB_TESTS))
...@@ -118,8 +120,10 @@ endif ...@@ -118,8 +120,10 @@ endif
%.bdbrun: %.bdb ../libtokudb.$(LIBEXT) %.bdbrun: %.bdb ../libtokudb.$(LIBEXT)
$(MAYBEATSIGN) $(UNSETTOKUENV) ./$< $(VERBVERBOSE) $(MAYBEATSIGN) $(UNSETTOKUENV) ./$< $(VERBVERBOSE)
%.tdbrun: %.tdb ../libtokudb.$(LIBEXT) %.tdbrun: %.tdb ../libtokudb.$(LIBEXT)
$(MAYBEATSIGN) $(SETTOKUENV) $(VGRIND) ./$< $(VERBVERBOSE) $(MAYBEATSIGN) $(SETTOKUENV) $(VGRIND) ./$< $(VERBVERBOSE) $(MAYBEINVERTERR)
@ touch $@ @ touch $@
# Any test that should fail, we invert the result by using MAYBEINVERTERR
$(patsubst %,%.tdbrun,$(TDB_TESTS_THAT_SHOULD_FAIL)): MAYBEINVERTERR=;test $$? -ne 0
# Don't include log2 log3 log4 log5 etc since they are covered by all.recover # Don't include log2 log3 log4 log5 etc since they are covered by all.recover
......
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