Skip to content

Commit a67810d

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`.
1 parent 503ece7 commit a67810d

18 files changed

+8
-43
lines changed

libc-test/Cargo.toml

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

3131
[[test]]
3232
name = "main"
33-
path = "test/main.rs"
33+
path = "tests/main.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

66-
[[test]]
67-
name = "cmsg"
68-
path = "test/cmsg.rs"
69-
harness = true
70-
71-
[[test]]
72-
name = "makedev"
73-
path = "test/makedev.rs"
74-
harness = true
75-
76-
[[test]]
77-
name = "errqueue"
78-
path = "test/errqueue.rs"
79-
harness = true
80-
81-
[[test]]
82-
name = "sigrt"
83-
path = "test/sigrt.rs"
84-
harness = true
85-
8666
[[test]]
8767
name = "semver"
88-
path = "test/semver.rs"
68+
path = "tests/semver.rs"
8969
harness = false
9070

91-
[[test]]
92-
name = "primitive_types"
93-
path = "test/primitive_types.rs"
94-
harness = true
95-
96-
[[test]]
97-
name = "style"
98-
path = "test/check_style.rs"
99-
harness = true
100-
101-
[[test]]
102-
name = "style_tests"
103-
path = "test/style_tests.rs"
104-
harness = true
105-
10671
# FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
10772
# once MSRV is above 1.64 and replaced with `[lints] workspace=true`
10873

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)