perform ctest with and without std
This commit is contained in:
parent
5b890a31bd
commit
f9c396803c
|
@ -79,5 +79,5 @@ if [ "$TARGET" = "x86_64-unknown-linux-gnux32" ]; then
|
|||
opt="--release"
|
||||
fi
|
||||
|
||||
cargo test $opt --no-default-features --target $TARGET
|
||||
cargo test $opt --no-default-features --manifest-path libc-test/Cargo.toml --target $TARGET
|
||||
exec cargo test $opt --manifest-path libc-test/Cargo.toml --target $TARGET
|
||||
|
|
|
@ -4,12 +4,17 @@ version = "0.1.0"
|
|||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||
build = "build.rs"
|
||||
|
||||
[dependencies]
|
||||
libc = { path = ".." }
|
||||
[dependencies.libc]
|
||||
path = ".."
|
||||
default-features = false
|
||||
|
||||
[build-dependencies]
|
||||
ctest = { git = "https://github.com/alexcrichton/ctest" }
|
||||
|
||||
[features]
|
||||
default = [ "use_std" ]
|
||||
use_std = [ "libc/use_std" ]
|
||||
|
||||
[[test]]
|
||||
name = "main"
|
||||
path = "test/main.rs"
|
||||
|
@ -19,3 +24,4 @@ harness = false
|
|||
name = "linux-fcntl"
|
||||
path = "test/linux_fcntl.rs"
|
||||
harness = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue