add extra check on ruby and swift tests
This commit is contained in:
parent
a857780f34
commit
f79a168805
|
@ -20,14 +20,14 @@ in piston.mkRuntime {
|
|||
# standard output test
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.rb" = ''
|
||||
"file0.code" = ''
|
||||
puts("OK");
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.rb";
|
||||
main = "file0.code";
|
||||
})
|
||||
# args test
|
||||
(piston.mkTest {
|
||||
|
|
|
@ -3,25 +3,24 @@ let
|
|||
pkg = pkgs.swift;
|
||||
in piston.mkRuntime {
|
||||
language = "swift";
|
||||
version = "5.4.2";
|
||||
version = "5.4.2"; # pkg.version attribute is missing, so pinning it to 5.4.2
|
||||
aliases = [];
|
||||
|
||||
run = ''
|
||||
ls ${pkg}
|
||||
${pkg}/bin/swift -module-cache-path . "$@"
|
||||
'';
|
||||
|
||||
tests = [
|
||||
(piston.mkTest {
|
||||
files = {
|
||||
"test.swift" = ''
|
||||
"file0.code" = ''
|
||||
print("OK");
|
||||
'';
|
||||
};
|
||||
args = [];
|
||||
stdin = "";
|
||||
packages = [];
|
||||
main = "test.swift";
|
||||
main = "file0.code";
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue