add support for elisp scripts

This commit is contained in:
Gianluca Recchia 2020-02-29 17:29:22 +01:00
parent 7bc9b5b63a
commit 1e0b44c8a7
No known key found for this signature in database
GPG Key ID: 3C2B4128D9A1F218
3 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,9 @@ case "$lang" in
"rust")
bin=rust
;;
"elisp" | "el")
bin=emacs
;;
"bash")
bin=bash
;;

2
lxc/executors/emacs Normal file
View File

@ -0,0 +1,2 @@
cd /tmp/$2
runuser -l runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 emacs -Q --script code.code"

1
tests/test.el Normal file
View File

@ -0,0 +1 @@
(message "good")