Commit Graph

231 Commits

Author SHA1 Message Date
Leonid Yuriev
5a87faf9af mdbx-build: start using CMake (incomplete; no properly installation for now). 2019-09-03 02:33:57 +03:00
Leonid Yuriev
f81374a9ce mdbx-build: amalgamation.
Change-Id: Ic32de6ee119df2bc12136b882f4f7cabaa1314a9
2019-09-03 02:30:55 +03:00
Leonid Yuriev
137d652d77 mdbx: refine attribute-based macros. 2019-08-25 04:37:15 +03:00
Leonid Yuriev
351939dd5d mdbx-test: reduce number of test-iteration for MacOS.
Change-Id: Ic9df6a9ce66ee2cc165e2525953eee998e653932
2019-08-19 16:43:41 +03:00
Leonid Yuriev
32a5b9089b mdbx-test: extend darwin-pthread-barrier for multiprocess-shared. 2019-08-13 02:44:45 +03:00
Leonid Yuriev
3f64d45819 mdbx-test: initial OSX support. 2019-08-13 02:16:15 +03:00
Leonid Yuriev
054a88c502 mdbx-test: add darwin-pthread-barrier.
Import from https://github.com/ademakov/DarwinPthreadBarrier with minor changes.
2019-08-13 02:10:03 +03:00
Leonid Yuriev
1e3637af59 mdbx-test: refine long_stochastic-script for FreeBSD compatibility.
Change-Id: I411b628d9381a54bebbea33a2bfde3145bdba74b
2019-08-10 23:24:31 +03:00
Leonid Yuriev
6eebac1510 mdbx: portability - drop unused mul_64x64_128().
Change-Id: I034778dd99242eae92e9122156639ba7329638de
2019-07-14 15:25:10 +03:00
Leonid Yuriev
814f8fe7ab mdbx-test: portability - undefine BSD's roundup2() macro.
Change-Id: Ib7aa43645cabba648ed6a43bfb26a7cc365d7feb
2019-07-14 15:23:38 +03:00
Leonid Yuriev
fac0c4c5c0 mdbx-test: portability - define bswap() macros conditionally.
Change-Id: I44d7daf71bd4dd66f8821af926f0c26578624e92
2019-07-14 15:21:47 +03:00
Leonid Yuriev
ae34255350 mdbx-test: adds check for prerequisites to long_stochastic.sh
Change-Id: I1c671ce46140a41c33c6cb69b2444dc98c754929
2019-07-12 21:27:34 +03:00
Leonid Yuriev
9dc0b6a3f3 mdbx-test: partialy revert long_stochastic.sh changes.
Change-Id: I1fd4d601a91b50e82bbf8f183c968d31d671957e
2019-07-09 14:31:27 +03:00
Leonid Yuriev
421f4b01e6 mdbx-test: refine internals (delays, logging).
Change-Id: Ife19e3bc1b124629891ba03fd9e1bf3b2ad3e301
2019-07-09 01:39:32 +03:00
Leonid Yuriev
06f16464aa mdbx-test: adds more jitter while DB opening.
Change-Id: Ic0f03f4fbe064ea00f719baa11b28cc24aafcb5b
2019-07-07 21:21:54 +03:00
Leonid Yuriev
30ac62ceec mdbx-test: add coredump status.
Change-Id: I9003a891744eb78d91a3e279e20efcb4c1ad736c
2019-07-07 02:33:39 +03:00
Leonid Yuriev
6d4e151ba8 mdbx-test: fix comment typo (minor).
Change-Id: I7bd25ccfc52371c78f9011ccd45203e44e619142
2019-07-02 00:21:51 +03:00
Leonid Yuriev
08c334c8bc mdbx-test: limit DB-size 3Gb for long_stochastic.
Change-Id: I52bc6cd4aea7a41d5b1bdabc2c8e4bd6e34a78a9
2019-06-27 10:53:35 +03:00
Leonid Yuriev
aaf49bb816 mdbx-test: don't fail on key-space overflow.
Change-Id: I22a8cb359849c4c02cd393047cb7ea33974607fd
2019-06-27 10:40:00 +03:00
Leonid Yuriev
fa3adb759a mdbx-test: reduce upper txn-volume inside long_stochastic. 2019-06-26 10:11:24 +03:00
Leonid Yuriev
834f6d0784 mdbx-test: fix iteration count.
Change-Id: Iaf19af417e54ee4ad968722c94d377dab29be149
2019-06-25 15:48:03 +03:00
Leonid Yuriev
41d8f65e1e mdbx-test: biggest case depending on the DB size inside long_stochastic.
Change-Id: Ia8c09dd6b4240d76de1356aa1eecaa884636086a
2019-06-25 14:26:57 +03:00
Leonid Yuriev
c9c985ae5d mdbx-test: more for --ignore-dbfull option.
Change-Id: I92c284edd889455eefefec12d3315b6f5d37cdc5
2019-06-24 02:55:26 +03:00
Leonid Yuriev
da99dcdb87 mdbx-test: long_stochastic.
Change-Id: I28248a8af9041dfa62388a3b4ded7e2a4fdc07a9
2019-06-24 02:14:50 +03:00
Leonid Yuriev
f627b33379 mdbx-test: fix dbsize-options handling.
Change-Id: Ia51f802ac1ad4e8b1b059a3f3b38214bda6b43fc
2019-06-24 02:14:50 +03:00
Leonid Yuriev
2d5a3ebd8f mdbx-test: add --ignore-dbfull option (major).
Change-Id: I252f9c3679a371722a780913ba994ca3dee9b90a
2019-06-24 02:14:50 +03:00
Leonid Yuriev
15403aadad mdbx-test: re-seed keygen over iterations.
Change-Id: I2cfd635fc46c808dd8431217b75a30780e0c3958
2019-06-22 22:23:17 +03:00
Leonid Yuriev
e6ad443178 mdbx-test: refine 'ttl' testcase.
Change-Id: Ic4d759cfa29496bd46fa50fef1e974847b52bb41
2019-06-22 13:16:54 +03:00
Leonid Yuriev
243b01dd63 mdbx-test: refine 'append' testcast (minor).
Change-Id: I79ea16046713a085e62e01eeb0978fc4e6766750
2019-06-22 13:16:54 +03:00
Leonid Yuriev
3fc610f860 mdbx-test: use common keygen-seed for ttl testcase.
Change-Id: I921fff0ee28df8a18b6a38801c275de3fa2563ab
2019-06-22 13:16:54 +03:00
Leonid Yuriev
bfa9fc25d6 mdbx-test: 5-repeats inside gc-test script. 2019-06-22 13:16:54 +03:00
Leonid Yuriev
2219802bca mdbx-test: more for ttl testcase.
Change-Id: I8a01963345a2e815ebb39a98939420b8edb53968
2019-06-22 02:00:52 +03:00
Leonid Yuriev
9cf9d6eac2 mdbx-test: add ttl testcase.
Change-Id: Ia5d164fde250e959226a53c63fcaf024ffe965a2
2019-06-22 00:53:52 +03:00
Leonid Yuriev
86cfd86cda mdbx-test: support for repeat parameter.
Change-Id: I6de52cd21314935c123ac51537e1b893c39dd5ed
2019-06-20 02:41:22 +03:00
Leonid Yuriev
0639f54280 mdbx-test: add 'append' testcase.
Change-Id: I71620ea1a019e16b8e3d84a81dcc042961eae5b5
2019-02-04 01:41:11 +03:00
Leo Yuriev
9cc9116df3 mdbx: 2019 HNY.
Change-Id: Iec6b7affedef0ea89fad917eb17af7e8201a7482
2019-02-03 12:28:01 +03:00
Leonid Yuriev
f778f4a795 mdbx: add MDBX_SAFE4QEMU option for testing under QEMU.
Change-Id: Ide674e0125e2746f73a7ba44828316a60633e887
2018-11-26 19:08:30 +03:00
Leonid Yuriev
cbdb10a05c mdbx-test: fix/refine entropy_ticks() for ARM.
Change-Id: I03b10edfcbee33c1b3107a0c1a5714aac61cf12f
2018-11-26 18:52:31 +03:00
Leo Yuriev
73c7742db4 mdbx-test: fix osal_actor_poll() for 32-bit builds.
Change-Id: I36b2f955295d8ca5435a68737c0c2e7f069bfe34
2018-11-05 00:02:48 +03:00
Leonid Yuriev
c3432c158e mdbx-test: add checks for db-copy after the basic testcase.
Change-Id: I5e7d343266c66418a8798d272e697e1c3d5c775b
2018-11-05 00:02:48 +03:00
Leonid Yuriev
24d42c1583 mdbx: add db-copy testcase.
Change-Id: Ib554880ebbabcb5dfc55bdb3c71767d0fa1630fd
2018-11-05 00:02:48 +03:00
Leonid Yuriev
40e3f735ab mdbx-tests: cleanup/simplity code (minor).
Change-Id: I9813ed3a29b331c1f995ce76766709f454bb49c2
2018-11-04 20:34:16 +03:00
Leonid Yuriev
12174187e8 mdbx-tests: add osal_removefile().
Change-Id: Ifdacd1f799e3ed12f6b83bcdef0effbc0c41011c
2018-11-04 20:34:16 +03:00
Leonid Yuriev
96491db229 mdbx-windows: building and linking mdbx_ntdll_extra.lib
15 of 17 for https://github.com/leo-yuriev/libmdbx/issues/43

