summaryrefslogtreecommitdiff
path: root/build/pymake/tests/shellfunc.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/pymake/tests/shellfunc.mk')
-rw-r--r--build/pymake/tests/shellfunc.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/pymake/tests/shellfunc.mk b/build/pymake/tests/shellfunc.mk
new file mode 100644
index 0000000000..1e408dbaca
--- /dev/null
+++ b/build/pymake/tests/shellfunc.mk
@@ -0,0 +1,7 @@
+all: testfile
+ test "$(shell cat $<)" = "Hello world"
+ test "$(shell printf "\n")" = ""
+ @echo TEST-PASS
+
+testfile:
+ printf "Hello\nworld\n" > $@