mirror of
https://github.com/openwrt/packages.git
synced 2026-02-04 12:06:29 +08:00
chicken-scheme: add CI test script
Check csi version and check if csc can compile a simple s-expression. Co-authored-by: George Sapkin <george@sapk.in> Signed-off-by: Jeronimo Pellegrini <j_p@aleph0.info>
This commit is contained in:
committed by
George Sapkin
parent
97b7ff2f46
commit
e00c01fd7d
15
lang/chicken-scheme/test.sh
Normal file
15
lang/chicken-scheme/test.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
case "$1" in
|
||||
chicken-scheme-full)
|
||||
# Send an S-expression to its standard input
|
||||
if ! echo '(+ 2 3)' | csc -; then
|
||||
echo 'csc cannot compile a S-expression from standard input'
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
chicken-scheme-interpreter)
|
||||
csi -version 2>&1 | grep -F "$2"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user