mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
16 lines
271 B
Nim
16 lines
271 B
Nim
discard """
|
|
targets: "cpp"
|
|
action: run
|
|
exitcode: 0
|
|
"""
|
|
|
|
import os
|
|
|
|
# consider moving this inside tosproc (taking care that it's for cpp mode)
|
|
|
|
if paramCount() == 0:
|
|
# main process
|
|
doAssert execShellCmd(getAppFilename().quoteShell & " test") == 1
|
|
else:
|
|
quit 1
|