mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:54:13 +08:00
mdbx-make: переименование целей.
This commit is contained in:
parent
0916d24321
commit
24d5b26bc5
47
GNUmakefile
47
GNUmakefile
@ -172,22 +172,22 @@ help:
|
|||||||
@echo " make bench-clean - remove temp database(s) after benchmark"
|
@echo " make bench-clean - remove temp database(s) after benchmark"
|
||||||
#> dist-cutoff-begin
|
#> dist-cutoff-begin
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " make smoke - fast smoke test"
|
|
||||||
@echo " make test - basic test"
|
|
||||||
@echo " make check - smoke test with amalgamation and installation checking"
|
@echo " make check - smoke test with amalgamation and installation checking"
|
||||||
@echo " make long-test - execute long test which runs for several weeks, or until you interrupt it"
|
@echo " make smoke - fast smoke test"
|
||||||
@echo " make memcheck - build with Valgrind's and smoke test with memcheck tool"
|
@echo " make smoke-memcheck - build with Valgrind support and run smoke test under memcheck tool"
|
||||||
@echo " make test-valgrind - build with Valgrind's and basic test with memcheck tool"
|
@echo " make smoke-fault - execute transaction owner failure smoke testcase"
|
||||||
@echo " make test-asan - build with AddressSanitizer and basic test"
|
@echo " make smoke-singleprocess - execute single-process smoke test"
|
||||||
@echo " make test-leak - build with LeakSanitizer and basic test"
|
@echo " make test - basic test"
|
||||||
@echo " make test-ubsan - build with UndefinedBehaviourSanitizer and basic test"
|
@echo " make test-memcheck - build with Valgrind support and run basic test under memcheck tool"
|
||||||
|
@echo " make test-long - execute long test which runs for several weeks, or until interruption"
|
||||||
|
@echo " make test-asan - build with AddressSanitizer and run basic test"
|
||||||
|
@echo " make test-leak - build with LeakSanitizer and run basic test"
|
||||||
|
@echo " make test-ubsan - build with UndefinedBehaviourSanitizer and run basic test"
|
||||||
|
@echo " make test-singleprocess - execute single-process basic test (also used by make cross-qemu)"
|
||||||
@echo " make cross-gcc - check cross-compilation without test execution"
|
@echo " make cross-gcc - check cross-compilation without test execution"
|
||||||
@echo " make cross-qemu - run cross-compilation and execution basic test with QEMU"
|
@echo " make cross-qemu - run cross-compilation and execution basic test with QEMU"
|
||||||
@echo " make gcc-analyzer - run gcc-analyzer (mostly useless for now)"
|
@echo " make gcc-analyzer - run gcc-analyzer (mostly useless for now)"
|
||||||
@echo " make build-test - build test executable(s)"
|
@echo " make build-test - build test executable(s)"
|
||||||
@echo " make smoke-fault - execute transaction owner failure smoke testcase"
|
|
||||||
@echo " make smoke-singleprocess - execute single-process smoke test"
|
|
||||||
@echo " make test-singleprocess - execute single-process basic test (also used by make cross-qemu)"
|
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " make dist - build amalgamated source code"
|
@echo " make dist - build amalgamated source code"
|
||||||
@echo " make doxygen - build HTML documentation"
|
@echo " make doxygen - build HTML documentation"
|
||||||
@ -328,8 +328,14 @@ else
|
|||||||
|
|
||||||
.PHONY: build-test build-test-with-valgrind check cross-gcc cross-qemu dist doxygen gcc-analyzer long-test
|
.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: reformat release-assets tags smoke test test-asan smoke-fault test-leak
|
||||||
.PHONY: smoke-singleprocess test-singleprocess test-ubsan test-valgrind memcheck
|
.PHONY: smoke-singleprocess test-singleprocess test-ubsan test-valgrind test-memcheck memcheck smoke-memcheck
|
||||||
.PHONY: smoke-assertion test-assertion long-test-assertion
|
.PHONY: smoke-assertion test-assertion long-test-assertion test-ci test-ci-extra
|
||||||
|
|
||||||
|
test-ci-extra: test-ci cross-gcc cross-qemu
|
||||||
|
|
||||||
|
test-ci: check \
|
||||||
|
smoke-singleprocess smoke-fault smoke-memcheck smoke \
|
||||||
|
test-leak test-asan test-ubsan test-singleprocess test test-memcheck
|
||||||
|
|
||||||
define uname2osal
|
define uname2osal
|
||||||
case "$(UNAME)" in
|
case "$(UNAME)" in
|
||||||
@ -420,7 +426,8 @@ test: build-test
|
|||||||
@echo ' RUNNING `test/long_stochastic.sh --loops 2`...'
|
@echo ' RUNNING `test/long_stochastic.sh --loops 2`...'
|
||||||
$(QUIET)test/long_stochastic.sh --dont-check-ram-size --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
$(QUIET)test/long_stochastic.sh --dont-check-ram-size --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
long-test: build-test
|
long-test: test-long
|
||||||
|
test-long: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --loops 42`...'
|
@echo ' RUNNING `test/long_stochastic.sh --loops 42`...'
|
||||||
$(QUIET)test/long_stochastic.sh --loops 42 --db-upto-mb 1024 --skip-make --taillog
|
$(QUIET)test/long_stochastic.sh --loops 42 --db-upto-mb 1024 --skip-make --taillog
|
||||||
|
|
||||||
@ -428,14 +435,16 @@ test-singleprocess: build-test
|
|||||||
@echo ' RUNNING `test/long_stochastic.sh --single --loops 2`...'
|
@echo ' RUNNING `test/long_stochastic.sh --single --loops 2`...'
|
||||||
$(QUIET)test/long_stochastic.sh --dont-check-ram-size --single --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
$(QUIET)test/long_stochastic.sh --dont-check-ram-size --single --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
test-valgrind: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
test-valgrind: test-memcheck
|
||||||
test-valgrind: build-test
|
test-memcheck: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
||||||
|
test-memcheck: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --with-valgrind --loops 2`...'
|
@echo ' RUNNING `test/long_stochastic.sh --with-valgrind --loops 2`...'
|
||||||
$(QUIET)test/long_stochastic.sh --with-valgrind --loops 2 --db-upto-mb 256 --skip-make >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
$(QUIET)test/long_stochastic.sh --with-valgrind --loops 2 --db-upto-mb 256 --skip-make >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
memcheck: VALGRIND=valgrind --trace-children=yes --log-file=valgrind-%p.log --leak-check=full --track-origins=yes --read-var-info=yes --error-exitcode=42 --suppressions=test/valgrind_suppress.txt
|
memcheck: smoke-memcheck
|
||||||
memcheck: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
smoke-memcheck: VALGRIND=valgrind --trace-children=yes --log-file=valgrind-%p.log --leak-check=full --track-origins=yes --read-var-info=yes --error-exitcode=42 --suppressions=test/valgrind_suppress.txt
|
||||||
memcheck: build-test
|
smoke-memcheck: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
||||||
|
smoke-memcheck: build-test
|
||||||
@echo " SMOKE \`mdbx_test basic\` under Valgrind's memcheck..."
|
@echo " SMOKE \`mdbx_test basic\` under Valgrind's memcheck..."
|
||||||
$(QUIET)rm -f valgrind-*.log $(TEST_DB) $(TEST_LOG).gz && (set -o pipefail; ( \
|
$(QUIET)rm -f valgrind-*.log $(TEST_DB) $(TEST_LOG).gz && (set -o pipefail; ( \
|
||||||
$(VALGRIND) ./mdbx_test --table=+data.integer --keygen.split=29 --datalen.min=min --datalen.max=max --progress --console=no --repeat=2 --pathname=$(TEST_DB) --dont-cleanup-after $(MDBX_SMOKE_EXTRA) basic && \
|
$(VALGRIND) ./mdbx_test --table=+data.integer --keygen.split=29 --datalen.min=min --datalen.max=max --progress --console=no --repeat=2 --pathname=$(TEST_DB) --dont-cleanup-after $(MDBX_SMOKE_EXTRA) basic && \
|
||||||
|
7
Makefile
7
Makefile
@ -6,9 +6,10 @@ bench bench-clean bench-couple bench-quartet bench-triplet re-bench \
|
|||||||
lib libs lib-static lib-shared tools-static \
|
lib libs lib-static lib-shared tools-static \
|
||||||
libmdbx mdbx mdbx_chk mdbx_copy mdbx_drop mdbx_dump mdbx_load mdbx_stat \
|
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 \
|
check dist memcheck cross-gcc cross-qemu doxygen gcc-analyzer reformat \
|
||||||
release-assets tags test build-test mdbx_test smoke smoke-fault smoke-singleprocess \
|
release-assets tags build-test mdbx_test \
|
||||||
smoke-assertion test-assertion long-test-assertion \
|
smoke smoke-fault smoke-singleprocess smoke-assertion smoke-memcheck \
|
||||||
test-asan test-leak test-singleprocess test-ubsan test-valgrind:
|
test test-assertion test-long test-long-assertion test-ci test-ci-extra \
|
||||||
|
test-asan test-leak test-singleprocess test-ubsan test-memcheck:
|
||||||
@CC=$(CC) \
|
@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` \
|
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` \
|
||||||
`which gmake || which gnumake || echo 'echo "GNU Make 3.80 or above is required"; exit 2;'` \
|
`which gmake || which gnumake || echo 'echo "GNU Make 3.80 or above is required"; exit 2;'` \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user