mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Add D
This commit is contained in:
parent
b0c462d5ee
commit
ba19844c0e
7 changed files with 30 additions and 0 deletions
|
@ -60,6 +60,9 @@ case "$lang" in
|
|||
"csharp" | "cs" | "c#")
|
||||
bin=csharp
|
||||
;;
|
||||
"d")
|
||||
bin=dmd
|
||||
;;
|
||||
"elixir" | "exs")
|
||||
bin=elixir
|
||||
;;
|
||||
|
|
4
lxc/executors/d
Normal file
4
lxc/executors/d
Normal file
|
@ -0,0 +1,4 @@
|
|||
cd /tmp/$2
|
||||
cp code.code code.d
|
||||
timeout -s KILL 10 dmd code.d
|
||||
runuser runner$1 -c "cd /tmp/$2 ; cat args.args | xargs -d '\n' timeout -s KILL 3 ./code"
|
|
@ -9,6 +9,8 @@ echo 'testing cpp'
|
|||
../execute cpp test.cpp
|
||||
echo 'testing cs'
|
||||
../execute cs test.cs
|
||||
echo 'testing d'
|
||||
../execute d test.d
|
||||
echo 'testing deno ts'
|
||||
../execute deno testdeno.ts
|
||||
echo 'testing elisp'
|
||||
|
|
5
lxc/tests/test.d
Normal file
5
lxc/tests/test.d
Normal file
|
@ -0,0 +1,5 @@
|
|||
import std.stdio;
|
||||
|
||||
void main() {
|
||||
writeln("good");
|
||||
}
|
|
@ -29,6 +29,10 @@ echo "elixir"
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "elixir --version"
|
||||
echo '---'
|
||||
|
||||
echo 'd'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "dmd --version"
|
||||
echo '---'
|
||||
|
||||
echo 'deno'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "deno --version"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue