1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
-DSCITOKENS_BUILD_UNITTESTS:BOOL=ON \
-DSCITOKENS_EXTERNAL_GTEST:BOOL=ON
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
# Filter out tests that require network connection
# Use a key cache directory outside HOME since HOME might not exit
cd obj-$(DEB_HOST_GNU_TYPE) && \
GTEST_FILTER=-KeycacheTest.RefreshTest:KeycacheTest.RefreshExpiredTest \
XDG_CACHE_HOME=$(CURDIR)/.cache \
ctest --output-on-failure
endif
|