From c44f94818fea9abda5365e3e87f801cde67592fd Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 17 Jul 2022 13:00:39 +0200 Subject: [PATCH] Don't try to run or build the tests on Windows because too hard. --- build.lua | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/build.lua b/build.lua index f8d017725..319571d8a 100644 --- a/build.lua +++ b/build.lua @@ -28,8 +28,10 @@ vars.plats_with_tests = { "pc86", } +local is_windows = os.getenv("OS") == "Windows_NT" + local int = {} -if os.getenv("OS") ~= "Windows_NT" then +if not is_windows then int[#int+1] = "util/int+pkg" end @@ -80,16 +82,29 @@ installable { }, } -normalrule { - name = "tests", - ins = { - "first/testsummary.sh", - test_packages - }, - outleaves = { - "stamp" - }, - commands = { - "%{ins}" +if not is_windows then + normalrule { + name = "tests", + ins = { + "first/testsummary.sh", + test_packages + }, + outleaves = { + "stamp" + }, + commands = { + "%{ins}" + } } -} +else + normalrule { + name = "tests", + ins = {}, + outleaves = { + "stamp" + }, + commands = { + "touch %{outs}" + } + } +end