From 9f0aae0432abf99d4232e073dd9a8b0d6ea0c28e Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 13 Aug 2017 15:11:38 +0100 Subject: [PATCH] Check for Windows compilation in the tester. --- tests/tester.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/tester.nim b/tests/tester.nim index 603023b..af544f9 100644 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -18,6 +18,9 @@ createDir(installDir) test "can compile nimble": check execCmdEx("nim c " & path).exitCode == QuitSuccess +test "can compile with --os:windows": + check execCmdEx("nim check --os:windows " & path).exitCode == QuitSuccess + template cd*(dir: string, body: untyped) = ## Sets the current dir to ``dir``, executes ``body`` and restores the ## previous working dir.