Add tests for passNim feature.

This commit is contained in:
SolitudeSF 2019-07-27 19:38:50 +03:00 committed by Dominik Picheta
commit b5b85489fa
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1 @@
when not defined(passNimIsWorking): {.error: "-d:passNimIsWorking wasn't passed to the compiler"}

View file

@ -0,0 +1,11 @@
# Package
version = "0.1.0"
author = "SolitudeSF"
description = "Test nimble install flag forwarding"
license = "BSD"
bin = @["passNimFlags"]
# Dependencies
requires "nim >= 0.13.0"

View file

@ -840,3 +840,7 @@ test "remove skips packages with revDeps (#504)":
check execNimble("path", "nimboost").exitCode != QuitSuccess
check execNimble("path", "nimfp").exitCode != QuitSuccess
test "pass options to the compiler with `nimble install`":
cd "passNimFlags":
check execNimble("install", "--passNim:-d:passNimIsWorking").exitCode == QuitSuccess