Add tests for passNim feature.
This commit is contained in:
parent
5ec2ecea77
commit
b5b85489fa
3 changed files with 16 additions and 0 deletions
1
tests/passNimFlags/passNimFlags.nim
Normal file
1
tests/passNimFlags/passNimFlags.nim
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
when not defined(passNimIsWorking): {.error: "-d:passNimIsWorking wasn't passed to the compiler"}
|
||||||
11
tests/passNimFlags/passNimFlags.nimble
Normal file
11
tests/passNimFlags/passNimFlags.nimble
Normal 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"
|
||||||
|
|
@ -840,3 +840,7 @@ test "remove skips packages with revDeps (#504)":
|
||||||
|
|
||||||
check execNimble("path", "nimboost").exitCode != QuitSuccess
|
check execNimble("path", "nimboost").exitCode != QuitSuccess
|
||||||
check execNimble("path", "nimfp").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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue