perform ctest with and without std

This commit is contained in:
gnzlbg 2018-02-27 17:36:45 +01:00
parent 5b890a31bd
commit f9c396803c
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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