mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
9385383347
`make check` was reverted too soon. The hacking guide wasn't brought
up to date with the new workflow, and it's not clear how to use
meson for everything.
This reverts commit 6f3045c2a2
.
38 lines
1.0 KiB
Makefile
38 lines
1.0 KiB
Makefile
check: libfetchers-tests_RUN
|
|
|
|
programs += libfetchers-tests
|
|
|
|
libfetchers-tests_NAME = libnixfetchers-tests
|
|
|
|
libfetchers-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data GTEST_OUTPUT=xml:$$testresults/libfetchers-tests.xml
|
|
|
|
libfetchers-tests_DIR := $(d)
|
|
|
|
ifeq ($(INSTALL_UNIT_TESTS), yes)
|
|
libfetchers-tests_INSTALL_DIR := $(checkbindir)
|
|
else
|
|
libfetchers-tests_INSTALL_DIR :=
|
|
endif
|
|
|
|
libfetchers-tests_SOURCES := $(wildcard $(d)/*.cc)
|
|
|
|
libfetchers-tests_EXTRA_INCLUDES = \
|
|
-I tests/unit/libstore-support \
|
|
-I tests/unit/libutil-support \
|
|
$(INCLUDE_libfetchers) \
|
|
$(INCLUDE_libstore) \
|
|
$(INCLUDE_libutil)
|
|
|
|
libfetchers-tests_CXXFLAGS += $(libfetchers-tests_EXTRA_INCLUDES)
|
|
|
|
libfetchers-tests_LIBS = \
|
|
libstore-test-support libutil-test-support \
|
|
libfetchers libstore libutil
|
|
|
|
libfetchers-tests_LDFLAGS := -lrapidcheck $(GTEST_LIBS) $(LIBGIT2_LIBS)
|
|
|
|
ifdef HOST_WINDOWS
|
|
# Increase the default reserved stack size to 65 MB so Nix doesn't run out of space
|
|
libfetchers-tests_LDFLAGS += -Wl,--stack,$(shell echo $$((65 * 1024 * 1024)))
|
|
endif
|