use targets from test spec when running testament tests (#6687)
This commit is contained in:
parent
870567d083
commit
b122836acf
21 changed files with 124 additions and 113 deletions
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: "hello"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: '''
|
||||
cat
|
||||
cat
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: '''foo
|
||||
bar
|
||||
Need odd and >= 3 digits##
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: ''''''
|
||||
disabled: true
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
cmd: "nim cpp --threads:on $file"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: '''6.0'''
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: '''int
|
||||
float'''
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: '''Hello world'''
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
{.emit: """
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
import nativesockets
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
# bug #2259
|
||||
type Mat4f* = array[0..15, float]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
import tables, lists
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
output: "42"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
type
|
||||
Map {.importcpp: "std::map", header: "<map>".} [T,U] = object
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
cmd: "nim cpp --hints:on --threads:on $options $file"
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
output: '''100'''
|
||||
cmd: "nim cpp $file"
|
||||
"""
|
||||
|
||||
import typeinfo
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
"""
|
||||
# bug #2841
|
||||
import typeinfo
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
{.emit: """
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
targets: "cpp"
|
||||
output: '''(x: 1.0)
|
||||
(x: 0.0)'''
|
||||
cmd: "nim cpp $file"
|
||||
disabled: "true"
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue