c8d9470502
This first step add the infrastructure to test if libc follows semantic versioning. In the build step it creates a test file which imports all functions, constants, etc. that are expected to be public. This file is generated from the files in the (not yet included) semver directory. These files include the function and constants expected to be public per target family, vendor, OS, etc. See the do_semver function in the build file of libc-test for the details.
73 lines
1.2 KiB
TOML
73 lines
1.2 KiB
TOML
[package]
|
|
name = "libc-test"
|
|
version = "0.2.91"
|
|
authors = ["The Rust Project Developers"]
|
|
license = "MIT OR Apache-2.0"
|
|
build = "build.rs"
|
|
repository = "https://github.com/rust-lang/libc"
|
|
homepage = "https://github.com/rust-lang/libc"
|
|
description = """
|
|
A test crate for the libc crate.
|
|
"""
|
|
|
|
[dependencies.libc]
|
|
path = ".."
|
|
version = "0.2.91"
|
|
default-features = false
|
|
|
|
[build-dependencies]
|
|
cc = "1.0.61"
|
|
# FIXME: Use fork ctest until the maintainer gets back.
|
|
ctest2 = "0.4"
|
|
|
|
[features]
|
|
default = [ "std" ]
|
|
std = [ "libc/std" ]
|
|
align = [ "libc/align" ]
|
|
extra_traits = [ "libc/extra_traits" ]
|
|
|
|
[[test]]
|
|
name = "main"
|
|
path = "test/main.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "linux-fcntl"
|
|
path = "test/linux_fcntl.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "linux-ipv6"
|
|
path = "test/linux_ipv6.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "linux-elf"
|
|
path = "test/linux_elf.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "linux-strerror_r"
|
|
path = "test/linux_strerror_r.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "linux-termios"
|
|
path = "test/linux_termios.rs"
|
|
harness = false
|
|
|
|
[[test]]
|
|
name = "cmsg"
|
|
path = "test/cmsg.rs"
|
|
harness = true
|
|
|
|
[[test]]
|
|
name = "errqueue"
|
|
path = "test/errqueue.rs"
|
|
harness = true
|
|
|
|
[[test]]
|
|
name = "semver"
|
|
path = "test/semver.rs"
|
|
harness = false
|