add scala

This commit is contained in:
Sirius902 2021-02-04 20:03:17 -08:00
parent 6615ec4519
commit 48d3e39f9a
7 changed files with 29 additions and 0 deletions

4
lxc/executors/scala Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cp code.code interim.scala
timeout -s KILL 10 xargs -a args.args -d '\n' scala interim.scala < stdin.stdin

View file

@ -60,6 +60,8 @@ echo -n 'testing ruby = '
../../cli/execute ruby ruby.rb
echo -n 'testing rust = '
../../cli/execute rust rust.rs
echo -n 'testing scala = '
../../cli/execute scala scala.scala
echo -n 'testing swift = '
../../cli/execute swift swift.swift
echo -n 'testing typescript = '

3
lxc/tests/scala.scala Normal file
View file

@ -0,0 +1,3 @@
object Test extends App {
println("good")
}

View file

@ -125,6 +125,10 @@ echo 'rust'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "rustc --version"
echo '---'
echo 'scala'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "scala -version"
echo '---'
echo 'swift'
lxc-attach --clear-env -n piston -- /bin/bash -l -c "swift --version"
echo '---'