aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/nimgentest.nims19
1 files changed, 15 insertions, 4 deletions
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"