Joe Thornber
|
6b5a5f265d
|
[btree_damage_visitor_t] pass a path to expect_damage.
|
2013-05-17 17:03:57 +01:00 |
|
Joe Thornber
|
50de448f2a
|
[btree_damage_visitor_t] node_info << operator
|
2013-05-17 16:51:38 +01:00 |
|
Joe Thornber
|
d3fa4102c2
|
[btree_damage_visitor] pass the btree_path to both the damage and value visitors.
|
2013-05-17 12:05:13 +01:00 |
|
Joe Thornber
|
30c9e0a005
|
[btree_damage_visitor_t] Store the btree path in the node_info rather than the level.
|
2013-05-17 11:53:16 +01:00 |
|
Joe Thornber
|
93ba17a3f4
|
[btree_damage_tests] << operator for thing.
|
2013-05-17 11:48:02 +01:00 |
|
Joe Thornber
|
38dcde0c37
|
[btree_damage_visitor] Introduce a DamagedKeys matcher in the tests.
|
2013-05-17 11:42:55 +01:00 |
|
Joe Thornber
|
08b2749191
|
Remove level from btree_details::damage
|
2013-05-17 11:35:46 +01:00 |
|
Joe Thornber
|
f016161e9a
|
[btree_damage_visitor] Hide this behind a utility function btree_visit_values().
|
2013-05-17 11:29:34 +01:00 |
|
Joe Thornber
|
49da293be9
|
[test-utils] Make a template for outputting any optional.
|
2013-05-17 10:54:45 +01:00 |
|
Joe Thornber
|
b0d1fa0851
|
Sanitise btree_detail::node_location
|
2013-05-15 13:37:30 +01:00 |
|
Joe Thornber
|
35cf5cbb73
|
BTreeDamageVisitorTests
|
2013-05-15 13:36:56 +01:00 |
|
Joe Thornber
|
684746738f
|
BTreeDamageVisitorTests
|
2013-05-14 15:38:20 +01:00 |
|
Joe Thornber
|
224ef1f429
|
switch to -std=c++11
|
2013-05-14 15:37:57 +01:00 |
|
Joe Thornber
|
730a82f974
|
BTreeDamageVisitorTests
|
2013-05-14 13:07:04 +01:00 |
|
Joe Thornber
|
7d49496c3b
|
BTreeDamageVisitorTests
|
2013-05-14 11:27:55 +01:00 |
|
Joe Thornber
|
7e8e483626
|
More BTreeDamageVisitorTests
|
2013-05-14 11:01:39 +01:00 |
|
Joe Thornber
|
cb45c66347
|
More work on BTreeDamageVisitorTests
|
2013-05-14 10:32:28 +01:00 |
|
Joe Thornber
|
779f9e7cb4
|
More tidying of the BTreeDamageVisitorTests
|
2013-05-13 16:26:16 +01:00 |
|
Joe Thornber
|
4d2c3a7c14
|
A couple more tests for BTreeDamageVisitorTests
|
2013-05-13 14:09:18 +01:00 |
|
Joe Thornber
|
185f0fc758
|
Some refactoring of the BTreeDamageVisitorTests
|
2013-05-13 13:40:20 +01:00 |
|
Joe Thornber
|
01f1117ea4
|
BTreeDamageVisitorTests.visiting_a_populated_tree_with_a_sequence_of_damaged_leaf_nodes
|
2013-05-13 12:48:03 +01:00 |
|
Joe Thornber
|
88c63f620f
|
Lots of work on the btree_damage_visitor
|
2013-05-13 12:36:57 +01:00 |
|
Joe Thornber
|
08c5fde04f
|
btree_damage_tracker
|
2013-05-13 11:27:38 +01:00 |
|
Joe Thornber
|
8ecf2f27ed
|
btree_damage_visitor stuff.
|
2013-05-09 13:31:04 +01:00 |
|
Joe Thornber
|
ab66e9f8e3
|
Some more work on btree_damage_visitor
|
2013-05-08 16:38:38 +01:00 |
|
Joe Thornber
|
23ef3b387d
|
Start btree_damage_visitor.
|
2013-05-08 12:00:24 +01:00 |
|
Joe Thornber
|
f6acd473a7
|
Move with_directory and with_temporary_directory to test_utils.
|
2013-05-08 11:47:15 +01:00 |
|
Joe Thornber
|
1e14e1cd10
|
[metadata_checker_t] fix silly allocation bug in the devices_visitor.
|
2013-05-07 14:29:54 +01:00 |
|
Joe Thornber
|
5a231a7db0
|
[metadata_checker_t] add damage_should_include() method.
|
2013-05-02 12:51:55 +01:00 |
|
Joe Thornber
|
c976fc3d6c
|
[metadata_checker_t] Make device_checker a member of DeviceCheckerTests
|
2013-05-02 12:43:16 +01:00 |
|
Joe Thornber
|
a828cde96d
|
[btree] visitor now passed as a reference rather than shared_ptr
|
2013-05-02 12:31:33 +01:00 |
|
Joe Thornber
|
5913de5e38
|
[metadata_checker_t] check the range for missing_devices_damage.
|
2013-05-02 12:22:54 +01:00 |
|
Joe Thornber
|
008a4d495c
|
[metadata_checker_t] Some more work on the devices_visitor.
|
2013-05-02 12:04:05 +01:00 |
|
Joe Thornber
|
3832fd5952
|
More work on metadata_checker_t
|
2013-05-01 16:33:42 +01:00 |
|
Joe Thornber
|
647cb68b76
|
Some test utils
|
2013-05-01 16:33:24 +01:00 |
|
Joe Thornber
|
5d0b23beea
|
Some btree visitor tidying.
Introduce node_location to replace the long list of parameters. Also
add a depth field to keep track of the depth from root.
|
2013-05-01 16:16:23 +01:00 |
|
Joe Thornber
|
1884233a2b
|
DeviceCheckerTests.passes_with_valid_metadata_containing_some_devices
|
2013-04-29 16:35:03 +01:00 |
|
Joe Thornber
|
c782da7a34
|
Use a mock of the metadata_damage_visitor to confirm the type off damage reported from the device_checker.
|
2013-04-29 16:13:18 +01:00 |
|
Joe Thornber
|
969a5f62c6
|
Working on device_checker
|
2013-04-29 15:37:53 +01:00 |
|
Joe Thornber
|
1a8b1b29e8
|
Start device_checker
|
2013-04-29 13:24:19 +01:00 |
|
Joe Thornber
|
925dbdbc53
|
[block_t] verify any exception thrown by validator->check() gets passed up, and the lock is not consequently taken.
|
2013-04-29 12:32:04 +01:00 |
|
Joe Thornber
|
a0f53f47aa
|
[block_t] a superblock_zero test was mistakenly calling plain write_lock.
|
2013-04-29 12:05:55 +01:00 |
|
Joe Thornber
|
1fe0df9f1a
|
[block_t] make sure validator->check isn't called unexpectedly.
|
2013-04-29 12:03:47 +01:00 |
|
Joe Thornber
|
441cba7185
|
Small work on metadata_checker tests.
|
2013-04-26 15:55:45 +01:00 |
|
Joe Thornber
|
b1e0ca2207
|
[block] make sure we can change validators
|
2013-04-26 15:54:15 +01:00 |
|
Joe Thornber
|
a55f6fcf78
|
A stack of thin_check refactorings
|
2013-04-25 16:27:07 +01:00 |
|
Joe Thornber
|
e0230c5c55
|
Fix broken dependencies for .gmo files
|
2013-04-22 13:50:40 +01:00 |
|
Joe Thornber
|
4cb19a06ba
|
Pull subtracting_span_iterator out into separate file + test.
|
2013-04-22 13:41:34 +01:00 |
|
Joe Thornber
|
bf75b5c827
|
Add a space map unit test that creates a metadata sm and a disk sm
|
2013-04-11 14:01:54 +01:00 |
|
Joe Thornber
|
dde775ef52
|
thin_metadata_t now reproduces the recursive new_block() error.
|
2013-04-11 13:41:43 +01:00 |
|
Joe Thornber
|
7d3ab79789
|
some build updates
|
2013-03-25 12:56:03 +00:00 |
|
Joe Thornber
|
be7801f111
|
some __le -> le issues
|
2013-03-22 15:48:43 +00:00 |
|
Joe Thornber
|
a7081a4789
|
Some build updates
|
2013-03-22 15:41:13 +00:00 |
|
Joe Thornber
|
e794079cf7
|
unit-test makefile
|
2013-03-22 15:26:18 +00:00 |
|
Joe Thornber
|
f2a388dbab
|
transaction_t -> gmock
|
2013-03-22 15:19:40 +00:00 |
|
Joe Thornber
|
2ec15f74b8
|
space_map_t -> gmock
|
2013-03-22 15:08:52 +00:00 |
|
Joe Thornber
|
a018647d0a
|
btree_t -> gmock
|
2013-03-22 14:57:46 +00:00 |
|
Joe Thornber
|
9c4bfe4cf9
|
endian_t -> gmock
|
2013-03-22 14:53:53 +00:00 |
|
Joe Thornber
|
28128624eb
|
cache_t -> gmock
|
2013-03-22 14:46:43 +00:00 |
|
Joe Thornber
|
9ed0ecabfe
|
block_t to gmock
|
2013-03-22 14:43:15 +00:00 |
|
Joe Thornber
|
0a70c17268
|
Convert bitset_t to gmock
|
2013-03-22 14:36:31 +00:00 |
|
Joe Thornber
|
1e141f83bb
|
Convert array_block_t to gmock
|
2013-03-22 14:13:58 +00:00 |
|
Joe Thornber
|
f9bf18adf6
|
Move array_t to gmock
|
2013-03-22 13:42:20 +00:00 |
|
Joe Thornber
|
50bab1c90a
|
Quieten down the build
|
2013-03-22 12:19:31 +00:00 |
|
Joe Thornber
|
edb33dce4c
|
Put build dependencies in for gmock
|
2013-03-22 12:10:51 +00:00 |
|
Joe Thornber
|
c044c2c729
|
Convert buffer_t to gmock.
|
2013-03-22 12:04:38 +00:00 |
|
Joe Thornber
|
e3375443eb
|
gmock stub
|
2013-03-22 10:55:55 +00:00 |
|
Joe Thornber
|
12dff31358
|
bitset
|
2013-03-14 13:13:18 +00:00 |
|
Joe Thornber
|
add23c1709
|
Array data structure
|
2013-03-13 13:28:03 +00:00 |
|
Joe Thornber
|
3c54e2b23a
|
Updates to array_block
|
2013-03-13 12:59:11 +00:00 |
|
Joe Thornber
|
5aaa710b53
|
[data-structures] array_block
|
2013-02-01 12:00:49 +00:00 |
|
Joe Thornber
|
0f3a9cc567
|
Merge remote-tracking branch 'github-heinz/Work' into heinz
Conflicts:
unit-tests/buffer_t.cc
|
2013-01-29 11:40:56 +00:00 |
|
Joe Thornber
|
7a6d09866a
|
[array] add array_t
|
2013-01-29 11:35:37 +00:00 |
|
Heinz Mauelshagen
|
1b49f95c0c
|
Introduce COMPILE_TIME_ERROR conditionals around tests failing at compile time
|
2013-01-23 15:08:05 +01:00 |
|
Heinz Mauelshagen
|
dc06c88758
|
Joe's BOOST_STATIC_ASSERT addition
|
2013-01-23 14:39:42 +01:00 |
|
Joe Thornber
|
aa12870c22
|
[buffer.h] add static test for alignment
|
2013-01-23 13:32:33 +00:00 |
|
Heinz Mauelshagen
|
ca7de05e62
|
buffer_t.cc: more tests
|
2013-01-23 14:32:03 +01:00 |
|
Joe Thornber
|
c2ab5390cb
|
buffer_t const assignment fails
|
2013-01-23 13:12:17 +00:00 |
|
Heinz Mauelshagen
|
0f5fc39694
|
buffer_t.cc
|
2013-01-23 14:04:34 +01:00 |
|
Heinz Mauelshagen
|
635eb6949a
|
buffer_t.cc
|
2013-01-23 13:47:58 +01:00 |
|
Heinz Mauelshagen
|
eed2dfdc38
|
buffer_t.cc: more tests
|
2013-01-23 13:28:00 +01:00 |
|
Joe Thornber
|
67cd406fe9
|
[transaction_manager_t] remove some duplication
|
2013-01-22 09:59:06 +00:00 |
|
Joe Thornber
|
23b48f0c54
|
[unit-tests] Update block_manager constructors to use the block_io<>::mode param.
|
2013-01-15 05:31:48 +00:00 |
|
Joe Thornber
|
2aff80ea78
|
[block_t] remove the test.data file before each test.
|
2013-01-15 04:07:47 +00:00 |
|
Joe Thornber
|
cfdc233fa4
|
[block_t] All block managers are created in create_bm.
|
2013-01-15 03:43:21 +00:00 |
|
Joe Thornber
|
fb1ad01e19
|
Add a CREATE mode to the block_io class.
|
2013-01-15 03:23:55 +00:00 |
|
Joe Thornber
|
aacca8d963
|
Introduce persistent-data/data-structures/
|
2013-01-11 19:26:51 +00:00 |
|
Joe Thornber
|
af96c22786
|
Fix a transaction manager test
|
2013-01-10 22:11:59 +00:00 |
|
Joe Thornber
|
ace95d434e
|
whitespace
|
2013-01-10 21:38:58 +00:00 |
|
Joe Thornber
|
326fd3408b
|
move space maps to their own sub directory
|
2013-01-10 21:36:38 +00:00 |
|
Joe Thornber
|
6a4facf03b
|
test the recursive space map
|
2013-01-10 21:12:37 +00:00 |
|
Joe Thornber
|
186b0aa6c1
|
Change the signature of the space_map->new_block() method, introducing
a span_iterator abstraction.
Rename sm_transactional -> sm_careful_alloc. Still not happy with the name.
Fix failing test.
|
2013-01-10 21:05:10 +00:00 |
|
Joe Thornber
|
3d9f91eee2
|
Test space_map_transactional
|
2013-01-10 12:15:50 +00:00 |
|
Joe Thornber
|
4ea3476c97
|
rename space_map_disk_t -> space_map_t
|
2013-01-10 11:26:29 +00:00 |
|
Joe Thornber
|
44316c5741
|
Test space_map_core.
|
2013-01-10 11:21:07 +00:00 |
|
Joe Thornber
|
9933506a15
|
remove space_map_t
|
2013-01-10 11:12:36 +00:00 |
|
Joe Thornber
|
3e39e8bfeb
|
A big raft of changes to the unit-tests
|
2013-01-09 20:24:11 +00:00 |
|
Joe Thornber
|
ab7124e441
|
block_t and cache_t fully operational again.
|
2013-01-07 16:39:02 +00:00 |
|
Heinz Mauelshagen
|
4dcab4b24c
|
unit-tests/Makefile.in
|
2011-12-21 12:30:50 +01:00 |
|
Heinz Mauelshagen
|
f7c6cabf33
|
Rename unit-tests/Makefile.in.in to unit-tests/Makefile.in
|
2011-12-21 11:08:37 +01:00 |
|