+ // Add a test env var to do environment communication tests.
+ env::set_var("MIRI_ENV_VAR_TEST", "0");
+ // Let the tests know where to store temp files (they might run for a different target, which can make this hard to find).
+ env::set_var("MIRI_TEMP", env::temp_dir());
+ // Panic tests expect backtraces to be printed.
+ env::set_var("RUST_BACKTRACE", "1");
+
+ let target = get_target();
+ miri_pass("tests/run-pass", &target);
+ compile_fail("tests/compile-fail", &target);