Add readme to tests. Add fileDir option to testament & create nimble test.
This commit is contained in:
parent
c9e093d61d
commit
9b465a2361
17 changed files with 151 additions and 49 deletions
11
tests/nimble/tnimblepath.nim
Normal file
11
tests/nimble/tnimblepath.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
action: run
|
||||
cmd: "nim $target --nimblePath:$fileDir/nimbleDir/simplePkgs $options $file"
|
||||
"""
|
||||
import pkgA/module as A
|
||||
import pkgB/module as B
|
||||
import pkgC/module as C
|
||||
|
||||
doAssert pkgATest() == 1, "Simple pkgA-0.1.0 wasn't added to path correctly."
|
||||
doAssert pkgBTest() == 0xDEADBEEF, "pkgB-#head wasn't picked over pkgB-0.1.0"
|
||||
doAssert pkgCTest() == 0xDEADBEEF, "pkgC-#head wasn't picked over pkgC-#aa11"
|
||||
Loading…
Add table
Add a link
Reference in a new issue