t10231.nim 293 B

1234567891011121314151617
  1. discard """
  2. targets: "cpp"
  3. action: run
  4. exitcode: 0
  5. """
  6. import os
  7. import std/assertions
  8. # consider moving this inside tosproc (taking care that it's for cpp mode)
  9. if paramCount() == 0:
  10. # main process
  11. doAssert execShellCmd(getAppFilename().quoteShell & " test") == 1
  12. else:
  13. quit 1