Commit Graph

304 Commits

Author SHA1 Message Date
Leonid Yuriev
c7a6e9c8ae mdbx-tests: add support for db-geometry params.
Change-Id: I4c527005bd7c5d585573536d299a8036c62eaaec
2018-08-22 00:55:21 +03:00
Leonid Yuriev
e7d4d24265 mdbx-test: add min/max cases for option values.
Change-Id: Ie77b828376a75aad09ea4dab202178b1f09bc6ad
2018-08-21 22:19:20 +03:00
Leonid Yuriev
b41bef8307 mdbx-test: add support for 'default' options values.
Change-Id: Ib8481e879e77bc6d02f8c92a2daad50b86782608
2018-08-21 22:19:20 +03:00
Leonid Yuriev
a0d10e41b8 mdbx: add mdbx_limits_xyz().
Change-Id: I56c79704c59386a0c4d84b001020484c23925e6c
2018-08-21 22:19:20 +03:00
Leonid Yuriev
ffdd487037 mdbx-test: fix typo.
Change-Id: If46f000af68f068c4463e1e86ae66f99c5c3d8ac
2018-08-21 22:19:20 +03:00
Leonid Yuriev
8b24c65119 mdbx-test: add --keygen.seed=NS into gc.sh script.
Change-Id: Ia17b72927db5d697a8a5758502c6bff9b946974d
2018-08-21 22:19:20 +03:00
Leonid Yuriev
3e9e52e0ce mdbx-test: use strtoull() and retry with base=10.
Change-Id: Ica846ed0a13eb4468a45620518b9ccf85e77a764
2018-08-21 22:19:20 +03:00
Leonid Yuriev
3964c58b80 mdbx-test: add 'gc.sh' script.
Change-Id: I633c93c0865b0d2609688713e986edf51ce6547d
2018-08-13 01:21:07 +03:00
Leonid Yuriev
c43b7d1aba mdbx-test: fix minor typos.
Change-Id: I4889a0e698bdfdda7eed257a5cd29e8b8089d102
2018-08-13 01:21:07 +03:00
Leonid Yuriev
26c4b673c4 mdbx-test: fix keylen/datalen min/max ranges checking. 2018-08-13 01:21:07 +03:00
Leonid Yuriev
6b5ada7b6e mdbx-test: add 'strikethrough' for bitmask-options. 2018-08-12 21:19:18 +03:00
Leo Yuriev
dbf66ec0bb mdbx: add __printf_args into defs.h
Change-Id: I0e6da5115bc427d04eb3ab59184152275c2a7cae
2018-07-28 17:59:56 +03:00
Leo Yuriev
09ad941a05 mdbx: Windows XP compatibility.
Change-Id: Iafe3a83110610071e42a168ef9fc5f8d3131854f
2018-06-20 13:47:14 +03:00
Leo Yuriev
9db090087e mdbx: reformat by clang-format 6.0 (cosmetic). 2018-06-18 21:29:12 +03:00
Leo Yuriev
b0550b38b8 mdbx-test: fix args quoting for Windows. 2018-06-18 18:17:13 +03:00
Leo Yuriev
3a42b76fb8 mdbx-tests: fix entropy_ticks() for multiarch. 2018-03-22 20:38:18 +03:00
Leo Yuriev
3d320253cd mdbx-tests: drop duplicate sysdep-includes. 2018-03-21 22:19:17 +03:00
Leo Yuriev
86274513f9 mdbx: more __has_include(). 2018-03-21 22:19:17 +03:00
Leo Yuriev
62ae928b40 mdbx: add neutral __ia32__ and __amd64__ marcos. 2018-03-21 22:18:57 +03:00
Leo Yuriev
8d748a845b mdbx-tests: fix default value for inject_writefaultn. 2018-03-19 21:26:14 +03:00
Leo Yuriev
5872174db6 mdbx-tests: refine temp-dir for unix. 2018-03-19 21:01:05 +03:00
Leo Yuriev
52283d8c44 mdbx-tests: unify testdb name. 2018-03-19 20:50:30 +03:00
Leo Yuriev
838856f688 mdbx-tests: add osal_tempdir(). 2018-03-19 20:50:30 +03:00
Leo Yuriev
0aa07cc09b mdbx-tests: drop unused tableid variable (minor). 2018-03-19 20:20:47 +03:00
Leo Yuriev
9ccd551ebc mdbx-tests: minor refine log-levels. 2018-03-19 18:08:45 +03:00
Leo Yuriev
d63c2484fe mdbx-tests: add --inject-writefault=N option. 2018-03-19 18:08:45 +03:00
Leo Yuriev
638ed91e3e mdbx-tests: add log_flush(). 2018-03-19 16:51:10 +03:00
Leo Yuriev
158ec27848 mdbx-test: support for Elbrus.
Change-Id: Iefded3bbffc6c93db0a78cef409f2ad10782c59b
2018-03-07 14:02:22 +03:00
Leo Yuriev
a93fafceff mdbx: strip utf8-bom for Elbrus (minor).
Change-Id: I9030abe267c4abfa2c5c2deb439c0b8025b83047
2018-03-07 12:09:43 +03:00
Leo Yuriev
72557af2b5 mdbx: HNY!
Change-Id: I2a91b986964d96bb3e5f848e3c17408bd7745866
2018-02-04 13:10:54 +03:00
Leo Yuriev
cfd5ba357f mdbx-build: move pcrf_test.
Change-Id: I2d8a63c967651a7a8e72548f26b9aa54c2bb7233
2018-01-14 22:53:43 +03:00
Vladimir Romanov
4ed8eddf42 Improve cmake support. Add rpm generation 2018-01-07 15:10:06 +03:00
Vladimir Romanov
18a261a6dd Add CMake support 2018-01-04 09:27:09 +03:00
Leo Yuriev
aec2445161 mdbx: rework '_noop' and related macros.
Change-Id: Ic9ff3662a6abeb64aa0816e448007dd524794b1e
2017-10-29 02:12:05 +03:00
Leo Yuriev
db4ab61a0c mdbx: drop '__packed'.
Change-Id: Idf3e510733adb2b12b94fe1dcd22f76e02df955b
2017-10-29 00:59:11 +03:00
Leo Yuriev
6f6b360aba mdbx: add/fix 'fallthrough' for GCC 7.x
Change-Id: I45c57ea910978aaa857086d7794ad92ba0ae7157
2017-10-28 11:45:04 +03:00
Leo Yuriev
32c5c3b761 mdbx-tests: refine after last pull-request.
Refine after 4e40af60e7 (Merge pull request #20 from rouzier/feature/txn_try).
2017-10-26 21:49:38 +03:00
Leo Yuriev
17b8e48bf4 mdbx: cleanup after last pull-request.
Cleanup after 4e40af60e7 (Merge pull request #20 from rouzier/feature/txn_try).
2017-10-26 21:49:38 +03:00
James Rouzier
0d81f2244c Add try.cc to compile for windows 2017-10-25 21:01:19 -04:00
James Rouzier
088e811da4 Add test case for txn try 2017-10-25 20:56:12 -04:00
James Rouzier
2f1f4b19a0 Update test to accept flags instead of a bool 2017-10-25 19:54:43 -04:00
Leo Yuriev
d634336e1f mdbx-test: fix snprintf/vsnprintf redefinition for MSVC.
Change-Id: I4be3a4f71782d395035ff4d5b9e3a1af9ee70bb9
2017-07-26 19:43:22 +03:00
Leonid Yuriev
a78edd314e mdbx: more fix MSVC '/Wall' warnings.
Change-Id: I359a3056d6bb5db762fe6b6b8a89e8ed066f8a87
2017-07-26 16:02:49 +03:00
Leo Yuriev
70d54f6f2c mdbx-msvc: refine IntDir/OutDir for msbuild projects. 2017-07-12 02:21:50 +03:00
Leo Yuriev
0167694457 mdbx: building mdbx-tools for Windows.
Change-Id: I9019c4382b7108ec7c442d2b0d4be044a3cb136a
2017-07-12 02:20:47 +03:00
Leo Yuriev
0047ce4bd6 mdbx: add default AddressSanitizer options.
Change-Id: I99b7aee5010f1d43008b2a61efe3fb9bb023ab31
2017-07-07 00:02:56 +03:00
Leonid Yuriev
e3fcc4754e mdbx-test: fix warnings from MSVC 2013. 2017-07-05 23:08:45 +03:00
Leo Yuriev
e4a8a144b6 test: fix minor defects (coverity).
Change-Id: I87165ca771a717815a2c81c36fcf1e9add2536bb
2017-07-04 13:21:16 +03:00
Leo Yuriev
66f8327642 test: allow null as 'function name' for logging (coverity).
Change-Id: I047a4c372514e85d19dd3d3719f8ad3be046171e
2017-07-04 13:21:16 +03:00
Leo Yuriev
136e98fb93 test: fix initialization 'signalled' field (coverity).
Change-Id: Ie6dae6c419bd81f203968bf07f2cf472ea7344a5
2017-07-04 13:21:16 +03:00
Leo Yuriev
283eb0aff0 test: add 'volatile' to rdtsc() and friends (fix for modern clang).
Change-Id: I82d531f66b1aa44c173485d1955611ed46767998
2017-07-03 05:11:52 +03:00
Leonid Yuriev
5dd68f70fa mdbx: use /W4 (level4 for warnings) and /WX (treat warnings as errors).
Change-Id: I04872c15c295c67eccb0d6379447aab7ac7ca163
2017-07-03 04:43:00 +03:00
Leonid Yuriev
3e6a672286 mdbx: fix MSVC warnings, add uint16-range-asserts.
Change-Id: Ie67a728035eeae250efbf962270b5c17c974db23
2017-07-03 04:41:00 +03:00
Leonid Yuriev
28ba127db2 test: typo fix. 2017-06-21 01:42:41 +03:00
Leo Yuriev
71e2fe3df0 mdbx: add MDBX_DBG_DUMP for mdbx_setup_debug().
So, meta-pages and lck-section now will be included into a coredump.
2017-06-15 13:45:16 +03:00
Leonid Yuriev
318646794e mdbx: partial fix MSVC level-4 warnings. 2017-06-06 04:15:08 +03:00
Leonid Yuriev
90b30e7584 mdbx: level-4 warnings for debug-build. 2017-06-06 04:15:08 +03:00
Leonid Yuriev
bfa6dea784 mdbx: fix size_t/unsigned/int warnings.
Change-Id: Ic5a8684aed232b8b732d6e7a87a6757f3f7afcec
2017-06-06 04:15:08 +03:00
Leonid Yuriev
e7ee0bc762 mdbx: refine testing-jitter, add MDBX_DBG_JITTER.
Change-Id: Ibc3bd8a16626e97aabc2cc544a3803f2e2bc3a10
2017-06-06 04:15:08 +03:00
Leo Yuriev
9318e4cabb test: fix oom_callback() nasty bug. 2017-05-28 17:06:04 +03:00
Leo Yuriev
77f0e5e38e mdbx: drop unused debug features. 2017-05-28 17:06:04 +03:00
Leo Yuriev
89b5b53193 test: refine oom-callback. 2017-05-25 12:12:27 +03:00
Leo Yuriev
aa9aa79e11 test: fix oom_callback(). 2017-05-24 19:23:10 +03:00
Leo Yuriev
af7b468e63 mdbx: use uint64_t or size_t insted of off_t (buggy on Windows). 2017-05-24 18:50:24 +03:00
Leo Yuriev
924e81ed92 mdbx: refine includes, drop midl.h and mdbx_osal.h 2017-05-24 17:05:59 +03:00
Leo Yuriev
8af6291d50 test: set default db-size to 4M. 2017-05-24 02:46:51 +03:00
Leo Yuriev
38deb14ee4 test: fix STDERR_FILENO for MSVC. 2017-05-24 02:43:43 +03:00
Leo Yuriev
a6c8c1ad08 test: add simple progress indicator. 2017-05-24 02:31:11 +03:00
Leo Yuriev
06de7a5155 mdbx: rename the rest MDBX_xyz. 2017-05-24 02:24:38 +03:00
Leo Yuriev
3fa09a9937 test: setup oom-callback for retry. 2017-05-23 22:22:48 +03:00
Leo Yuriev
8c18622592 mdbx: rework MDBX_val. 2017-05-23 22:18:21 +03:00
Leo Yuriev
ac8e987346 mdbx: rework MDBX_txn. 2017-05-23 22:18:21 +03:00
Leo Yuriev
aa80ef7e71 test: add hill testcase. 2017-05-23 22:18:20 +03:00
Leo Yuriev
1431e3e5bf test: fix logging for stupid MSVC. 2017-05-18 16:02:29 +03:00
Leo Yuriev
ec114d06b7 test: add log_extra(). 2017-05-18 15:57:06 +03:00
Leo Yuriev
bfa3e864b6 test: fix logging va_copy() bug. 2017-05-18 04:30:10 +03:00
Leo Yuriev
29f01cf3f4 mdbx: use PRIuPTR/PRIiPTR/PRIxPTR instead of %z. 2017-05-10 19:16:23 +03:00
Leo Yuriev
150f2c0afc test: log error into stdout too. 2017-04-27 17:51:11 +03:00
Leonid Yuriev
d5b5434fa6 test: reduce short jitter-delay to 1ms.
Change-Id: I0fac7518dd23d7345c3344e5d5883661a7cbce19
2017-04-27 01:37:42 +03:00
Leo Yuriev
953c6962ea test: minor typo fix. 2017-04-26 19:11:34 +03:00
Leo Yuriev
9a2806c6a8 test: add failfast option. 2017-04-25 20:02:28 +03:00
Leo Yuriev
99abf56c6c test: fix now_realtime() for Windows. 2017-04-25 16:09:02 +03:00
Leo Yuriev
925064aa11 test: add us-timestamp to logs. 2017-04-25 16:08:33 +03:00
Leonid Yuriev
e7e8e1c59a test: refine reciprocal division (chrono). 2017-04-25 13:48:08 +03:00
Leo Yuriev
993730d2f1 mdbx: more cleanup for Windows. 2017-04-24 21:14:36 +03:00
Leo Yuriev
32937ac63b test: canary fetch/update for jitter testcase.
Change-Id: I8402328f880addb1170e8e778b64aa4f12d18718
2017-04-23 19:16:22 +03:00
Leo Yuriev
11ac6a02ff mdbx: rework posix-lck.
Change-Id: Icdd61731424b0d591fd28da0468b9623d079c94a
2017-04-23 19:16:22 +03:00
Leo Yuriev
a0f1d61a4a test: fixup for Windows.
Change-Id: I13468caf53988d9599235d1423603146abf9eb46
2017-04-23 19:16:22 +03:00
Leo Yuriev
c4846c8141 test: failfast option.
Change-Id: I42d1bdb9c20c9b96cfa41304bd025b09fab20518
2017-04-23 19:16:22 +03:00
Leo Yuriev
f3e31a74ee test: jitter testcase (squashed major refine). 2017-04-23 19:16:21 +03:00
Leo Yuriev
101e015d2c test: more for logging. 2017-04-23 19:16:21 +03:00
Leo Yuriev
2523170806 test: add rnd and delay tools. 2017-04-23 19:16:21 +03:00
Leo Yuriev
8b42b8bfd4 test: add chrono. 2017-04-11 19:09:08 +03:00
Leo Yuriev
2a80ad67fb test: refine logging. 2017-04-11 19:09:02 +03:00
Leo Yuriev
38a6781321 test: setup debug-loger for libmdbx.
Change-Id: I7235bd9457773cce2d20a371dcca47a5a4a61838
2017-04-11 02:25:03 +03:00
Leo Yuriev
8167a08431 test: use stderr for error only. 2017-04-11 00:26:24 +03:00
Leo Yuriev
4c97997602 test: fix typo in test's skeleton. 2017-04-11 00:26:20 +03:00
Leo Yuriev
2f058bf82b mdbx: fix MSVC dirs (minor). 2017-04-11 00:13:41 +03:00
Leo Yuriev
a3644aa6d0 mdbx: new testset (initial, stub).
Initial stub for https://github.com/ReOpen/libmdbx/issues/8
2017-04-10 23:20:22 +03:00
Leo Yuriev
5c5ef256b3 mdbx: change mdbx_dkey(). 2017-03-31 17:04:45 +03:00
Leo Yuriev
7d351f74c4 mdbx: rename mdbx_stat() to mdbx_dbi_stat(). 2017-03-29 18:52:55 +03:00
Leo Yuriev
e9ea16a54e mdbx: adds test7 by Klaus Malorny <klaus.malorny@knipp.de> 2017-03-29 00:53:39 +03:00
Leo Yuriev
0f49ed6e53 mdbx: big-bang (initial).
- OS Abstraction Layer;
 - Windows Support.
 - preparation for more changes.

Change-Id: I53772eda9091ba361cbc9a28656190ea0d4c5cee
2017-03-29 00:53:39 +03:00
Leo Yuriev
95e606606a mdbx: subdirs.
Change-Id: Iea70b29ed39f55ee363729300f6ce54127b4e880
2017-03-16 18:04:56 +03:00