testament :show duration also for failed tests; improve tshould_not_work; mitigate #17946 tchannels timeouts (#17947)

* refs #17946; refactor testament test summary, show test duration for failures; increase timeout tchannels

* revert workarounds from https://github.com/nim-lang/Nim/pull/16698 and add allowPrefixMatch optional param to greedyOrderedSubsetLines

* add test

* workaround for yet another testament bug
This commit is contained in:
Timothee Cour
2021-05-08 08:13:47 -07:00
committed by GitHub
parent eba1c3fd24
commit 4e0f38fbb1
21 changed files with 64 additions and 39 deletions

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
ccodecheck: "baz"
"""

View File

@@ -1,6 +1,5 @@
discard """
errormsg: "undeclared identifier: 'undeclared'"
targets: "c"
line: 9
column: 7
"""

View File

@@ -1,6 +1,5 @@
discard """
errormsg: "wrong error message"
targets: "c"
line: 9
column: 6
"""

View File

@@ -1,4 +1,3 @@
discard """
targets: "c"
exitcode: 1
"""

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
errormsg: "undeclared identifier: 'undefined'"
file: "notthisfile.nim"
"""

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
errormsg: "undeclared identifier: 'undeclared'"
line: 10
column: 6

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
maxcodesize: 1
"""

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
nimout: "Hello World!"
action: compile
"""

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
nimout: '''
msg1
msg2

View File

@@ -1,5 +1,4 @@
discard """
targets: "c"
output: '''
done
'''

View File

@@ -1,6 +1,5 @@
discard """
outputsub: "something else"
targets: "c"
"""
echo "Hello World!"

View File

@@ -1,6 +1,5 @@
discard """
action: "reject"
targets: "c"
"""
# Because we set action="reject", we expect this line not to compile. But the

View File

@@ -1,6 +1,5 @@
discard """
sortoutput: true
targets: "c"
output: '''
2
1

View File

@@ -1,6 +1,5 @@
discard """
timeout: "0.1"
targets: "c"
"""
import os

View File

@@ -1,6 +1,5 @@
discard """
valgrind: true
targets: "c"
cmd: "nim $target --gc:arc -d:useMalloc $options $file"
"""