mirror of
https://github.com/rustdesk/magnum-opus.git
synced 2025-07-03 08:15:34 +00:00
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:
parent
f522a8a155
commit
43f36f0e7f
@ -16,6 +16,3 @@ documentation = "https://wombat.platymuus.com/rustdoc/opus_0.2.0/"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
opus-sys = "0.2.0"
|
opus-sys = "0.2.0"
|
||||||
libc = "0.2"
|
libc = "0.2"
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
compiletest_rs = "0.2.4"
|
|
||||||
|
@ -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");
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user