summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-11-13 15:21:14 +0100
committerAraq <rumpf_a@web.de>2018-11-23 11:58:28 +0100
commit031bfdec6f7798b99cc7bf9473a08048228c3d2a (patch)
treebd9b3ee9fbbaca154f37649f7f3cabe59cfdc349 /tests/modules
parent610283b9b0d48b1714bef2969b402b77410ce4dd (diff)
downloadNim-031bfdec6f7798b99cc7bf9473a08048228c3d2a.tar.gz
make run the default action of a test in tester
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/t8665.nim4
-rw-r--r--tests/modules/texport2.nim9
2 files changed, 12 insertions, 1 deletions
diff --git a/tests/modules/t8665.nim b/tests/modules/t8665.nim
index 51538df79..74d31452f 100644
--- a/tests/modules/t8665.nim
+++ b/tests/modules/t8665.nim
@@ -1 +1,5 @@
+discard """
+  action: compile
+"""
+
 import treorder
diff --git a/tests/modules/texport2.nim b/tests/modules/texport2.nim
index 6e55873c5..e90c58673 100644
--- a/tests/modules/texport2.nim
+++ b/tests/modules/texport2.nim
@@ -1,9 +1,16 @@
+discard """
+output: '''
+abc
+xyz
+B.foo
+'''
+"""
+
 # bug #1595, #1612
 
 import mexport2a
 
 proc main() =
-  echo "Import Test, two lines should follow. One with abc and one with xyz."
   printAbc()
   printXyz()