simplify tests (#469)
* simplify tests `chronosPreviewV4` is obsolete * oops
This commit is contained in:
parent
8156e2997a
commit
f0eb7a0ae9
|
@ -23,24 +23,20 @@ let testArguments =
|
|||
when defined(windows):
|
||||
[
|
||||
"-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert",
|
||||
"-d:debug -d:chronosPreviewV4",
|
||||
"-d:release",
|
||||
"-d:release -d:chronosPreviewV4"
|
||||
]
|
||||
else:
|
||||
[
|
||||
"-d:debug -d:chronosDebug -d:useSysAssert -d:useGcAssert",
|
||||
"-d:debug -d:chronosPreviewV4",
|
||||
"-d:debug -d:chronosDebug -d:chronosEventEngine=poll -d:useSysAssert -d:useGcAssert",
|
||||
"-d:release",
|
||||
"-d:release -d:chronosPreviewV4"
|
||||
]
|
||||
|
||||
let styleCheckStyle = if (NimMajor, NimMinor) < (1, 6): "hint" else: "error"
|
||||
let cfg =
|
||||
" --styleCheck:usages --styleCheck:" & styleCheckStyle &
|
||||
" --styleCheck:usages --styleCheck:error" &
|
||||
(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) =
|
||||
exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path
|
||||
|
|
Loading…
Reference in New Issue