File: examples.rs

package info (click to toggle)
rust-just 1.43.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,068 kB
  • sloc: sh: 300; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 392 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use super::*;

#[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);
  }
}