Skip to content

Commit

Permalink
Add some thread tests (and fix eval) (HaxeFoundation#7992)
Browse files Browse the repository at this point in the history
* keep track of who owns a mutex

* factor out and fix Deque

* use a proper Deque for thread messaging

* turns out readMessage is actually static

* try to run some threads tests

* casing is important you dirty Windows peasant

* add Deque test

* disable Deque test for Java

* allow lock timeout

* use less threads because AppVeyor chokes

* don't run thread tests for now
  • Loading branch information
Simn authored Mar 15, 2019
1 parent fa6a0f3 commit edb633c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/runci/Config.hx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Config {
static public final serverDir = cwd + "server/";
static public final sourcemapsDir = cwd + "sourcemaps/";
static public final nullSafetyDir = cwd + "nullsafety/";
static public final threadsDir = cwd + "threads/";

static public final ci:Null<Ci> =
if (Sys.getEnv("TRAVIS") == "true")
Expand Down
4 changes: 4 additions & 0 deletions tests/runci/targets/Java.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class Java {
runCommand("haxe", ["compile-java.hxml"]);
runCommand("java", ["-jar", "bin/java/Main-Debug.jar"]);

// changeDirectory(threadsDir);
// runCommand("haxe", ["build.hxml", "-java", "export/java"]);
// runCommand("java", ["-jar", "export/java/Main.jar"]);

infoMsg("Testing java-lib extras");
changeDirectory('$unitDir/bin');
runCommand("git", ["clone", "https://github.com/waneck/java-lib-tests.git", "--depth", "1"], true);
Expand Down
3 changes: 3 additions & 0 deletions tests/runci/targets/Macro.hx
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ class Macro {
changeDirectory(sysDir);
runCommand("haxe", ["compile-macro.hxml"]);
runCommand("haxe", ["compile-each.hxml", "--run", "Main"]);

// changeDirectory(threadsDir);
// runCommand("haxe", ["build.hxml", "--interp"]);
}
}
4 changes: 4 additions & 0 deletions tests/runci/targets/Neko.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ class Neko {
changeDirectory(sysDir);
runCommand("haxe", ["compile-neko.hxml"]);
runCommand("neko", ["bin/neko/sys.n"]);

// changeDirectory(threadsDir);
// runCommand("haxe", ["build.hxml", "-neko", "export/threads.n"]);
// runCommand("neko", ["export/threads.n"]);
}
}

0 comments on commit edb633c

Please sign in to comment.