summaryrefslogtreecommitdiffstats
path: root/tests/haserl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/haserl')
-rw-r--r--tests/haserl9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/haserl b/tests/haserl
new file mode 100644
index 0000000..91da389
--- /dev/null
+++ b/tests/haserl
@@ -0,0 +1,9 @@
+ SCRIPT=tmp.haserl
+ apk_add $@
+ echo '#!/usr/bin/haserl --shell=lua' >$SCRIPT
+ echo '' >>$SCRIPT
+ echo '<% print"hello world" %>' >>$SCRIPT
+ chmod +x $SCRIPT
+ ./$SCRIPT | grep 'hello world'
+ rm -f $SCRIPT
+ apk_del $@