From aea101af88a68f9eb009097fd9b488dd008be2b8 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sat, 3 Apr 2021 12:42:52 -0600 Subject: add test for shell --- src/makefile/functions.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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(()) + } } -- cgit v1.2.3