瀏覽代碼

[test] fix hl binary test, disable hl http tests for non-Windows platforms

Andy Li 3 年之前
父節點
當前提交
e4e0bfead0
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      tests/runci/targets/Hl.hx

+ 10 - 2
tests/runci/targets/Hl.hx

@@ -78,13 +78,21 @@ class Hl {
 
 		var hlBinary = try {
 			if(!isCi())
-				runCommand(hlBinary);
+				runCommand(hlBinary, ["--version"]);
 			hlBinary;
 		} catch(e:Failure) {
 			'hl';
 		}
 
-		runCommand("haxe", ["compile-hl.hxml"].concat(args));
+		switch (systemName) {
+			case "Windows":
+				runCommand("haxe", ["compile-hl.hxml"].concat(args));
+			case _:
+				runCommand("haxe", [
+					"compile-hl.hxml",
+					"-D", "no_http", // hl's ssl.hdll is only built on Windows
+				].concat(args));
+		}
 		runCommand(hlBinary, ["bin/unit.hl"]);
 
 		changeDirectory(threadsDir);