Skip to content

Commit 3919275

Browse files
committed
test: Use automatic test detection
Move from `test/` to `tests/`, which is the directory for autodetection. This means that we can drop `[[test]]` entries in `libc-test/Cargo.toml` that don't require nondefault configuration like `harness = false`. The style library had to be moved to `style_lib` so that `style` could be used as the test name.
1 parent db33ac4 commit 3919275

File tree

13 files changed

+12
-22
lines changed

13 files changed

+12
-22
lines changed

libc-test/Cargo.toml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,54 +30,44 @@ extra_traits = ["libc/extra_traits"]
3030

3131
[[test]]
3232
name = "ctest"
33-
path = "test/ctest.rs"
33+
path = "tests/ctest.rs"
3434
harness = false
3535

3636
[[test]]
3737
name = "linux-fcntl"
38-
path = "test/linux_fcntl.rs"
38+
path = "tests/linux_fcntl.rs"
3939
harness = false
4040

4141
[[test]]
4242
name = "linux-if-arp"
43-
path = "test/linux_if_arp.rs"
43+
path = "tests/linux_if_arp.rs"
4444
harness = false
4545

4646
[[test]]
4747
name = "linux-ipv6"
48-
path = "test/linux_ipv6.rs"
48+
path = "tests/linux_ipv6.rs"
4949
harness = false
5050

5151
[[test]]
5252
name = "linux-elf"
53-
path = "test/linux_elf.rs"
53+
path = "tests/linux_elf.rs"
5454
harness = false
5555

5656
[[test]]
5757
name = "linux-strerror_r"
58-
path = "test/linux_strerror_r.rs"
58+
path = "tests/linux_strerror_r.rs"
5959
harness = false
6060

6161
[[test]]
6262
name = "linux-termios"
63-
path = "test/linux_termios.rs"
63+
path = "tests/linux_termios.rs"
6464
harness = false
6565

6666
[[test]]
6767
name = "semver"
68-
path = "test/semver.rs"
68+
path = "tests/semver.rs"
6969
harness = false
7070

71-
[[test]]
72-
name = "style"
73-
path = "test/check_style.rs"
74-
harness = true
75-
76-
[[test]]
77-
name = "style_tests"
78-
path = "test/style_tests.rs"
79-
harness = true
80-
8171
# FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
8272
# once MSRV is above 1.64 and replaced with `[lints] workspace=true`
8373

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)