Commit Graph

194 Commits

Author SHA1 Message Date
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
Joe Thornber
331303fe03 [functional-tests] Add thin_repair test for accidental XML input.
Was segfaulting.
2017-09-29 10:19:56 +01:00
Joe Thornber
8035e10b2a Merge branch 'master' of github.com:jthornber/thin-provisioning-tools 2017-09-28 14:37:18 +01:00
Joe Thornber
f018e6ecf7 [functional-tests] Check *_restore doesn't touch the metadata if the xml doesn't exists, or isn't xml. 2017-09-28 14:36:01 +01:00
Joe Thornber
5e2cd1e9f2 [functional-tests] more work on the dm-ioctl bindings 2017-09-27 15:50:16 +01:00
Joe Thornber
742629fb8d [functional-tests] start working on dm-ioctl bindings 2017-09-26 15:16:45 +01:00
Joe Thornber
a1acd0c868 [functional-tests] fix bug in run_tests if command line pattern was shorter than "re:" 2017-09-26 14:02:42 +01:00
Joe Thornber
7796b4eecb [functional-tests] bcache makefile 2017-09-21 15:12:07 +01:00
Joe Thornber
22430c636d bump version to 0.7.2 2017-09-21 11:23:59 +01:00
Joe Thornber
48e7ab89a5 [*_dump] Fix segfault when given a tiny metadata file 2017-09-21 10:22:38 +01:00
Joe Thornber
7079b1ec9e [functional-tests] fix up some tests. 2017-09-20 17:13:03 +01:00
Joe Thornber
2a39350235 [functional-test] remove out of date comment 2017-09-15 15:59:10 +01:00
Joe Thornber
b10d8d4440 [thin_check] Spot XML and be helpful. 2017-09-15 15:22:04 +01:00
Joe Thornber
9ba75c890b [functional-tests] Don't reiterate the failures if there were no
successes.
2017-09-15 12:48:34 +01:00
Joe Thornber
738ab8391d [functional-tests] Improve the (thin-delta unrecognised-option) test 2017-09-15 12:26:54 +01:00
Joe Thornber
4d3733d0e7 [functional-tests] change btree functions to take a spine.
Also change the step-spine interface slightly.
2017-09-14 16:09:43 +01:00
Joe Thornber
48ae5beead [funtional-tests] remove old code 2017-09-14 15:14:56 +01:00
Joe Thornber
9bc5d9fbfe [functional-tests] Some work on thin-check and thin-dump 2017-09-14 11:47:23 +01:00
Joe Thornber
f27b1e36c6 [functional-tests] Remove redundant library load in run-tests 2017-09-14 11:45:49 +01:00
Joe Thornber
f756ff02df [functional tests] Fix bug in return type of parser-combinators/eof 2017-09-14 11:44:01 +01:00
Joe Thornber
111d64ec9e [functional-tests] Change btree code to use a spine 2017-09-14 11:41:26 +01:00
Joe Thornber
205caab84c [functional-tests] move thin-check and thin-xml into a sub dir 2017-09-14 11:39:38 +01:00
Joe Thornber
40b257d42e [functional-tests] change btree to use the bcache 2017-09-08 15:51:33 +01:00
Joe Thornber
3b7320cd84 [functional-tests] a few more bcache tests 2017-09-08 09:20:16 +01:00
Joe Thornber
6a054e35df [functional-tests] Scheme interface to the block cache. 2017-09-07 15:40:25 +01:00
Joe Thornber
7825380ffe [functional-tests] recode the block cache in C 2017-09-07 15:39:55 +01:00
Joe Thornber
c70aad52e6 [functional-tests] add dlambda to utils 2017-09-04 12:31:39 +01:00
Joe Thornber
c2b5730d6b [functional-tests] print help if there's a bad command line 2017-08-31 12:22:42 +01:00
Joe Thornber
fe1f46ae07 whitespace 2017-08-31 10:09:58 +01:00
Joe Thornber
9e096fa982 [functional-tests] Improve help for run-tests 2017-08-31 09:37:21 +01:00
Joe Thornber
93c8ebf896 [functional-tests] s/-/_/ in tag names 2017-08-30 15:15:12 +01:00
Joe Thornber
d3c8ae4f35 [functional-tests] era_restore tests 2017-08-30 15:14:10 +01:00
Joe Thornber
6616a21891 [functional-tests] era_check tests 2017-08-30 14:30:11 +01:00
Joe Thornber
516afc8ed6 [functional-tests] era-xml 2017-08-30 13:35:44 +01:00
Joe Thornber
8c251018c6 [functional-tests] thin_delta tests 2017-08-30 10:39:58 +01:00
Joe Thornber
e0bab67bd8 whitespace 2017-08-30 10:38:19 +01:00
Joe Thornber
bcc7f85f1e [functional-tests/cache] cache_metadata_size tests 2017-08-30 10:12:46 +01:00
Joe Thornber
a724d86ba2 Bump the version to 0.7.1 2017-08-29 15:07:02 +01:00
Joe Thornber
12024bf232 [functional-tests/thin] Factor out with-empty-metadata 2017-08-29 14:55:48 +01:00
Joe Thornber
33f0c23ca1 [functional-tests] give all temporary files sensible names.
This makes it much easier when debugging a test.
2017-08-29 14:46:59 +01:00
Joe Thornber
13cee36804 [functional-tests/regex-bench] update benchmark to use regex from a
string rather than combinators.
2017-08-29 13:26:14 +01:00
Joe Thornber
14d1751022 [functional-tests/regex] reorder definition of rx 2017-08-29 13:24:11 +01:00
Joe Thornber
761c655035 [functional-tests/cache] remove deliberately failing test + whitespace 2017-08-29 13:23:27 +01:00
Joe Thornber
61d747b246 [functional-tests/run-test] add list command. 2017-08-29 10:28:56 +01:00
Joe Thornber
1940945d6f [functional-tests/regex] use indirect-lambda to hotpatch rx 2017-08-29 09:27:28 +01:00
Joe Thornber
e5ca0bc5e1 [functional-tests] add indirect-lambda/set-lambda! to (utils) 2017-08-29 09:18:39 +01:00
Joe Thornber
da4bb22b6a [functional-tests/regex] Get groups working
Hacked a hotpatch soln.
2017-08-28 17:38:49 +01:00
Joe Thornber
be34337b06 [functional-tests] Add some cache tests 2017-08-25 15:03:50 +01:00
Joe Thornber
2eea8c4e84 [functional-tests] (process) library 2017-08-25 15:01:09 +01:00
Joe Thornber
970cd314de [functional-tests/temp-file] temp-file-sized 2017-08-25 11:26:45 +01:00
Joe Thornber
de2e243408 [functional-tests/cache] use a temp file for metadata 2017-08-25 11:26:09 +01:00
Joe Thornber
78cb2570a3 [functional-tests] start a trivial (disk-units) library 2017-08-25 11:25:37 +01:00
Joe Thornber
ccd89d32da [functional-tests/thin] use a temp file to hold metadata 2017-08-25 11:12:18 +01:00
Joe Thornber
3635952ec8 [functional-tests] (process) lib, and create a per scenario log file 2017-08-25 09:46:56 +01:00
Joe Thornber
0fcf05e4fc [functional-tests] add newline to log messages 2017-08-25 09:45:56 +01:00
Joe Thornber
6b4e47a05f [functional-tests] (logging) 2017-08-24 15:54:03 +01:00
Joe Thornber
0740cb7bcc [functional-tests] fluid-let is already in (chezscheme) 2017-08-24 14:09:23 +01:00
Joe Thornber
02618e39d1 [functional-tests] Lexically scoped temp file stuff 2017-08-24 14:03:07 +01:00
Joe Thornber
bc765ce89d [functional-tests] fluid-let 2017-08-23 11:10:53 +01:00
Joe Thornber
2fe464a4cf [functional-tests] move swap! to (utils) 2017-08-23 10:49:36 +01:00
Joe Thornber
e3053df850 [functional-tests] factor out temp-file library 2017-08-23 10:48:33 +01:00
Joe Thornber
1cc2ab62ae [functional-tests] comment 2017-08-23 10:18:09 +01:00
Joe Thornber
417a970bc2 [functional-tests] Stop printing the command line in run-tests 2017-08-23 10:11:26 +01:00
Joe Thornber
029db28b3b [functional-tests] only repeat failures if there are some :) 2017-08-23 10:08:28 +01:00
Joe Thornber
52f17c3230 [functional-tests] You can now specify tests using a regex.
Prefix the command line arg with 're:'.
2017-08-23 10:04:00 +01:00
Joe Thornber
87b3556d36 [functional-tests/regex] tweak definition of rx 2017-08-22 17:41:40 +01:00
Joe Thornber
c049ec6f39 [functional-tests/regex] parser mostly working.
Just need to stop grouping '(' ')' from looping forever.
2017-08-22 17:28:13 +01:00
Joe Thornber
38577de0ea [functional-tests] start using the parser combinators for the command
line
2017-08-22 09:48:20 +01:00