mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
added common lisp
This commit is contained in:
parent
a0bb87055f
commit
8c202f7b25
6 changed files with 24 additions and 0 deletions
|
@ -120,6 +120,9 @@ case "$lang" in
|
||||||
"emacs" | "elisp" | "el")
|
"emacs" | "elisp" | "el")
|
||||||
bin=emacs
|
bin=emacs
|
||||||
;;
|
;;
|
||||||
|
"lisp" | "clisp" | "commonlisp" | "sbcl")
|
||||||
|
bin=sbcl
|
||||||
|
;;
|
||||||
"bash")
|
"bash")
|
||||||
bin=bash
|
bin=bash
|
||||||
;;
|
;;
|
||||||
|
|
8
lxc/executors/commonlisp
Executable file
8
lxc/executors/commonlisp
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
cd /tmp/$2
|
||||||
|
|
||||||
|
if [[ -z $(grep '[^[:space:]]' args.args) ]]; then
|
||||||
|
runuser runner$1 -c "cd /tmp/$2 ; timeout -s KILL 3 sbcl --script code.code"
|
||||||
|
else
|
||||||
|
runuser runner$1 -c "cd /tmp/$2 ; cat args.args ; xargs -d '\n' timeout -s KILL 3 sbcl --script code.code"
|
||||||
|
fi
|
||||||
|
|
|
@ -49,3 +49,5 @@ echo 'testing python2'
|
||||||
../execute python2 test2.py
|
../execute python2 test2.py
|
||||||
echo 'testing python3'
|
echo 'testing python3'
|
||||||
../execute python3 test3.py
|
../execute python3 test3.py
|
||||||
|
echo 'testing common lisp'
|
||||||
|
../execute sbcl --script test.cl
|
||||||
|
|
1
lxc/tests/test.cl
Executable file
1
lxc/tests/test.cl
Executable file
|
@ -0,0 +1 @@
|
||||||
|
(write-line "hello world")
|
|
@ -100,3 +100,7 @@ echo '---'
|
||||||
echo 'typescript'
|
echo 'typescript'
|
||||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "tsc --version"
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "tsc --version"
|
||||||
echo '---'
|
echo '---'
|
||||||
|
|
||||||
|
echo 'common lisp'
|
||||||
|
lxc-attach --clear-env -n piston -- /bin/bash -l -c "sbcl --version"
|
||||||
|
echo '---'
|
||||||
|
|
|
@ -240,6 +240,12 @@ echo 'export DENO_INSTALL="/opt/.deno"' >> /opt/.profile
|
||||||
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile
|
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> /opt/.profile
|
||||||
source /opt/.profile
|
source /opt/.profile
|
||||||
|
|
||||||
|
# install common lisp
|
||||||
|
# final binary /usr/bin/sbcl
|
||||||
|
# get version: /usr/bin/sbcl --version
|
||||||
|
# important notice: use sbcl --script to run a clisp file, sbcl enters the REPL
|
||||||
|
apt install -y sbcl
|
||||||
|
|
||||||
# create runnable users and apply limits
|
# create runnable users and apply limits
|
||||||
for i in {1..150}; do
|
for i in {1..150}; do
|
||||||
useradd -M runner$i
|
useradd -M runner$i
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue