Add wrapper test

This commit is contained in:
Ganesh Viswanathan 2020-03-30 15:56:05 -05:00
commit 36faf62269
2 changed files with 16 additions and 1 deletions

View file

@ -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
View 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"