Add a SubTest trait and filecheck utilities.

This trait serves as a shared interface for the different kinds of test
commands the 'cton-util test' understands.

Many tests produce output that is run through filecheck for validation.
Provide a simple run_filecheck() function to help with this.

Implement the 'test cat' sub-test which is probably the simplest
possible.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-15 08:17:50 -07:00
parent b40a3495fe
commit 524bf15428
6 changed files with 169 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ use std::path::Path;
use CommandResult;
use filetest::runner::TestRunner;
pub mod subtest;
mod runner;
/// Main entry point for `cton-util test`.