serde/test_suite/tests/compiletest.rs

21 lines
510 B
Rust
Raw Normal View History

#![cfg(feature = "compiletest")]
2018-12-31 20:44:24 -06:00
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"),
2018-12-31 21:04:56 -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()
});
}