This commit is contained in:
Brian Seymour 2021-01-23 15:05:10 -06:00
commit ed773d26d3
7 changed files with 35 additions and 0 deletions

6
lxc/executors/d Normal file
View file

@ -0,0 +1,6 @@
#!/bin/bash
cd /tmp/$2
cp code.code code.d
timeout -s KILL 10 dmd code.d
xtimeout -s KILL 3 args -a args.args -d '\n' ./code

View file

@ -13,6 +13,8 @@ echo -n 'testing crystal = '
../../cli/execute crystal crystal.cr
echo -n 'testing csharp = '
../../cli/execute csharp csharp.cs
echo -n 'testing d = '
../../cli/execute d test.d
echo -n 'testing deno = '
../../cli/execute deno deno.ts
echo -n 'testing elixir = '

5
lxc/tests/test.d Normal file
View file

@ -0,0 +1,5 @@
import std.stdio;
void main() {
writeln("good");
}

View file

@ -33,6 +33,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 '---'