<commit_before># -*- Mode: Makefile -*-

.DEFAULT_GOAL= build
TOKUROOT=../../
INCLUDEDIRS=-I. -I../ -I$(TOKUROOT)newbrt -I../range_tree -I../lock_tree
DEPEND_COMPILE += \
	../*.h \
	../range_tree/*.h \
	../lock_tree/*.h \
	test.h \
#end
SKIP_NORETURN=1 #Do not add the -Wmissing-noreturn flag
include $(TOKUROOT)include/Makefile.include
CPPFLAGS += -D_GNU_SOURCE
LIBTDB=../libtokudb.$(SOEXT)
TLIBTDB=../libtokudbtrace.$(SOEXT)

ifeq ($(CC),icc)
SKIP_WARNING += $(ICC_NOWARN)1418 #Non static functions do not need prototypes.
endif
BDBVGRIND=

$(LIBTDB) $(TLIBTDB):
	$(MAYBEATSIGN)cd $(@D) && $(MAKE) $(@F)

$(notdir $(LIBTDB)): $(LIBTDB)
	$(MAYBEATSIGN)cp $< $@

$(notdir $(TLIBTDB)): $(TLIBTDB)
	$(MAYBEATSIGN)cp $< $@

SRCS = $(sort $(wildcard *.c))

TDB_TESTS = $(patsubst %.c,%.tdb$(BINSUF),$(SRCS))
BDB_DONTRUN_TESTS = \
	bug627 \
	test_abort1 \
	keyrange \
	keyrange-unflat \
	keyrange-dupsort \
	keyrange-dupsort-unflat \
	manyfiles \
	test938c \
	helgrind1 \
	helgrind 2\
#\ ends prev line

BDB_TESTS = $(patsubst %.c,%.bdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN)),$(SRCS)))

TDB_TESTS_THAT_SHOULD_FAIL= \
	test_groupcommit_count \
	test-recover1 \
	test-recover2 \
	test-recover3 \
	test_txn_recover3 \
	test944 \
	test_truncate_txn_abort \
	test_truncate_subdb \
	test_txn_nested_abort3 \
	test_txn_nested_abort4 \
	helgrind1 \
	helgrind2 \<commit_msg>BDB_DONTRUN tests were being compiled.  Fixes #1315.<commit_after># -*- Mode: Makefile -*-

.DEFAULT_GOAL= build
TOKUROOT=../../
INCLUDEDIRS=-I. -I../ -I$(TOKUROOT)newbrt -I../range_tree -I../lock_tree
DEPEND_COMPILE += \
	../*.h \
	../range_tree/*.h \
	../lock_tree/*.h \
	test.h \
#end
SKIP_NORETURN=1 #Do not add the -Wmissing-noreturn flag
include $(TOKUROOT)include/Makefile.include
CPPFLAGS += -D_GNU_SOURCE
LIBTDB=../libtokudb.$(SOEXT)
TLIBTDB=../libtokudbtrace.$(SOEXT)

ifeq ($(CC),icc)
SKIP_WARNING += $(ICC_NOWARN)1418 #Non static functions do not need prototypes.
endif
BDBVGRIND=

$(LIBTDB) $(TLIBTDB):
	$(MAYBEATSIGN)cd $(@D) && $(MAKE) $(@F)

$(notdir $(LIBTDB)): $(LIBTDB)
	$(MAYBEATSIGN)cp $< $@

$(notdir $(TLIBTDB)): $(TLIBTDB)
	$(MAYBEATSIGN)cp $< $@

SRCS = $(sort $(wildcard *.c))

TDB_TESTS = $(patsubst %.c,%.tdb$(BINSUF),$(SRCS))
BDB_DONTRUN_TESTS = \
	bug627 \
	test_abort1 \
	keyrange \
	keyrange-unflat \
	keyrange-dupsort \
	keyrange-dupsort-unflat \
	manyfiles \
	test938c \
	helgrind1 \
	helgrind 2\
#\ ends prev line

BDB_TESTS = $(patsubst %.c,%.bdb$(BINSUF),$(filter-out $(patsubst %,%.c,$(BDB_DONTRUN_TESTS)),$(SRCS)))

TDB_TESTS_THAT_SHOULD_FAIL= \
	test_groupcommit_count \
	test-recover1 \
	test-recover2 \
	test-recover3 \
	test_txn_recover3 \
	test944 \
	test_truncate_txn_abort \
	test_truncate_subdb \
	test_txn_nested_abort3 \
	test_txn_nested_abort4 \
	helgrind1 \
	helgrind2 \
{'fraction_non_alphanumeric': 0.1841258491240615, 'fraction_numerical': 0.019306399713979263, 'mean_word_length': 3.97864768683274, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1025256', 'n_tokens_mistral': 1325, 'n_tokens_neox': 1286, 'n_words': 200}