simplify tests (#469)

* simplify tests

`chronosPreviewV4` is obsolete

* oops
This commit is contained in:
Jacek Sieka 2023-11-13 10:54:37 +01:00 committed by GitHub
parent 8156e2997a
commit f0eb7a0ae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 7 deletions

View File

@ -23,24 +23,20 @@ let testArguments =
when defined(windows): when defined(windows):
[ [
"-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert", "-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert",
"-d:debug -d:chronosPreviewV4",
"-d:release", "-d:release",
"-d:release -d:chronosPreviewV4"
] ]
else: else:
[ [
"-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert", "-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert",
"-d:debug -d:chronosPreviewV4",
"-d:debug -d:chronosDebug -d:chronosEventEngine=poll -d:useSysAssert -d:useGcAssert", "-d:debug -d:chronosDebug -d:chronosEventEngine=poll -d:useSysAssert -d:useGcAssert",
"-d:release", "-d:release",
"-d:release -d:chronosPreviewV4"
] ]
let styleCheckStyle = if (NimMajor, NimMinor) < (1, 6): "hint" else: "error"
let cfg = let cfg =
" --styleCheck:usages --styleCheck:" & styleCheckStyle & " --styleCheck:usages --styleCheck:error" &
(if verbose: "" else: " --verbosity:0 --hints:off") & (if verbose: "" else: " --verbosity:0 --hints:off") &
" --skipParentCfg --skipUserCfg --outdir:build --nimcache:build/nimcache -f" " --skipParentCfg --skipUserCfg --outdir:build " &
quoteShell("--nimcache:build/nimcache/$projectName")
proc build(args, path: string) = proc build(args, path: string) =
exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path

1
nim.cfg Normal file
View File

@ -0,0 +1 @@
nimcache = "build/nimcache/$projectName"