mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-12 06:36:27 +02:00
add crystal
This commit is contained in:
parent
f04e046d4b
commit
655b7398b6
6 changed files with 28 additions and 0 deletions
lxc
5
lxc/executors/crystal
Normal file
5
lxc/executors/crystal
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /tmp/$2
|
||||
crystal build code.code
|
||||
timeout -s KILL 3 xargs -a args.args -d '\n' ./code < stdin.stdin
|
|
@ -9,6 +9,8 @@ echo -n 'testing c = '
|
|||
../../cli/execute c c.c
|
||||
echo -n 'testing cpp = '
|
||||
../../cli/execute cpp cpp.cpp
|
||||
echo -n 'testing crystal = '
|
||||
../../cli/execute crystal crystal.cr
|
||||
echo -n 'testing csharp = '
|
||||
../../cli/execute csharp csharp.cs
|
||||
echo -n 'testing deno = '
|
||||
|
|
1
lxc/tests/crystal.cr
Normal file
1
lxc/tests/crystal.cr
Normal file
|
@ -0,0 +1 @@
|
|||
puts "good"
|
|
@ -21,6 +21,10 @@ echo 'cpp'
|
|||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "g++ --version"
|
||||
echo '---'
|
||||
|
||||
echo 'crystal'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "crystal -v"
|
||||
echo '---'
|
||||
|
||||
echo 'csharp'
|
||||
lxc-attach --clear-env -n piston -- /bin/bash -l -c "mcs --version"
|
||||
echo '---'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue