Add executor and test for Nim

This commit is contained in:
Vrganj 2020-10-31 20:02:16 +01:00
parent 47601eda51
commit 5134eb961b
3 changed files with 8 additions and 0 deletions

4
lxc/executors/nim Executable file
View file

@ -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"