From bcace601d3ad7a62d255e17465a67f7a17011c05 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Thu, 8 Mar 2018 22:28:41 -0600 Subject: Comment lines feature, remove docopt --- tests/nimgentest.nims | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/nimgentest.nims b/tests/nimgentest.nims index 085b597..b7eb4e7 100644 --- a/tests/nimgentest.nims +++ b/tests/nimgentest.nims @@ -1,7 +1,18 @@ +import distros import ospaths import strutils -for comp in @["nimbass", "nimfuzz", "nimssl", "nimssh2"]: - withDir(".."/comp): - exec "nimble install -y" - exec "nimble test" +var comps = @["libsvm", "nimbass", "nimfuzz", "nimssl", "nimssh2"] +if detectOs(Windows): + comps.add("nimkerberos") + +for comp in comps: + if dirExists(".."/comp): + exec "nimble uninstall -y " & comp + withDir(".."/comp): + rmDir(comp) + exec "nimble install -y" + exec "nimble test" + + exec "nimble install -y" + exec "nimble test" -- cgit v1.2.3