Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jul 15, 2021
1 parent 7efe5ea commit 24c7cdf
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/nimble/mmoduleoverride.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
discard """
matrix: "--moduleoverride:pkgC/module2:std/foo2b:$nim_prs_D/lib/"
# matrix: "--moduleoverride:std/foo2:std/foo2b:$nim_prs_D/lib/"
"""
import std/strutils
import pkgA/module2 as A
import pkgB/module2 as B
import pkgC/module2 as C
5 changes: 5 additions & 0 deletions tests/nimble/mmoduleoverride.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
switch("clearNimblePath")
switch("nimblePath", "$projectdir/nimbleDir/simplePkgs")
switch("path", "$nimblepath/pkgA-0.1.0")
switch("path", "$nimblepath/pkgB-#head")
switch("path", "$nimblepath/pkgC-#head")
2 changes: 2 additions & 0 deletions tests/nimble/nimbleDir/simplePkgs/pkgA-0.1.0/pkgA/module2.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
static: echo "in pkgA.module2"
import pkgC/module2
2 changes: 2 additions & 0 deletions tests/nimble/nimbleDir/simplePkgs/pkgB-#head/pkgB/module2.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
static: echo "in pkgB.module2"
import pkgC/module2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static: echo "in pkgC.module2"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static: echo "in pkgC.module2b"

0 comments on commit 24c7cdf

Please sign in to comment.