mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx-testing: добавление опции --report-depth
для сокращения накладных расходов.
This commit is contained in:
parent
6067ba5f9d
commit
157ede4e42
@ -18,6 +18,7 @@ DONT_CHECK_RAM=no
|
|||||||
EXTRA=no
|
EXTRA=no
|
||||||
TAILLOG=0
|
TAILLOG=0
|
||||||
DELAY=0
|
DELAY=0
|
||||||
|
REPORT_DEPTH=no
|
||||||
|
|
||||||
while [ -n "$1" ]
|
while [ -n "$1" ]
|
||||||
do
|
do
|
||||||
@ -43,6 +44,7 @@ do
|
|||||||
echo "--extra Iterate extra modes/flags"
|
echo "--extra Iterate extra modes/flags"
|
||||||
echo "--taillog Dump tail of test log on failure"
|
echo "--taillog Dump tail of test log on failure"
|
||||||
echo "--delay NN Delay NN seconds before run test"
|
echo "--delay NN Delay NN seconds before run test"
|
||||||
|
echo "--report-depth Report tree depth (tee+grep log)"
|
||||||
echo "--help Print this usage help and exit"
|
echo "--help Print this usage help and exit"
|
||||||
exit -2
|
exit -2
|
||||||
;;
|
;;
|
||||||
@ -173,6 +175,9 @@ do
|
|||||||
DELAY=$(($2))
|
DELAY=$(($2))
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--report-depth)
|
||||||
|
REPORT_DEPTH=yes
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown option '$1'"
|
echo "Unknown option '$1'"
|
||||||
exit -2
|
exit -2
|
||||||
@ -466,7 +471,7 @@ function probe {
|
|||||||
for case in $LIST
|
for case in $LIST
|
||||||
do
|
do
|
||||||
echo "Run ./mdbx_test ${speculum} --random-writemap=no --ignore-dbfull --repeat=11 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no --geometry-jitter=${GEOMETRY_JITTER} $@ $case"
|
echo "Run ./mdbx_test ${speculum} --random-writemap=no --ignore-dbfull --repeat=11 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no --geometry-jitter=${GEOMETRY_JITTER} $@ $case"
|
||||||
if [ "$case" = "basic" -o "$case" = "--hill" ]; then
|
if [[ ${REPORT_DEPTH} = "yes" && ($case = "basic" || $case = "--hill") ]]; then
|
||||||
exec {LFD}> >(tee -p -i >(logger) | grep -e reach -e achieve)
|
exec {LFD}> >(tee -p -i >(logger) | grep -e reach -e achieve)
|
||||||
else
|
else
|
||||||
exec {LFD}> >(logger)
|
exec {LFD}> >(logger)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user