From 010067f3cc43f24991731d644d1abc70a07d5f38 Mon Sep 17 00:00:00 2001 From: genotrance Date: Thu, 28 Nov 2019 06:58:38 -0600 Subject: Substitute $nimbleDir in --path flags (#12750) --- tests/nimble/tnimblepathdollar.nim | 7 +++++++ tests/nimble/tnimblepathdollar.nims | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 tests/nimble/tnimblepathdollar.nim create mode 100644 tests/nimble/tnimblepathdollar.nims (limited to 'tests/nimble') diff --git a/tests/nimble/tnimblepathdollar.nim b/tests/nimble/tnimblepathdollar.nim new file mode 100644 index 000000000..994d975bb --- /dev/null +++ b/tests/nimble/tnimblepathdollar.nim @@ -0,0 +1,7 @@ +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" diff --git a/tests/nimble/tnimblepathdollar.nims b/tests/nimble/tnimblepathdollar.nims new file mode 100644 index 000000000..ff45366a8 --- /dev/null +++ b/tests/nimble/tnimblepathdollar.nims @@ -0,0 +1,5 @@ +switch("nimblePath", "$projectdir/nimbleDir/simplePkgs") +switch("path", "$nimblepath/pkgA-0.1.0") +switch("path", "$nimblepath/pkgB-#head") +switch("path", "$nimblepath/pkgC-#head") +switch("noNimblePath") -- cgit 1.4.1-2-gfad0