Commit Graph

161 Commits

Author SHA1 Message Date
Joe Thornber
1172b2f450 [functional-tests] with-temp-file-sized now takes *either* bytes or a disk-size object 2018-04-18 15:12:28 +01:00
Joe Thornber
cf9ab80f86 [functional-tests] Fix (thin metadata)
It was using the old, spine based interface for btree-each
2018-01-25 16:11:43 +00:00
Joe Thornber
2fd6723712 [functional-tests/block-manager] wrap the C ptr
So we get some extra error checking.
2018-01-25 15:48:56 +00:00
Joe Thornber
1122b9a423 [functional-tests] Code up an equivalent of get_opt_long() 2018-01-25 15:46:27 +00:00
Joe Thornber
54c03f10e6 Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2018-01-08 10:52:32 +00:00
Joe Thornber
2aa6c05c4b [functional-tests] simplify (thin create devices-in-reverse-order) 2017-12-20 09:01:46 +00:00
Joe Thornber
0d4fdcc687 [functional-tests] simplify (thin create devices-in-reverse-order) 2017-12-20 08:31:38 +00:00
Joe Thornber
05151c648c [functional-tests] from-to loop macro 2017-12-20 08:31:17 +00:00
Joe Thornber
fa8d691744 [functional-tests] Improve (thin create devices-in-reverse-order) 2017-12-19 17:25:10 +00:00
Joe Thornber
2fe7a884a2 [functional-tests] (thin create devices-in-reverse-order) 2017-12-19 15:44:33 +00:00
Joe Thornber
324d17981a [functional-tests] Get (thin delete recover-space) working 2017-12-18 11:43:33 +00:00
Joe Thornber
0dc237c356 [functional-tests] Move get-dev-size to C code
Saves forking blockdev
2017-12-15 15:35:24 +00:00
Joe Thornber
8d26c3729f [functional-tests] add more padding to the .....'s 2017-12-15 11:29:39 +00:00
Joe Thornber
2614078188 [functional-tests] Improve error message in create-device 2017-12-15 11:18:09 +00:00
Joe Thornber
ee40e4becf [functional-tests] switch map -> for-each in a couple of places 2017-12-15 11:17:26 +00:00
Joe Thornber
19dfed1da9 [functional-tests] Log exceptions properly 2017-12-15 10:21:59 +00:00
Joe Thornber
3c5408e51b [functional tests] (thin create bs-multiple-of-64k-good/bad) 2017-12-14 15:57:27 +00:00
Joe Thornber
4b90bd8edb [functional-tests] ditch define-thin-scenario
It obfuscates more than it saves
2017-12-14 15:12:09 +00:00
Joe Thornber
2db8ecf9e9 [functional-tests] some thin/delete tests 2017-12-14 14:58:16 +00:00
Joe Thornber
93213135ad [functional-tests] finish porting the thin/creation tests 2017-12-12 16:56:55 +00:00
Joe Thornber
bca125d97a [functional-tests] a bunch of thin tests 2017-12-12 15:27:20 +00:00
Joe Thornber
4bb99bf105 [functional-tests] Add math-utils library 2017-12-12 15:23:51 +00:00
Joe Thornber
ddea2c0de7 [functional-tests] thin-calc-ref-counts
This is the start of a tool that will analyse the block manager journal
and spot any cases where we're not crash proof.
2017-11-24 11:21:02 +00:00
Joe Thornber
4726854784 [functional-tests] add FIXME 2017-11-24 11:11:32 +00:00
Joe Thornber
29e92772a9 [functional-tests/btree] btree-walk-and-count + stop using a spine. 2017-11-24 11:10:41 +00:00
Joe Thornber
0569e06e80 [functional-tests] whitespace 2017-11-24 11:04:57 +00:00
Joe Thornber
79c0159108 [dmtest] introduce the segment record. 2017-10-26 13:42:09 +01:00
Joe Thornber
cfddb495fb [dm-tests] define-dm-scenario
Automatically opens the dm interface, and creates an allocator.
2017-10-23 11:22:33 +01:00
Joe Thornber
d74823fd53 [functional-tests] More work on the dm-ioctl bindings. 2017-10-13 14:10:44 +01:00
Joe Thornber
a0e709d370 [functional-tests] Split dmtest off from run-tests 2017-10-11 10:28:10 +01:00
Joe Thornber
74e2506734 [functional-tests] use ../bin in the path for tools, even if they're
failing.
2017-10-10 16:51:31 +01:00
Joe Thornber
7d79a93566 [functional-tests] get the version string from VERSION 2017-10-10 11:44:05 +01:00
Joe Thornber
3a8c42e2d9 [functional-tests] use the tools in bin, rather than those installed on
the system.
2017-10-10 11:37:32 +01:00
Joe Thornber
6bf81aab85 [functional-tests] Don't include the dm tests in the ft suite.
I'll create a separate program for those.
2017-10-10 11:17:54 +01:00
Joe Thornber
997dbcf2ad Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2017-10-10 10:29:53 +01:00
Joe Thornber
b9230d1bbb [functional-tests] roll all the C code into a single libft.so 2017-10-10 10:28:56 +01:00
Joe Thornber
22030bc138 [functional-tests] fix silly library syntax error 2017-10-06 15:51:19 +01:00
Joe Thornber
d9b3133aca [functional-tests] (device-mapper targets) 2017-10-06 15:26:10 +01:00
Joe Thornber
8e2a415bdc [functional-tests] Fix *_check/tiny-input-file 2017-10-05 16:18:42 +01:00
Joe Thornber
817fd9a06c Merge branch 'run-tests-bad-pattern' 2017-10-05 15:08:25 +01:00
Joe Thornber
3eadbaf433 [functional-tests] Fix bug when a pattern matches to tests. 2017-10-05 15:05:22 +01:00
csonto
5b5aa971a0 Detect XML in *_check tools (#86)
* [*_check] Detect XML in cache_check and era_check

This is based on previous commit b10d8d4440.

* [*_check] Fix typo in check_superblock
2017-10-05 13:47:10 +01:00
Joe Thornber
db9259d303 bump version to 0.7.3 2017-10-05 13:28:36 +01:00
Joe Thornber
b742d9d4da [functional-tests] update thin_check help 2017-10-05 13:22:28 +01:00
Joe Thornber
4e1b7f89ee [functional-tests] add a couple of tests 2017-10-05 11:56:53 +01:00
Joe Thornber
dcb0fe1148 [functional-tests] add a useful script for investigating corrupt thin metadata 2017-10-04 10:45:39 +01:00
Joe Thornber
3b30d9e225 [functional-tests] Move mapping tree to metadata, and add functions for device-tree 2017-10-04 10:40:25 +01:00
Joe Thornber
48b3ac960c [functional-tests] Export some more from (persistent-data btree) 2017-10-04 10:30:15 +01:00
Joe Thornber
5fd33b9560 [functional-tests] Knock up some crc32c code.
This works 1 byte at a time so will be slow.
2017-10-04 10:25:32 +01:00
Joe Thornber
8b7e5acc48 [functional-tests/utils] add all?, some? and none?
They only work with one list though.  Use every from srfi1.
2017-10-04 10:19:46 +01:00