mirror of
https://github.com/casey/just.git
synced 2024-11-23 11:04:09 +03:00
24 lines
486 B
Rust
24 lines
486 B
Rust
|
use std::{fs, process::Command};
|
||
|
|
||
|
use executable_path::executable_path;
|
||
|
use test_utilities::assert_success;
|
||
|
|
||
|
#[test]
|
||
|
fn examples() {
|
||
|
for result in fs::read_dir("examples").unwrap() {
|
||
|
let entry = result.unwrap();
|
||
|
let path = entry.path();
|
||
|
|
||
|
println!("Parsing `{}`…", path.display());
|
||
|
|
||
|
let output = Command::new(executable_path("just"))
|
||
|
.arg("--justfile")
|
||
|
.arg(&path)
|
||
|
.arg("--dump")
|
||
|
.output()
|
||
|
.unwrap();
|
||
|
|
||
|
assert_success(&output);
|
||
|
}
|
||
|
}
|