testerscript.nim: change nim cache directory for tests

This commit is contained in:
Anna “CyberTailor” 2023-05-02 18:26:32 +05:00
parent f2176b4b6f
commit b4ca001a03
Signed by: CyberTaIlor
GPG Key ID: E7B76EDC50864BB1
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2023-05-02 Anna <cyber@sysrq.in>
* testerscript.nim: change nim cache directory for tests
2023-04-27 Anna <cyber@sysrq.in>
* 1.1.0, 1.1.1 tagged

View File

@ -18,10 +18,7 @@ const
withDir($4):
for test in listFiles("tests"):
if test.startsWith("tests/t") and test.endsWith(".nim"):
let nimCacheDir = nimCacheBaseDir / test.multiReplace(
("/", "_"),
("\\", "_")
)
let nimCacheDir = nimCacheBaseDir / test.changeFileExt("")
echo "-- Running test ", test, "..."
exec fmt"{nimBin} --hints:off {nimFlags} r" &
fmt" --nimcache:{nimCacheDir.quoteShell} {test.quoteShell}"