Skip to content

Commit

Permalink
[tests] Fix cppia sys tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tobil4sk committed Jan 16, 2025
1 parent 55293a3 commit f73a894
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/runci/targets/Cpp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ class Cpp {
runCommand(bin, args);
}

static public function runCppia(script:String, ?args:Array<String>):Void {
static public function runCppia(script:String, ?args:Array<String>, ?run):Void {
if (args == null) args = [];
runCommand(cppiaHost, [script].concat(args));
if (run == null) run = runCommand;
run(cppiaHost, [script].concat(args));
if (!isLinuxArm64) // FIXME
runCommand(cppiaHost, ["-jit", script].concat(args));
run(cppiaHost, ["-jit", script].concat(args));
}

static public function run(args:Array<String>, testCompiled:Bool, testCppia:Bool) {
Expand Down Expand Up @@ -106,7 +107,7 @@ class Cpp {

changeDirectory(sysDir);
runCommand("haxe", ["compile-cppia.hxml"].concat(args));
runCpp(cppiaHost, ["bin/cppia/Main.cppia"]);
runCppia("bin/cppia/Main.cppia", runSysTest);

if (!isLinuxArm64) { // FIXME
changeDirectory(threadsDir);
Expand Down

0 comments on commit f73a894

Please sign in to comment.