2020-04-22 12:54:22 +00:00
|
|
|
fn main() {
|
|
|
|
println!("This crate is not meant to be run, it only serves as a compilation test.");
|
|
|
|
}
|
|
|
|
|
2018-11-19 09:11:44 +00:00
|
|
|
#[test]
|
|
|
|
fn ui() {
|
2019-04-08 16:20:56 +00:00
|
|
|
extern crate version_check;
|
|
|
|
|
2019-05-28 15:05:56 +00:00
|
|
|
if !version_check::is_feature_flaggable().unwrap_or(false) {
|
2019-04-08 16:20:56 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2018-11-19 09:11:44 +00:00
|
|
|
extern crate compiletest_rs as compiletest;
|
|
|
|
|
|
|
|
let mut config = compiletest::Config {
|
|
|
|
mode: compiletest::common::Mode::Ui,
|
|
|
|
src_base: std::path::PathBuf::from("cases"),
|
|
|
|
..Default::default()
|
|
|
|
};
|
|
|
|
|
|
|
|
config.link_deps();
|
|
|
|
config.clean_rmeta();
|
|
|
|
|
|
|
|
compiletest::run_tests(&config);
|
|
|
|
}
|