Remove compiletest for now

There's no easy way to ignore this test in the case that the installed
nightly disagrees with compiletest-rs. This is getting in the way of
improving the normal tests, so disable it for now.
This commit is contained in:
Tad Hardesty 2017-05-16 13:55:14 -07:00
parent f522a8a155
commit 43f36f0e7f
No known key found for this signature in database
GPG Key ID: AEFCC915C75ACC47
2 changed files with 0 additions and 24 deletions

View File

@ -16,6 +16,3 @@ documentation = "https://wombat.platymuus.com/rustdoc/opus_0.2.0/"
[dependencies]
opus-sys = "0.2.0"
libc = "0.2"
[dev-dependencies]
compiletest_rs = "0.2.4"

View File

@ -1,21 +0,0 @@
extern crate compiletest_rs as compiletest;
use std::path::PathBuf;
#[cfg(debug_assertions)]
const DEPS: &'static str = "-L target/debug -L target/debug/deps";
#[cfg(not(debug_assertions))]
const DEPS: &'static str = "-L target/release -L target/release/deps";
fn run_mode(mode: &'static str) {
let mut config = compiletest::default_config();
config.mode = mode.parse().ok().expect("Invalid mode");
config.src_base = PathBuf::from(format!("tests/{}", mode));
config.target_rustcflags = Some(DEPS.to_owned());
compiletest::run_tests(&config);
}
#[test]
fn compile_test() {
run_mode("compile-fail");
}