Browse Source

Add tests

cmd
opilarium 8 years ago
parent
commit
3933e0093b
  1. 23
      tests/test.rs

23
tests/test.rs

@ -61,6 +61,29 @@ fn gnu_debug() {
test.cmd(0).must_have("-g");
}
#[test]
fn gnu_warnings_into_errors() {
let test = Test::gnu();
test.gcc()
.warnings_into_errors(true)
.file("foo.c")
.compile("libfoo.a");
test.cmd(0).must_have("-Werror");
}
#[test]
fn gnu_warnings() {
let test = Test::gnu();
test.gcc()
.warnings(true)
.file("foo.c")
.compile("libfoo.a");
test.cmd(0).must_have("-Wall")
.must_have("-Wextra");
}
#[test]
fn gnu_x86_64() {
for vendor in &["unknown-linux-gnu", "apple-darwin"] {

Loading…
Cancel
Save