Browse Source

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

Andy Li 3 năm trước cách đây
mục cha
commit
e4e0bfead0
1 tập tin đã thay đổi với 10 bổ sung2 xóa
  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);