Fixes #27.
This commit is contained in:
parent
dd45dd9418
commit
0cc45d05be
8 changed files with 55 additions and 1 deletions
|
|
@ -1,9 +1,17 @@
|
|||
import osproc, unittest, strutils
|
||||
import osproc, unittest, strutils, os
|
||||
|
||||
const path = "../src/babel"
|
||||
|
||||
discard execCmdEx("nimrod c " & path)
|
||||
|
||||
template cd*(dir: string, body: stmt) =
|
||||
## Sets the current dir to ``dir``, executes ``body`` and restores the
|
||||
## previous working dir.
|
||||
let lastDir = getCurrentDir()
|
||||
setCurrentDir(dir)
|
||||
body
|
||||
setCurrentDir(lastDir)
|
||||
|
||||
test "can install packagebin2":
|
||||
let (outp, exitCode) = execCmdEx(path & " install -y https://github.com/babel-test/packagebin2.git")
|
||||
check exitCode == QuitSuccess
|
||||
|
|
@ -19,3 +27,15 @@ test "can reject same version dependencies":
|
|||
test "can update":
|
||||
let (outp, exitCode) = execCmdEx(path & " update")
|
||||
check exitCode == QuitSuccess
|
||||
|
||||
test "issue #27":
|
||||
# Install b
|
||||
cd "issue27/b":
|
||||
check execCmdEx("../../" & path & " install -y").exitCode == QuitSuccess
|
||||
|
||||
# Install a
|
||||
cd "issue27/a":
|
||||
check execCmdEx("../../" & path & " install -y").exitCode == QuitSuccess
|
||||
|
||||
cd "issue27":
|
||||
check execCmdEx("../" & path & " install -y").exitCode == QuitSuccess
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue