merge and add clojure

This commit is contained in:
Brian Seymour 2021-03-12 13:27:06 -06:00
parent fca3488743
commit ed0a5c4f78
5 changed files with 33 additions and 0 deletions

4
lxc/executors/clojure Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cd /tmp/$1
timeout -s KILL 3 xargs -a args.args -d '\n' clojure -M code.code < stdin.stdin

5
lxc/tests/clojure.clj Normal file
View file

@ -0,0 +1,5 @@
(ns clojure.examples.hello
(:gen-class))
(defn hello-world []
(println "good"))
(hello-world)

View file

@ -21,6 +21,10 @@ echo 'cpp'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
echo '---'
echo 'clojure'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "clojure -version"
echo '---'
echo 'crystal'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
echo '---'
@ -77,6 +81,10 @@ echo 'lisp'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
echo '---'
echo 'lolcode'
echo '1.0.0'
echo '---'
echo 'lua'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "lua -v"
echo '---'