diff --git a/lxc/executors/nim b/lxc/executors/nim new file mode 100755 index 0000000..c6e6caf --- /dev/null +++ b/lxc/executors/nim @@ -0,0 +1,4 @@ +cd /tmp/$2 +timeout -s KILL 10 nim --hints:off c code.code +runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./code" + diff --git a/lxc/tests/test.nim b/lxc/tests/test.nim new file mode 100644 index 0000000..bd50e25 --- /dev/null +++ b/lxc/tests/test.nim @@ -0,0 +1 @@ +echo("good") diff --git a/lxc/versions b/lxc/versions index c53e779..31bcd39 100755 --- a/lxc/versions +++ b/lxc/versions @@ -69,6 +69,9 @@ echo 'nasm' lxc-attach --clear-env -n piston -- /bin/bash -l -c "nasm -version" echo '---' +echo 'nim' +lxc-attack --clear-env -n piston -- /bin/bash -l -c "nim -v | head -n1" + echo 'node' lxc-attach --clear-env -n piston -- /bin/bash -l -c "node --version" echo '---'