litnik 0.2.0

An embedded Lit and FileCheck runner for compiler test suites.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Execution for Lit `RUN:` directives.

use crate::config::LitConfig;
use crate::runner::RunContext;
use crate::test::{Test, TestResult};

/// Runs one discovered test and applies retries and expected-failure mapping.
///
/// Use the same configuration for discovery and execution. Execution settings
/// from `config` replace the snapshot stored in `test`.
///
/// # Blocking
///
/// This function reads the test file and waits for each child process.
pub fn run(test: &mut Test, config: &LitConfig) -> TestResult {
    let runner = RunContext::new(config.clone());
    runner.run_with_retries(test)
}