Nim/tests/testament/tshould_not_work.nim
n5m 066f3ebc2a
add tests for Testament "reject" action (#15709)
* add test for reject action

* highlight that a compilation failure is expected

* add the converse test for action=reject

* add trailing newline

* fix wording
2020-10-27 08:48:14 +01:00

39 lines
1.1 KiB
Nim

discard """
cmd: "testament/testament --directory:testament --colors:off --backendLogging:off --nim:../compiler/nim category shouldfail"
action: compile
nimout: '''
FAIL: tests/shouldfail/tccodecheck.nim C
Failure: reCodegenFailure
Expected:
baz
FAIL: tests/shouldfail/tcolumn.nim C
Failure: reLinesDiffer
FAIL: tests/shouldfail/terrormsg.nim C
Failure: reMsgsDiffer
FAIL: tests/shouldfail/texitcode1.nim C
Failure: reExitcodesDiffer
FAIL: tests/shouldfail/tfile.nim C
Failure: reFilesDiffer
FAIL: tests/shouldfail/tline.nim C
Failure: reLinesDiffer
FAIL: tests/shouldfail/tmaxcodesize.nim C
Failure: reCodegenFailure
max allowed size: 1
FAIL: tests/shouldfail/tnimout.nim C
Failure: reMsgsDiffer
FAIL: tests/shouldfail/toutput.nim C
Failure: reOutputsDiffer
FAIL: tests/shouldfail/toutputsub.nim C
Failure: reOutputsDiffer
FAIL: tests/shouldfail/treject.nim C
Failure: reFilesDiffer
FAIL: tests/shouldfail/tsortoutput.nim C
Failure: reOutputsDiffer
FAIL: tests/shouldfail/ttimeout.nim C
Failure: reTimeout
FAIL: tests/shouldfail/tvalgrind.nim C
Failure: reExitcodesDiffer
'''
"""
# xxx `--nim:../compiler/nim`, doesn't seem correct (and should also honor `testament --nim`)