pub allow_fail: bool,
}
-#[derive(Clone)]
-pub struct TestPaths {
- pub file: PathBuf, // e.g., compile-test/foo/bar/baz.rs
- pub base: PathBuf, // e.g., compile-test, auxiliary
- pub relative_dir: PathBuf, // e.g., foo/bar
-}
-
#[derive(Debug)]
pub struct TestDescAndFn {
pub desc: TestDesc,
use std::str::FromStr;
use std::path::PathBuf;
-use test::{ColorConfig, TestPaths};
+use test::ColorConfig;
#[derive(Clone, Copy, PartialEq, Debug)]
pub enum Mode {
pub nodejs: Option<String>,
}
+#[derive(Clone)]
+pub struct TestPaths {
+ pub file: PathBuf, // e.g., compile-test/foo/bar/baz.rs
+ pub base: PathBuf, // e.g., compile-test, auxiliary
+ pub relative_dir: PathBuf, // e.g., foo/bar
+}
+
/// Used by `ui` tests to generate things like `foo.stderr` from `foo.rs`.
pub fn expected_output_path(testpaths: &TestPaths, revision: Option<&str>, kind: &str) -> PathBuf {
assert!(UI_EXTENSIONS.contains(&kind));
use std::process::Command;
use filetime::FileTime;
use getopts::Options;
-use common::Config;
+use common::{Config, TestPaths};
use common::{DebugInfoGdb, DebugInfoLldb, Mode, Pretty};
use common::{expected_output_path, UI_EXTENSIONS};
-use test::{ColorConfig, TestPaths};
+use test::ColorConfig;
use util::logv;
use self::header::EarlyProps;
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use common::Config;
+use common::{Config, TestPaths};
use common::{CompileFail, ParseFail, Pretty, RunFail, RunPass, RunPassValgrind};
use common::{Codegen, CodegenUnits, DebugInfoGdb, DebugInfoLldb, Rustdoc};
use common::{Incremental, MirOpt, RunMake, Ui};
use filetime::FileTime;
use json;
use header::TestProps;
-use test::TestPaths;
use util::logv;
use regex::Regex;