Check for Windows compilation in the tester.

This commit is contained in:
Dominik Picheta 2017-08-13 15:11:38 +01:00
commit 9f0aae0432

View file

@ -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.