diff --git a/lxc/executors/lisp b/lxc/executors/lisp new file mode 100644 index 0000000..6453985 --- /dev/null +++ b/lxc/executors/lisp @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /tmp/$2 +timeout -s KILL 3 xargs -a args.args -d '\n' sbcl --script code.code < stdin.stdin diff --git a/lxc/test_all_lxc b/lxc/test_all_lxc index ba64572..bc77524 100755 --- a/lxc/test_all_lxc +++ b/lxc/test_all_lxc @@ -29,6 +29,8 @@ echo -n 'testing julia = ' ../../cli/execute julia julia.jl echo -n 'testing kotlin = ' ../../cli/execute kotlin kotlin.kt +echo -n 'testing lisp = ' +../../cli/execute lisp lisp.cl echo -n 'testing nasm 32 bit = ' ../../cli/execute nasm nasm.nasm echo -n 'testing nasm 64 bit = ' diff --git a/lxc/tests/lisp.cl b/lxc/tests/lisp.cl new file mode 100644 index 0000000..77b5dc7 --- /dev/null +++ b/lxc/tests/lisp.cl @@ -0,0 +1 @@ +(write-line "good") diff --git a/shared/languages.json b/shared/languages.json index b158de2..fe6fc67 100644 --- a/shared/languages.json +++ b/shared/languages.json @@ -38,6 +38,15 @@ "c" ] }, + { + "name": "lisp", + "aliases": [ + "lisp", + "commonlisp", + "clisp", + "cl" + ] + }, { "name": "csharp", "aliases": [ diff --git a/var/install.txt b/var/install.txt index f023ea7..a03f4fa 100644 --- a/var/install.txt +++ b/var/install.txt @@ -20,7 +20,7 @@ apt-get update apt-get install -y \ nano wget build-essential pkg-config libxml2-dev \ libsqlite3-dev mono-complete curl cmake libpython2.7-dev \ - ruby libtinfo-dev unzip git openssl libssl-dev + ruby libtinfo-dev unzip git openssl libssl-dev sbcl # install python2 # final binary: /opt/python2/Python-2.7.17/python @@ -222,7 +222,6 @@ cd Brainfuck-interpreter echo 'export PATH=$PATH:/opt/bf/Brainfuck-interpreter' >> /opt/.profile source /opt/.profile - # create runnable users and apply limits for i in {1..150}; do useradd -M runner$i