Skip to content

Commit 214838a

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`. As part of this, `style` and its selftests are moved to the `libc-test` source directory.
1 parent 9812d5b commit 214838a

13 files changed

Lines changed: 10 additions & 10 deletions

libc-test/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,52 +30,52 @@ 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

7171
[[test]]
7272
name = "style"
73-
path = "test/check_style.rs"
73+
path = "tests/check_style.rs"
7474
harness = true
7575

7676
[[test]]
7777
name = "style_tests"
78-
path = "test/style_tests.rs"
78+
path = "tests/style_tests.rs"
7979
harness = true
8080

8181
# FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`

0 commit comments

Comments
 (0)