add --test run flag

This commit is contained in:
liv
2019-01-09 22:04:08 +01:00
parent 17e12433cb
commit 141db7795b
3 changed files with 11 additions and 2 deletions

View File

@@ -78,7 +78,7 @@ fn compile_only(filename: &str) -> Result<(), ()> {
}
}
fn test(filename: &str) -> Result<(), ()> {
pub fn test(filename: &str) -> Result<(), ()> {
let bar = ProgressBar::new_spinner();
bar.set_message(format!("Testing {}...", filename).as_str());
bar.enable_steady_tick(100);