serde/test_suite/tests/compiletest.rs
2019-02-17 10:58:46 -08:00

22 lines
572 B
Rust

#![cfg(feature = "compiletest")]
use compiletest_rs as compiletest;
#[test]
fn ui() {
compiletest::run_tests(&compiletest::Config {
mode: compiletest::common::Mode::Ui,
src_base: std::path::PathBuf::from("tests/ui"),
target_rustcflags: Some(String::from(
"\
--edition=2018 \
-L deps/target/debug/deps \
-Z unstable-options \
--extern serde_derive \
",
)),
build_base: std::path::PathBuf::from("../target/ui"),
..Default::default()
});
}