about summary refs log tree commit diff
path: root/tests/compile.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/compile.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/compile.rs b/tests/compile.rs
index 177391423c7d..7fa15ad9653e 100644
--- a/tests/compile.rs
+++ b/tests/compile.rs
@@ -8,6 +8,19 @@ const FIXTURES: &[(&str, i32)] = &[("simple", 5), ("functions", 9)];
 fn compile_and_run_files() {
     let ach = root().unwrap().join("ach");
 
+    println!("Running: `make clean`");
+    assert!(
+        Command::new("make")
+            .arg("clean")
+            .current_dir(&ach)
+            .spawn()
+            .unwrap()
+            .wait()
+            .unwrap()
+            .success(),
+        "make clean failed"
+    );
+
     for (fixture, exit_code) in FIXTURES {
         println!(">>> Testing: {}", fixture);