mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Addresses #1350 Added test that verifies max key size >= 3KiB and max val size >= 80KiB (independantly and together) on NODUP databases.
git-svn-id: file:///svn/toku/tokudb@10753 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
6daac11581
commit
5d16c33726
1 changed files with 12 additions and 2 deletions
|
@ -19,7 +19,7 @@ SKIP_NORETURN=1 #Do not add the -Wmissing-noreturn flag
|
||||||
HERE = db-benchmark-test
|
HERE = db-benchmark-test
|
||||||
include $(TOKUROOT)toku_include/Makefile.include
|
include $(TOKUROOT)toku_include/Makefile.include
|
||||||
|
|
||||||
BENCHDBS = bench.bdb/ bench.tokudb ptest*.dir/ x.dir/ xfast.dir/ scanrace.tokudb/ 4g.dir/
|
BENCHDBS = bench.bdb/ bench.tokudb ptest*.dir/ x.dir/ xfast.dir/ scanrace.tokudb/ 4g.dir/ rowsize.*.dir/
|
||||||
TDB_DLINK_FILES = $(TOKUROOT)lib/$(TOKUDB)
|
TDB_DLINK_FILES = $(TOKUROOT)lib/$(TOKUDB)
|
||||||
|
|
||||||
TARGET_BDB = db-benchmark-test-bdb$(BINSUF)
|
TARGET_BDB = db-benchmark-test-bdb$(BINSUF)
|
||||||
|
@ -65,7 +65,17 @@ build: build.tdb build.bdb
|
||||||
build.bdb: $(TARGET_BDB) $(SCANSCAN_BDB) $(WINDOWS_BDB_LIB_NAME)
|
build.bdb: $(TARGET_BDB) $(SCANSCAN_BDB) $(WINDOWS_BDB_LIB_NAME)
|
||||||
build.tdb: $(TARGET_TDB) $(SCANSCAN_TDB)
|
build.tdb: $(TARGET_TDB) $(SCANSCAN_TDB)
|
||||||
|
|
||||||
check: check-default check-xfast check-x check-no-rolltmp check-4G
|
check: check-default check-rowsize check-xfast check-x check-no-rolltmp check-4G
|
||||||
|
|
||||||
|
SUPPORT_KEYSIZE=$$((3*1024)) # at least 3KiB
|
||||||
|
SUPPORT_ROWSIZE=$$((80*1024)) # at least 80KiB
|
||||||
|
|
||||||
|
foo:
|
||||||
|
echo $$((3*1024)) $(SUPPORT_KEYSIZE)
|
||||||
|
check-rowsize: $(TARGET_TDB)
|
||||||
|
$(VGRIND) ./$(TARGET_TDB) $(VERBVERBOSE) --env rowsize.key.dir --keysize $(SUPPORT_KEYSIZE) --periter 256 1 $(SUMMARIZE_CMD)
|
||||||
|
$(VGRIND) ./$(TARGET_TDB) $(VERBVERBOSE) --env rowsize.val.dir --valsize $(SUPPORT_ROWSIZE) --periter 256 1 $(SUMMARIZE_CMD)
|
||||||
|
$(VGRIND) ./$(TARGET_TDB) $(VERBVERBOSE) --env rowsize.keyval.dir --keysize $(SUPPORT_KEYSIZE) --valsize $(SUPPORT_ROWSIZE) --periter 256 1 $(SUMMARIZE_CMD)
|
||||||
|
|
||||||
check-default: $(TARGET_TDB)
|
check-default: $(TARGET_TDB)
|
||||||
$(VGRIND) ./$(TARGET_TDB) $(VERBVERBOSE) $(SUMMARIZE_CMD)
|
$(VGRIND) ./$(TARGET_TDB) $(VERBVERBOSE) $(SUMMARIZE_CMD)
|
||||||
|
|
Loading…
Add table
Reference in a new issue