Add diamond_deps tests for #184.

This commit is contained in:
Dominik Picheta 2017-08-12 15:59:30 +01:00
commit 79b78ff781
5 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# Package
version = "0.1.0"
author = "Dominik Picheta"
description = "a"
license = "MIT"
# Dependencies
requires "nim >= 0.15.3", "b", "c"
task test, "test":
echo("hello")

View file

@ -0,0 +1,11 @@
# Package
version = "0.1.0"
author = "Dominik Picheta"
description = "b"
license = "MIT"
# Dependencies
requires "nim >= 0.15.3", "d"

View file

@ -0,0 +1,11 @@
# Package
version = "0.1.0"
author = "Dominik Picheta"
description = "c"
license = "MIT"
# Dependencies
requires "nim >= 0.15.3", "d"

View file

@ -0,0 +1,11 @@
# Package
version = "0.1.0"
author = "Dominik Picheta"
description = "d"
license = "MIT"
# Dependencies
requires "nim >= 0.15.3"

View file

@ -405,3 +405,18 @@ test "can dump for installed package":
let (outp, exitCode) = execNimble("dump", "testdump")
check: exitCode == 0
check: outp.processOutput.inLines("desc: \"Test package for dump command\"")
test "can install diamond deps (#184)":
cd "diamond_deps":
cd "d":
check execNimble("install", "-y").exitCode == 0
cd "c":
check execNimble("install", "-y").exitCode == 0
cd "b":
check execNimble("install", "-y").exitCode == 0
cd "a":
# TODO: This doesn't really test anything. But I couldn't quite
# reproduce #184.
let (output, exitCode) = execNimble("install", "-y")
checkpoint(output)
check exitCode == 0