2013-04-16 23:58:59 -04:00
|
|
|
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)
|
2013-04-16 23:59:01 -04:00
|
|
|
$(LINUX_TESTS_TARGETS): | $(LIBPORTABILITY)
|
2013-04-16 23:58:59 -04:00
|
|
|
|
2013-04-16 23:59:01 -04:00
|
|
|
# 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
|
2013-04-16 23:58:59 -04:00
|
|
|
linux/tests/%.tdbrun: linux/tests/%
|
2013-04-16 23:59:01 -04:00
|
|
|
$(VGRIND) ./$< $(TEST_EXTRA_ARGS) $(SUMMARIZE_CMD)
|
2013-04-16 23:58:59 -04:00
|
|
|
linux/tests/test-gettime: LOADLIBES += -lrt
|
|
|
|
linux/tests/foo:
|
|
|
|
echo $(VGRIND)
|