mirror of
https://github.com/serde-rs/json.git
synced 2025-10-02 15:26:00 +00:00
20 lines
548 B
Rust
20 lines
548 B
Rust
extern crate 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 tests/deps/target/debug/deps \
|
|
-Z unstable-options \
|
|
--extern serde_json \
|
|
",
|
|
)),
|
|
build_base: std::path::PathBuf::from("target/ui"),
|
|
..Default::default()
|
|
});
|
|
}
|