diff --git a/GNUmakefile b/GNUmakefile index f70a3da1..2ade41ec 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -325,6 +325,7 @@ else .PHONY: build-test build-test-with-valgrind check cross-gcc cross-qemu dist doxygen gcc-analyzer long-test .PHONY: reformat release-assets tags smoke test test-asan smoke-fault test-leak .PHONY: smoke-singleprocess test-singleprocess test-ubsan test-valgrind memcheck +.PHONY: smoke-assertion test-assertion long-test-assertion define uname2osal case "$(UNAME)" in @@ -380,6 +381,13 @@ MDBX_SMOKE_EXTRA ?= check: DESTDIR = $(shell pwd)/@check-install check: test dist install +smoke-assertion: MDBX_BUILD_OPTIONS=-DMDBX_FORCE_ASSERTIONS=1 +smoke-assertion: smoke +test-assertion: MDBX_BUILD_OPTIONS=-DMDBX_FORCE_ASSERTIONS=1 +test-assertion: smoke +long-test-assertion: MDBX_BUILD_OPTIONS=-DMDBX_FORCE_ASSERTIONS=1 +long-test-assertion: smoke + smoke: build-test @echo ' SMOKE `mdbx_test basic`...' $(QUIET)rm -f $(TEST_DB) $(TEST_LOG).gz && (set -o pipefail; \ diff --git a/Makefile b/Makefile index 183da9c4..599e4787 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ lib libs lib-static lib-shared tools-static \ libmdbx mdbx mdbx_chk mdbx_copy mdbx_drop mdbx_dump mdbx_load mdbx_stat \ check dist memcheck cross-gcc cross-qemu doxygen gcc-analyzer reformat \ release-assets tags test build-test mdbx_test smoke smoke-fault smoke-singleprocess \ +smoke-assertion test-assertion long-test-assertion \ test-asan test-leak test-singleprocess test-ubsan test-valgrind: @CC=$(CC) \ CXX=`if test -n "$(CXX)" && which "$(CXX)" > /dev/null; then echo "$(CXX)"; elif test -n "$(CCC)" && which "$(CCC)" > /dev/null; then echo "$(CCC)"; else echo "c++"; fi` \