mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
63b1969fbb
git-svn-id: file:///svn/toku/tokudb@43179 c7de825b-a66e-492c-adef-691d508d4ae1
18 lines
800 B
Text
18 lines
800 B
Text
LINUX_TESTS_SRCS = $(wildcard linux/tests/test-*.c)
|
|
LINUX_TESTS_TARGETS = $(patsubst %.c,%,$(LINUX_TESTS_SRCS))
|
|
LINUX_TESTS_RUNTARGETS = $(patsubst %,%.tdbrun,$(LINUX_TESTS_TARGETS))
|
|
linux/tests/build: $(LINUX_TESTS_TARGETS)
|
|
linux/tests/check: $(LINUX_TESTS_RUNTARGETS)
|
|
$(LINUX_TESTS_TARGETS): | $(LIBPORTABILITY)
|
|
|
|
# Every directory must define these rules for its make rules. And not with +=
|
|
linux/tests/%: CFLAGS_DIRECTORY =
|
|
linux/tests/%: CPPFLAGS_DIRECTORY = -Itoku_include -Ilinux -Ilinux/tests
|
|
linux/tests/%: LOADLIBES_DIRECTORY = -Llib -ltokuportability -lpthread
|
|
|
|
linux/tests/test-pwrite4g.tdbrun: TEST_EXTRA_ARGS=linux/tests
|
|
linux/tests/%.tdbrun: linux/tests/%
|
|
$(VGRIND) ./$< $(TEST_EXTRA_ARGS) $(SUMMARIZE_CMD)
|
|
linux/tests/test-gettime: LOADLIBES += -lrt
|
|
linux/tests/foo:
|
|
echo $(VGRIND)
|