Use testament to check Norm test pass (#19018)

* Use testament to check Norm test pass

This is what I actually use to test Norm, so it's better to use it.

This should not currently pass. This is expected because this is exactly the problem I want to highlight with this PR. My tests do indeed not pass at the moment.

* Remove clearNimblePath from testament command.

Co-authored-by: flywind <xzsflywind@gmail.com>
This commit is contained in:
Constantine Molchanov 2021-11-03 11:16:24 +03:00 • committed by GitHub
commit b2edc3468c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ pkg "nimterop", "nimble minitest"
pkg "nimwc", "nim c nimwc.nim" pkg "nimwc", "nim c nimwc.nim"
pkg "nimx", "nim c --threads:on test/main.nim", allowFailure = true pkg "nimx", "nim c --threads:on test/main.nim", allowFailure = true
pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter" pkg "nitter", "nim c src/nitter.nim", "https://github.com/zedeus/nitter"
pkg "norm", "nim c -r tests/sqlite/trows.nim" pkg "norm", "testament r tests/sqlite/trows.nim"
pkg "npeg", "nimble testarc" pkg "npeg", "nimble testarc"
pkg "numericalnim", "nim c -r tests/test_integrate.nim" pkg "numericalnim", "nim c -r tests/test_integrate.nim"
pkg "optionsutils" pkg "optionsutils"

View file

@ -103,7 +103,7 @@ type
proc getCmd*(s: TSpec): string = proc getCmd*(s: TSpec): string =
if s.cmd.len == 0: if s.cmd.len == 0:
result = compilerPrefix & " $target --hints:on -d:testing --clearNimblePath --nimblePath:build/deps/pkgs $options $file" result = compilerPrefix & " $target --hints:on -d:testing --nimblePath:build/deps/pkgs $options $file"
else: else:
result = s.cmd result = s.cmd