Ming-Hung Tsai
16190f0f9a
[tests] Pull out common submodules
...
New modules: fixture, process, program, target, and thin
2021-07-21 17:50:34 +08:00
Ming-Hung Tsai
66b49e6f3d
[tests] Change the path type to OsString for compatibility
2021-07-21 17:27:13 +08:00
Ming-Hung Tsai
f395bab7be
[tests] Use traits to specify test parameters
...
To deal with variety in target attributes and their expected outputs,
the test parameters are categorized into traits, thus the test program
could define test parameters in a more structured way, without having
to pass multiple tightly-coupled parameters to test functions.
2021-07-09 01:22:22 +08:00
Ming-Hung Tsai
12ef69c31b
[tests] Pull out common tests on i/o options into reusable modules
...
- Introduce modules for testing input/output options
- Provide macros for generating test cases
- Hide details of subprocess execution
2021-07-08 22:02:44 +08:00
Ming-Hung Tsai
6660fde3c4
[tests] Refine the test naming and error messages
...
- Make the naming of test cases less ambiguous, e.g., rename
"missing_input_file" to "missing_input_arg" or "input_file_not_found"
- Unify the error messages on input/output options
2021-07-08 01:05:15 +08:00
Ming-Hung Tsai
fba2adbe56
[tests] Fix minor test errors
...
- Fix command line arguments
- Adapt error messages for rust implementations
2021-06-21 23:27:51 +08:00
Ming-Hung Tsai
bfc7f96d9f
[tests] Enable testing the rust targets
...
This is a temporary solution for development.
Usage: cargo test --features rust_tests
2021-06-21 23:27:51 +08:00
Ming-Hung Tsai
43e433149b
[all] Apply cargo fmt
2021-05-04 16:10:23 +08:00
Joe Thornber
7834d661e2
[thin_check (rust)] auto repair space map leaks
2020-08-19 14:31:01 +01:00
Joe Thornber
2fa732a93c
[functional tests] Port some of Hank's sh tests to Rust.
...
Run with 'cargo test'
2020-08-13 14:20:29 +01:00
Joe Thornber
fa4ea3e2d9
[functional-tests] port some of the cache_check tests to Rust
2020-08-07 14:30:00 +01:00
Joe Thornber
d2678fdf27
[functional-tests] port thin_metadata_pack tests to Rust.
...
cargo test
2020-08-05 09:09:18 +01:00
Joe Thornber
23568aaa11
[functional-tests] port thin_delta tests to rust.
...
cargo test
2020-08-05 08:24:52 +01:00
Joe Thornber
4ac428128a
[functional-tests (rust)] port thin_repair tests to rust.
...
cargo test
2020-08-04 11:30:46 +01:00
Joe Thornber
39822a7165
[functional-tests (rust)] squash warnings
2020-08-03 10:59:19 +01:00
Joe Thornber
9552cb4817
[functional-tests] Port thin_rmap tests to Rust.
...
cargo test
2020-08-03 10:47:03 +01:00
Joe Thornber
ad29fe65fa
[functional-tests] Use thin_restore macro
2020-07-31 16:34:04 +01:00
Joe Thornber
baf1fe325f
[functional-tests] Move thin_dump tests to Rust.
...
cargo test
2020-07-31 16:31:10 +01:00
Joe Thornber
78db9a24fa
[functional-tests (rust)] factor out TestDir
2020-07-31 14:26:22 +01:00
Joe Thornber
084a26bf85
[functional-tests] Recode thin_restore tests in Rust.
...
Now part of 'cargo test'
2020-07-31 12:12:40 +01:00
Joe Thornber
fcfcc60b89
[functional-tests] Move thin_check functional tests to Rust.
...
They'll be run as part of 'cargo test' now.
2020-07-31 11:04:12 +01:00