runnableExamples: keep (gitignored) generated foo_examples.nim for inspection even on success (#8544)
This commit is contained in:
parent
ba5e2d6fcb
commit
c352329714
2 changed files with 5 additions and 4 deletions
|
|
@ -92,7 +92,7 @@ const
|
||||||
warnResultShadowed: "Special variable 'result' is shadowed.",
|
warnResultShadowed: "Special variable 'result' is shadowed.",
|
||||||
warnInconsistentSpacing: "Number of spaces around '$#' is not consistent",
|
warnInconsistentSpacing: "Number of spaces around '$#' is not consistent",
|
||||||
warnUser: "$1",
|
warnUser: "$1",
|
||||||
hintSuccess: "operation successful",
|
hintSuccess: "operation successful: $#",
|
||||||
hintSuccessX: "operation successful ($# lines compiled; $# sec total; $#; $#)",
|
hintSuccessX: "operation successful ($# lines compiled; $# sec total; $#; $#)",
|
||||||
hintCC: "CC: \'$1\'", # unused
|
hintCC: "CC: \'$1\'", # unused
|
||||||
hintLineTooLong: "line too long",
|
hintLineTooLong: "line too long",
|
||||||
|
|
@ -169,8 +169,8 @@ proc computeNotesVerbosity(): array[0..3, TNoteKinds] =
|
||||||
result[1] = result[2] - {warnShadowIdent, warnProveField, warnProveIndex,
|
result[1] = result[2] - {warnShadowIdent, warnProveField, warnProveIndex,
|
||||||
warnGcUnsafe, hintPath, hintDependency, hintCodeBegin, hintCodeEnd,
|
warnGcUnsafe, hintPath, hintDependency, hintCodeBegin, hintCodeEnd,
|
||||||
hintSource, hintGlobalVar, hintGCStats}
|
hintSource, hintGlobalVar, hintGCStats}
|
||||||
result[0] = result[1] - {hintSuccessX, hintConf, hintProcessing,
|
result[0] = result[1] - {hintSuccessX, hintSuccess, hintConf,
|
||||||
hintPattern, hintExecuting, hintLinking}
|
hintProcessing, hintPattern, hintExecuting, hintLinking}
|
||||||
|
|
||||||
const
|
const
|
||||||
NotesVerbosity* = computeNotesVerbosity()
|
NotesVerbosity* = computeNotesVerbosity()
|
||||||
|
|
|
||||||
|
|
@ -621,7 +621,8 @@ proc testExamples(c: PContext) =
|
||||||
if os.execShellCmd(os.getAppFilename() & " " & backend & " --nimcache:" & nimcache & " -r " & outp) != 0:
|
if os.execShellCmd(os.getAppFilename() & " " & backend & " --nimcache:" & nimcache & " -r " & outp) != 0:
|
||||||
quit "[Examples] failed: see " & outp
|
quit "[Examples] failed: see " & outp
|
||||||
else:
|
else:
|
||||||
removeFile(outp)
|
# keep generated source file `outp` to allow inspection.
|
||||||
|
rawMessage(c.config, hintSuccess, ["runnableExamples: " & outp])
|
||||||
removeFile(outp.changeFileExt(ExeExt))
|
removeFile(outp.changeFileExt(ExeExt))
|
||||||
try:
|
try:
|
||||||
removeDir(nimcache)
|
removeDir(nimcache)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue