activated more tests, allow input in test spec

This commit is contained in:
Arne Döring 2018-11-15 01:57:02 +01:00 • committed by Araq
commit 9c2365d5c2
26 changed files with 223 additions and 124 deletions

View file

@ -1,3 +1,14 @@
discard """
output: '''
to stdout
to stdout
to stderr
to stderr
to stdout
to stdout
'''
"""
# This file is prefixed with an "a", because other tests
# depend on it and it must be compiled first.
stdout.writeLine("to stdout")

View file

@ -1,3 +1,7 @@
discard """
exitcode: 1
"""
# 'tafalse.nim' to ensure it is compiled before texitcode.nim
import system
quit(QuitFailure)

View file

@ -2,6 +2,7 @@ discard """
file: "texitcode.nim"
output: ""
"""
import osproc, os
const filename = when defined(Windows): "tafalse.exe" else: "tafalse"