aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-03 12:42:52 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-03 12:42:52 -0600
commitaea101af88a68f9eb009097fd9b488dd008be2b8 (patch)
tree0f223e645b832ca5893bf30c237b56bf810648de /src/makefile
parent63f88ae09338b00a513f1a3d88ab6a62f587061a (diff)
downloadmakers-aea101af88a68f9eb009097fd9b488dd008be2b8.tar.gz
makers-aea101af88a68f9eb009097fd9b488dd008be2b8.zip
add test for shell
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile/functions.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/makefile/functions.rs b/src/makefile/functions.rs
index 8594046..abd1abb 100644
--- a/src/makefile/functions.rs
+++ b/src/makefile/functions.rs
@@ -473,4 +473,11 @@ mod test {
);
Ok(())
}
+
+ #[test]
+ fn shell() -> R {
+ let result = call!(shell "echo hi");
+ assert_eq!(result, "hi");
+ Ok(())
+ }
}