aboutsummaryrefslogtreecommitdiff
path: root/tests/utils/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils/mod.rs')
-rw-r--r--tests/utils/mod.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/utils/mod.rs b/tests/utils/mod.rs
new file mode 100644
index 0000000..8b834c1
--- /dev/null
+++ b/tests/utils/mod.rs
@@ -0,0 +1,13 @@
+use std::path::Path;
+use std::process::{Command, Output};
+
+use eyre::Context;
+
+pub type R = eyre::Result<()>;
+
+pub fn make(dir: impl AsRef<Path>) -> eyre::Result<Output> {
+ Command::new(env!("CARGO_BIN_EXE_makers"))
+ .current_dir(dir)
+ .output()
+ .wrap_err("")
+}