serde/test_suite/tests/compiletest.rs

21 lines
513 B
Rust
Raw Normal View History

#![cfg(feature = "compiletest")]
extern crate compiletest_rs as compiletest;
#[test]
fn ui() {
2018-11-24 17:35:49 -06:00
let config = compiletest::Config {
mode: compiletest::common::Mode::Ui,
src_base: std::path::PathBuf::from("tests/ui"),
2018-12-31 20:36:59 -06:00
target_rustcflags: Some(String::from("\
--edition=2018 \
-L deps/target/debug/deps \
-Z unstable-options \
--extern serde_derive \
")),
2018-11-24 17:35:49 -06:00
..Default::default()
};
compiletest::run_tests(&config);
}