Merge pull request #71 from Sirius902/master

Add Scala
This commit is contained in:
Brian Seymour 2021-02-05 16:10:49 -06:00 committed by GitHub
commit d19d3faeba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 32 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 @@
@main def run(): Unit = {
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 '---'