Add wrapper test
This commit is contained in:
parent
e06917f40f
commit
36faf62269
2 changed files with 16 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ when defined(HEADER):
|
|||
cDefine("HEADER")
|
||||
const
|
||||
flags = " -H -d"
|
||||
pHeader = @["header:" & path]
|
||||
pHeader = @["header:" & path.replace("\\", "/")]
|
||||
pHeaderImp = @["importc"] & pHeader
|
||||
else:
|
||||
const
|
||||
|
|
|
|||
15
tests/wrappers.nims
Normal file
15
tests/wrappers.nims
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import os
|
||||
|
||||
let
|
||||
wrappers = @["genotrance/nimarchive", "genotrance/nimgit2"]
|
||||
|
||||
rmDir("wrappers")
|
||||
mkDir("wrappers")
|
||||
withDir("wrappers"):
|
||||
for wrapper in wrappers:
|
||||
let
|
||||
name = wrapper.extractFilename()
|
||||
exec "git clone https://github.com/" & wrapper
|
||||
withDir(name):
|
||||
exec "nimble install -d"
|
||||
exec "nimble test"
|
||||
Loading…
Add table
Add a link
Reference in a new issue