mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-01-24 17:16:06 +00:00
mdbx-testing: переименование скрипта stochastic.sh
This commit is contained in:
parent
c0e5108d71
commit
ca8e9fe7b1
@ -756,7 +756,7 @@ Signed-off-by: Леонид Юрьев (Leonid Yuriev) <leo@yuriev.ru>
|
|||||||
все они были несущественные, либо ложные.
|
все они были несущественные, либо ложные.
|
||||||
- Устранено ложное предупреждение GCC при сборке для SH4.
|
- Устранено ложное предупреждение GCC при сборке для SH4.
|
||||||
- Добавлена поддержка ASAN (Address Sanitizer) при сборке посредством MSVC.
|
- Добавлена поддержка ASAN (Address Sanitizer) при сборке посредством MSVC.
|
||||||
- Расширен набор перебираемых режимов в скрипте `test/long_stochastic.sh`,
|
- Расширен набор перебираемых режимов в скрипте `test/stochastic.sh`,
|
||||||
добавлена опция `--extra`.
|
добавлена опция `--extra`.
|
||||||
- В C++ API добавлена поддержка расширенных опций времени выполнения `mdbx::extra_runtime_option`,
|
- В C++ API добавлена поддержка расширенных опций времени выполнения `mdbx::extra_runtime_option`,
|
||||||
аналогично `enum MDBX_option_t` из C API.
|
аналогично `enum MDBX_option_t` из C API.
|
||||||
@ -1066,7 +1066,7 @@ Signed-off-by: Леонид Юрьев (Leonid Yuriev) <leo@yuriev.ru>
|
|||||||
- Уменьшение в 42 раза значения по-умолчанию для `me_options.dp_limit`
|
- Уменьшение в 42 раза значения по-умолчанию для `me_options.dp_limit`
|
||||||
в отладочных сборках.
|
в отладочных сборках.
|
||||||
- Добавление платформы `gcc-riscv64-linux-gnu` в список для цели `cross-gcc`.
|
- Добавление платформы `gcc-riscv64-linux-gnu` в список для цели `cross-gcc`.
|
||||||
- Небольшие правки скрипта `long_stochastic.sh` для работы в Windows.
|
- Небольшие правки скрипта `stochastic.sh` для работы в Windows.
|
||||||
- Удаление ненужного вызова `LockFileEx()` внутри `mdbx_env_copy()`.
|
- Удаление ненужного вызова `LockFileEx()` внутри `mdbx_env_copy()`.
|
||||||
- Добавлено описание использования файловых дескрипторов в различных режимах.
|
- Добавлено описание использования файловых дескрипторов в различных режимах.
|
||||||
- Добавлено использование `_CrtDbgReport()` в отладочных сборках.
|
- Добавлено использование `_CrtDbgReport()` в отладочных сборках.
|
||||||
|
16
GNUmakefile
16
GNUmakefile
@ -425,23 +425,23 @@ smoke-fault: build-test
|
|||||||
; ./mdbx_chk -vvnw $(TEST_DB) && ([ ! -e $(TEST_DB)-copy ] || ./mdbx_chk -vvn $(TEST_DB)-copy)
|
; ./mdbx_chk -vvnw $(TEST_DB) && ([ ! -e $(TEST_DB)-copy ] || ./mdbx_chk -vvn $(TEST_DB)-copy)
|
||||||
|
|
||||||
test: build-test
|
test: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --loops 2`...'
|
@echo ' RUNNING `test/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/stochastic.sh --dont-check-ram-size --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
long-test: test-long
|
long-test: test-long
|
||||||
test-long: build-test
|
test-long: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --loops 42`...'
|
@echo ' RUNNING `test/stochastic.sh --loops 42`...'
|
||||||
$(QUIET)test/long_stochastic.sh --loops 42 --db-upto-mb 1024 --extra --skip-make --taillog
|
$(QUIET)test/stochastic.sh --loops 42 --db-upto-mb 1024 --extra --skip-make --taillog
|
||||||
|
|
||||||
test-singleprocess: build-test
|
test-singleprocess: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --single --loops 2`...'
|
@echo ' RUNNING `test/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/stochastic.sh --dont-check-ram-size --single --loops 2 --db-upto-mb 256 --skip-make --taillog >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
test-valgrind: test-memcheck
|
test-valgrind: test-memcheck
|
||||||
test-memcheck: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
test-memcheck: CFLAGS_EXTRA=-Ofast -DENABLE_MEMCHECK
|
||||||
test-memcheck: build-test
|
test-memcheck: build-test
|
||||||
@echo ' RUNNING `test/long_stochastic.sh --with-valgrind --loops 2`...'
|
@echo ' RUNNING `test/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/stochastic.sh --with-valgrind --loops 2 --db-upto-mb 256 --skip-make >$(TEST_LOG) || (cat $(TEST_LOG) && false)
|
||||||
|
|
||||||
memcheck: smoke-memcheck
|
memcheck: smoke-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
|
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
|
||||||
|
@ -472,7 +472,7 @@ Therefore, only basic information is provided:
|
|||||||
- The `Makefile` provide several self-described targets for testing: `smoke`, `test`, `check`, `memcheck`, `test-valgrind`,
|
- The `Makefile` provide several self-described targets for testing: `smoke`, `test`, `check`, `memcheck`, `test-valgrind`,
|
||||||
`test-asan`, `test-leak`, `test-ubsan`, `cross-gcc`, `cross-qemu`, `gcc-analyzer`, `smoke-fault`, `smoke-singleprocess`,
|
`test-asan`, `test-leak`, `test-ubsan`, `cross-gcc`, `cross-qemu`, `gcc-analyzer`, `smoke-fault`, `smoke-singleprocess`,
|
||||||
`test-singleprocess`, 'long-test'. Please run `make --help` if doubt.
|
`test-singleprocess`, 'long-test'. Please run `make --help` if doubt.
|
||||||
- In addition to the `mdbx_test` utility, there is the script [`long_stochastic.sh`](https://gitflic.ru/project/erthink/libmdbx/blob/master/test/long_stochastic.sh),
|
- In addition to the `mdbx_test` utility, there is the script [`stochastic.sh`](https://gitflic.ru/project/erthink/libmdbx/blob/master/test/stochastic.sh),
|
||||||
which calls `mdbx_test` by going through set of modes and options, with gradually increasing the number of operations and the size of transactions.
|
which calls `mdbx_test` by going through set of modes and options, with gradually increasing the number of operations and the size of transactions.
|
||||||
This script is used for mostly of all automatic testing, including `Makefile` targets and Continuous Integration.
|
This script is used for mostly of all automatic testing, including `Makefile` targets and Continuous Integration.
|
||||||
- Brief information of available command-line options is available by `--help`.
|
- Brief information of available command-line options is available by `--help`.
|
||||||
@ -583,7 +583,7 @@ during configure by CMake.
|
|||||||
|
|
||||||
An example of running a basic test script can be found in the
|
An example of running a basic test script can be found in the
|
||||||
[CI-script](appveyor.yml) for [AppVeyor](https://www.appveyor.com/). To
|
[CI-script](appveyor.yml) for [AppVeyor](https://www.appveyor.com/). To
|
||||||
run the [long stochastic test scenario](test/long_stochastic.sh),
|
run the [long stochastic test scenario](test/stochastic.sh),
|
||||||
[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) is required, and
|
[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) is required, and
|
||||||
such testing is recommended with placing the test data on the
|
such testing is recommended with placing the test data on the
|
||||||
[RAM-disk](https://en.wikipedia.org/wiki/RAM_drive).
|
[RAM-disk](https://en.wikipedia.org/wiki/RAM_drive).
|
||||||
@ -603,7 +603,7 @@ directory with source code, and run `make check` to execute the base
|
|||||||
tests. If something goes wrong, it is recommended to install
|
tests. If something goes wrong, it is recommended to install
|
||||||
[Homebrew](https://brew.sh/) and try again.
|
[Homebrew](https://brew.sh/) and try again.
|
||||||
|
|
||||||
To run the [long stochastic test scenario](test/long_stochastic.sh), you
|
To run the [long stochastic test scenario](test/stochastic.sh), you
|
||||||
will need to install the current (not outdated) version of
|
will need to install the current (not outdated) version of
|
||||||
[Bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)). To do this, we
|
[Bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)). To do this, we
|
||||||
recommend that you install [Homebrew](https://brew.sh/) and then execute
|
recommend that you install [Homebrew](https://brew.sh/) and then execute
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# Леонид Юрьев aka Leonid Yuriev <leo@yuriev.ru>
|
# Леонид Юрьев aka Leonid Yuriev <leo@yuriev.ru>
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
TEST="./test/long_stochastic.sh --skip-make --db-upto-gb 32"
|
TEST="./test/stochastic.sh --skip-make --db-upto-gb 32"
|
||||||
PREFIX="/dev/shm/mdbxtest-"
|
PREFIX="/dev/shm/mdbxtest-"
|
||||||
|
|
||||||
tmux kill-session -t mdbx
|
tmux kill-session -t mdbx
|
||||||
|
Loading…
Reference in New Issue
Block a user