Added test for #206

This commit is contained in:
Yuriy Glukhov 2016-02-15 11:57:50 +02:00
commit 2fdc267ba7
3 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,2 @@
echo "Hello"

View file

@ -0,0 +1,10 @@
# Package
version = "0.1.0"
author = "Yuriy Glukhov"
description = "Test package for Issue 206"
license = "BSD"
bin = @["issue/issue206bin"]
# Dependencies
requires "nimrod >= 0.9.3"

View file

@ -179,6 +179,13 @@ test "issue #108":
check exitCode != QuitSuccess check exitCode != QuitSuccess
check "Nothing to build" in lines[^1] check "Nothing to build" in lines[^1]
test "issue #206":
cd "issue206":
var (output, exitCode) = execCmdEx("../" & path & " install -y")
check exitCode == QuitSuccess
(output, exitCode) = execCmdEx("../" & path & " install -y")
check exitCode == QuitSuccess
test "can list": test "can list":
check execCmdEx(path & " list").exitCode == QuitSuccess check execCmdEx(path & " list").exitCode == QuitSuccess