2023-08-25 17:20:28 +03:00
|
|
|
check: libstore-tests_RUN
|
|
|
|
|
|
|
|
programs += libstore-tests
|
|
|
|
|
|
|
|
libstore-tests_NAME = libnixstore-tests
|
|
|
|
|
|
|
|
libstore-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data
|
|
|
|
|
|
|
|
libstore-tests_DIR := $(d)
|
|
|
|
|
|
|
|
ifeq ($(INSTALL_UNIT_TESTS), yes)
|
|
|
|
libstore-tests_INSTALL_DIR := $(checkbindir)
|
|
|
|
else
|
|
|
|
libstore-tests_INSTALL_DIR :=
|
|
|
|
endif
|
|
|
|
|
|
|
|
libstore-tests_SOURCES := $(wildcard $(d)/*.cc)
|
|
|
|
|
|
|
|
libstore-tests_EXTRA_INCLUDES = \
|
|
|
|
-I tests/unit/libstore-support \
|
|
|
|
-I tests/unit/libutil-support \
|
2023-09-03 00:10:28 +03:00
|
|
|
$(INCLUDE_libstore) \
|
2024-03-28 20:00:04 +02:00
|
|
|
$(INCLUDE_libstorec) \
|
|
|
|
$(INCLUDE_libutil) \
|
|
|
|
$(INCLUDE_libutilc)
|
2023-08-25 17:20:28 +03:00
|
|
|
|
|
|
|
libstore-tests_CXXFLAGS += $(libstore-tests_EXTRA_INCLUDES)
|
|
|
|
|
|
|
|
libstore-tests_LIBS = \
|
|
|
|
libstore-test-support libutil-test-support \
|
2023-12-14 21:14:58 +02:00
|
|
|
libstore libstorec libutil libutilc
|
2023-08-25 17:20:28 +03:00
|
|
|
|
|
|
|
libstore-tests_LDFLAGS := -lrapidcheck $(GTEST_LIBS)
|