@@ -40,36 +40,11 @@ If all test cases passed, the return code will be `0`. If any test cases failed,
4040
4141### Options
4242
43- Here are the options for running ` svd2rust-regress ` :
44-
43+ You can display options for ` svd2rust-regress ` by running:
4544
4645``` text
47- svd2rust-regress 0.1.0
48- James Munns <james.munns@gmail.com>:The svd2rust developers
49-
50- USAGE:
51- svd2rust-regress [FLAGS] [OPTIONS]
52-
53- FLAGS:
54- -b, --bad-tests Include tests expected to fail (will cause a non-zero return code)
55- -f, --format Enable formatting with `rustfmt`
56- -h, --help Prints help information
57- -l, --long-test Run a long test (it's very long)
58- -V, --version Prints version information
59- -v, --verbose Use verbose output
60-
61- OPTIONS:
62- -a, --architecture <arch>
63- Filter by architecture, case sensitive, may be combined with other filters Options are: "CortexM", "RiscV", "Msp430", "Mips" and "XtensaLX"
64- -p, --svd2rust-path <bin_path>
65- Path to an `svd2rust` binary, relative or absolute. Defaults to `target/release/svd2rust[.exe]` of this
66- repository (which must be already built)
67- -c, --chip <chip> Filter by chip name, case sensitive, may be combined with other filters
68- -m, --manufacturer <mfgr>
69- Filter by manufacturer, case sensitive, may be combined with other filters
70-
71- --rustfmt_bin_path <rustfmt_bin_path>
72- Path to an `rustfmt` binary, relative or absolute. Defaults to `$(rustup which rustfmt)`
46+ # in the ci/svd2rust-regress folder
47+ cargo regress help
7348```
7449
7550### Filters
@@ -80,28 +55,16 @@ For example, to run all `RiscV` tests:
8055
8156``` bash
8257# in the ci/svd2rust-regress folder
83- cargo run --release -- -a RiscV
84- Finished release [optimized] target(s) in 0.0 secs
85- Running ` target/release/svd2rust-regress -a RiscV`
86- Passed: si_five_e310x - 7 seconds
58+ cargo regress tests --architecture riscv
8759```
8860
8961To run against any chip named ` MB9AF12xK ` :
9062
9163``` bash
92- cargo run --release -- --long-test -c MB9AF12xK
93- Finished release [optimized] target(s) in 0.0 secs
94- Running ` target/release/svd2rust-regress --long-test -c MB9AF12xK`
95- Passed: spansion_mb9af12x_k - 23 seconds
96- Passed: fujitsu_mb9af12x_k - 25 seconds
64+ cargo regress test -c MB9AF12xK
9765```
9866
9967To run against specifically the ` Fujitsu ` ` MB9AF12xK ` :
10068``` bash
101- cargo run --release -- --long-test -c MB9AF12xK -m Fujitsu
102- Finished release [optimized] target(s) in 0.0 secs
103- Running ` target/release/svd2rust-regress --long-test -c MB9AF12xK -m Fujitsu`
104- Passed: fujitsu_mb9af12x_k - 19 seconds
69+ cargo regress test -c MB9AF12xK -m Fujitsu
10570```
106-
107- Note that you may have to pass ` --long-test ` to enable some chips as they are known to take a long time to compile.
0 commit comments