Skip to content

Commit eab4196

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 4e4d9c2 commit eab4196

File tree

13 files changed

+10
-28
lines changed

13 files changed

+10
-28
lines changed

libc-test/Cargo.toml

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

3131
[[test]]
3232
name = "ctest"
33-
path = "test/ctest.rs"
3433
harness = false
3534

3635
[[test]]
37-
name = "linux-fcntl"
38-
path = "test/linux_fcntl.rs"
36+
name = "linux_fcntl"
3937
harness = false
4038

4139
[[test]]
42-
name = "linux-if-arp"
43-
path = "test/linux_if_arp.rs"
40+
name = "linux_if_arp"
4441
harness = false
4542

4643
[[test]]
47-
name = "linux-ipv6"
48-
path = "test/linux_ipv6.rs"
44+
name = "linux_ipv6"
4945
harness = false
5046

5147
[[test]]
52-
name = "linux-elf"
53-
path = "test/linux_elf.rs"
48+
name = "linux_elf"
5449
harness = false
5550

5651
[[test]]
57-
name = "linux-strerror_r"
58-
path = "test/linux_strerror_r.rs"
52+
name = "linux_strerror_r"
5953
harness = false
6054

6155
[[test]]
62-
name = "linux-termios"
63-
path = "test/linux_termios.rs"
56+
name = "linux_termios"
6457
harness = false
6558

6659
[[test]]
6760
name = "semver"
68-
path = "test/semver.rs"
6961
harness = false
7062

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-
8163
# FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
8264
# once MSRV is above 1.64 and replaced with `[lints] workspace=true`
8365

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)