Change-Id: I6241d08f14dcd59c6c55aa26660bdec233fb3c94
2018-10-14 15:03:17 +03:00
Leonid Yuriev
ace3d1bfa3 mdbx: add mdbx_malloc/mdbx_free, etc.
1 of 17 for https://github.com/leo-yuriev/libmdbx/issues/43

Change-Id: Ia5204be9f943fefde42e6a46e652c1be6ab6a96b
2018-10-14 14:53:40 +03:00
Leonid Yuriev
31810c9957 mdbx-test: drop obsolete failfast cases inside 'gc.sh' script. 2018-09-21 00:18:43 +03:00
Leonid Yuriev
a5cdbda9d8 mdbx-test: store 'log.lz4' on tmpfs. 2018-09-21 00:18:21 +03:00
Leonid Yuriev
b868765ddf mdbx-test: reduce repeats number inside 'gc.sh' script. 2018-09-20 23:39:31 +03:00
Leonid Yuriev
2fc42fab7f mdbx-test: add simple loop.bat for Windows. 2018-09-20 23:39:31 +03:00
Leonid Yuriev
60271687ef mdbx-test: workaround for QueryFullProcessImageNameA() bug.
Change-Id: Icd06d7b15f8bef20a9fb75639a7ab7a298fe0120
2018-09-20 22:47:22 +03:00
Leonid Yuriev
137f443e57 mdbx-test: fix sleep/child-signal handling.
Change-Id: Ibf1ac55b62b5cb3c835a5b1602a204e8eebbd89b
2018-09-17 16:57:26 +03:00
Leonid Yuriev
c6dccdc91a mdbx-test: fix MSVC warnings (minor).
Change-Id: I9c5987bfe6b5df8885a71601ab5f10cc57a7e45e
2018-09-17 16:21:09 +03:00
Leonid Yuriev
844e39ebef mdbx-test: seeding keygen with actor_id for better spreading. 2018-09-17 15:25:45 +03:00
Leonid Yuriev
01ae5bad7d mdbx-test: add data-check before delete/update.
Change-Id: I5afc1cbd95b5db0b442714229510d6786bf68d43
2018-09-17 15:25:45 +03:00
Leonid Yuriev
79633ecfd7 mdbx-test: add int-key/int-data cases to 'gc.sh'.
Change-Id: Idb33be532b623b86ed4e3127d9f1fe8abb24cc6f
2018-09-17 15:25:45 +03:00
Leonid Yuriev
a91eef0c0f mdbx-test: cleanup DUPSORT flags.
Change-Id: Id5845e67bf6b4c40fdfdabe937d42911c8b08f1b
2018-09-17 00:18:39 +03:00
Leonid Yuriev
5cc4bec7b7 mdbx-test: avoid extra 'jitter' testcase loops.
Change-Id: I50a3a5a03c0baebee81a90155089eeb44448ff4e
2018-09-17 00:18:39 +03:00
Leonid Yuriev
0a6af9bca0 mdbx-test: switch to 'basic' testcase in 'gc.sh' script.
Change-Id: I2fbd4c5f9d20a4c51af65b0dd67f1182b39ca6ae
2018-09-17 00:17:09 +03:00
Leo Yuriev
6043181636 mdbx-test: workaroung for MSVC bug. 2018-09-14 15:26:31 +03:00
Leo Yuriev
bf29182eda mdbx-ci: rename 'test.exe' to 'mdbx_test.exe'. 2018-09-14 14:15:42 +03:00
Leo Yuriev
f25c20693f mdbx-test: check commandline length under Windows. 2018-09-14 14:02:28 +03:00
Leonid Yuriev
859f306c9f mdbx-test: refine gc.sh script. 2018-09-13 19:53:19 +03:00
Leonid Yuriev
82ff482a0a mdbx-test: add setloglevel().
Change-Id: If1262d0a0a76e00e4453e40b62022a5418655391
2018-09-13 19:47:43 +03:00
Leonid Yuriev
438bda3ee3 mdbx-test: fix/refine keygen for non-MDBX_DUPSORT.
Change-Id: I2e3187d5b9c5078cebc1850e6f291718a7b61895
2018-09-13 17:40:55 +03:00
Leonid Yuriev
6be164a45b mdbx-test: default test-db size 4mb or 256mb.
Change-Id: I306cb76f1740422888814687f69fa7766ee4fba6
2018-09-13 17:40:55 +03:00
Leonid Yuriev
3cf6bc0639 mdbx-test: add +/- data-dups passes into gc.sh script.
Change-Id: If5c00da0bb893dccddf2d145bcd6548089984e8d
2018-09-13 17:40:55 +03:00
Leonid Yuriev
6b5d973a31 mdbx-test: alter keygen defaults (rotate 3, offset 41).
Change-Id: I16465eb34acbb499f04cb0436c674c09ad6d50f3
2018-09-13 17:40:55 +03:00
Leonid Yuriev
99934bc845 mdbx-test: fix/refine keygen.
Change-Id: Ib6d8bb5e438314bf09c1c9466456d8c57623711b
2018-09-13 17:19:06 +03:00
Leonid Yuriev
2b305d33a3 mdbx-test: dump keygen params.
Change-Id: Ied04bc85def0fc6a408a14fd2f580969534e7ea1
2018-09-13 17:19:06 +03:00
Leonid Yuriev
5051603c56 mdbx-test: refine key/value min/max handling.
Change-Id: If37e5fc2fe30ce309cb4ff540fe93dd9f87ec87f
2018-09-13 17:19:06 +03:00
Leonid Yuriev
102f57dd15 mdbx-test: 'none' for config-verbs.
Change-Id: I1a3b5a6757ee193027f06cef1e1ff0cc609ad3f4
2018-09-13 17:19:06 +03:00
Leonid Yuriev
f4cd7b5418 mdbx-test: fix update_flags for non-MDBX_DUPSORT. 2018-09-13 17:19:06 +03:00
Leonid Yuriev
0ecc5226d6 mdbx-test: alter min/max for key/data length.
Change-Id: I863145b8567a2e3952826b68c7bef07787081bb6
2018-09-13 17:19:06 +03:00
Leonid Yuriev
96bdf6559e mdbx-test: fix key/value generation for long-length cases.
Change-Id: I643bca291948bf7659c77fffa31408c3794785e6
2018-09-13 17:19:06 +03:00
Leonid Yuriev
2791224542 mdbx-test: fix int-types for 32-bit builds (minor).
Change-Id: Ib1ffe0633cf461e7881fe43953528688fe7abce0
2018-08-22 16:19:42 +03:00
Leonid Yuriev
3727a2a099 mdbx-test: fix mdbx_env_set_geometry() swapped arguments (Coverity).
Change-Id: I80583f273658ca5220ca686593079b9ffcf45c57
2018-08-22 01:28:58 +03:00
Leonid Yuriev
490addef18 mdbx-test: update GC-test script.
Change-Id: Id55f69439b0632f5992af99e70eac5ecb6af0dcc
2018-08-22 01:09:16 +03:00
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