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

Add recovery tests to the src/tests check rule

git-svn-id: file:///svn/tokudb@741 c7de825b-a66e-492c-adef-691d508d4ae1
parent b4838d65
...@@ -52,7 +52,7 @@ foo: ...@@ -52,7 +52,7 @@ foo:
echo ALL_TESTS: $(ALL_TESTS) echo ALL_TESTS: $(ALL_TESTS)
.PHONY: check check.bdb check.tdb .PHONY: check check.bdb check.tdb
check: check.bdb check.tdb check: check.bdb check.tdb check.recover
@ echo ok @ echo ok
check.bdb: $(RUN_BDB_TESTS) check.bdb: $(RUN_BDB_TESTS)
check.tdb: $(RUN_TDB_TESTS) check.tdb: $(RUN_TDB_TESTS)
...@@ -101,6 +101,16 @@ $(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND= ...@@ -101,6 +101,16 @@ $(patsubst %,test_%.bdbrun,$(NO_VGRIND)): VGRIND=
%.tdb: %.c %.tdb: %.c
$(SETTOKUENV); cc -DDIR=\"dir.$<.tdb\" -DUSE_TDB $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@ $(SETTOKUENV); cc -DDIR=\"dir.$<.tdb\" -DUSE_TDB $(CFLAGS) $(TDB_CPPFLAGS) $(TDB_LOADLIBES) $< -o $@
.PHONY: %.recover
check.recover: logtest2.recover
logtest2.recover: test_log2.tdb
cd ../../newbrt;make recover
./test_log2.tdb
rm -rf dir.test_log2.c.tdb.recover
mkdir dir.test_log2.c.tdb.recover
cd dir.test_log2.c.tdb.recover;../../../newbrt/recover ../dir.test_log2.c.tdb
diff dir.test_log2.c.tdb/foo.db dir.test_log2.c.tdb.recover/foo.db
make_libs: make_libs:
cd ..;make cd ..;make
......
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