add extra check on ruby and swift tests

This commit is contained in:
Dan Vargas 2022-02-03 20:00:14 -07:00
parent a857780f34
commit f79a168805
2 changed files with 5 additions and 6 deletions

View File

@ -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 {

View File

@ -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";
})
];
}