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
|
# standard output test
|
||||||
(piston.mkTest {
|
(piston.mkTest {
|
||||||
files = {
|
files = {
|
||||||
"test.rb" = ''
|
"file0.code" = ''
|
||||||
puts("OK");
|
puts("OK");
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
args = [];
|
args = [];
|
||||||
stdin = "";
|
stdin = "";
|
||||||
packages = [];
|
packages = [];
|
||||||
main = "test.rb";
|
main = "file0.code";
|
||||||
})
|
})
|
||||||
# args test
|
# args test
|
||||||
(piston.mkTest {
|
(piston.mkTest {
|
||||||
|
|
|
@ -3,25 +3,24 @@ let
|
||||||
pkg = pkgs.swift;
|
pkg = pkgs.swift;
|
||||||
in piston.mkRuntime {
|
in piston.mkRuntime {
|
||||||
language = "swift";
|
language = "swift";
|
||||||
version = "5.4.2";
|
version = "5.4.2"; # pkg.version attribute is missing, so pinning it to 5.4.2
|
||||||
aliases = [];
|
aliases = [];
|
||||||
|
|
||||||
run = ''
|
run = ''
|
||||||
ls ${pkg}
|
|
||||||
${pkg}/bin/swift -module-cache-path . "$@"
|
${pkg}/bin/swift -module-cache-path . "$@"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
(piston.mkTest {
|
(piston.mkTest {
|
||||||
files = {
|
files = {
|
||||||
"test.swift" = ''
|
"file0.code" = ''
|
||||||
print("OK");
|
print("OK");
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
args = [];
|
args = [];
|
||||||
stdin = "";
|
stdin = "";
|
||||||
packages = [];
|
packages = [];
|
||||||
main = "test.swift";
|
main = "file0.code";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
Loading…
Reference in New Issue