Permalink
Browse files

Tests for failing test line numbers implemented.

  • Loading branch information...
taavi-valjaots committed Mar 12, 2018
1 parent 0c1d229 commit 4d5a89c9422bc8538be1ac5f3747b8277428ee76
@@ -0,0 +1,9 @@
# 1. Test if macros are replaced and tests are successful.
shelltest tests/format1/one-failing-test
>>> /.*Command [(]at line 8[)].*
.*plahh.*
.*Expected stdout.*
.*slahh.*
.*Got stdout.*
.*plahh.*/
>>>= 1
@@ -0,0 +1,15 @@
# Note that this file is called from 'failure-line.test'
# This should be fine.
echo "plahh"
>>> /plahh/
>>>= 0

# This should be broken.
echo "plahh"
>>> /slahh/
>>>= 0

# This should be fine.
echo "plahh"
>>> /plahh/
>>>= 0
@@ -0,0 +1,9 @@
# 1. Test if macros are replaced and tests are successful.
shelltest tests/format1/one-failing-test
>>> /.*Command [(]at line 8[)].*
.*plahh.*
.*Expected stdout.*
.*slahh.*
.*Got stdout.*
.*plahh.*/
>>>= 1
@@ -0,0 +1,15 @@
# Note that this file is called from 'failure-line.test'
# This should be fine.
$$$ echo "plahh"
>>> /plahh/
>>>= 0

# This should be broken.
$$$ echo "plahh"
>>> /slahh/
>>>= 0

# This should be fine.
$$$ echo "plahh"
>>> /plahh/
>>>= 0
@@ -0,0 +1,9 @@
# 1. Test if macros are replaced and tests are successful.
shelltest tests/format1/one-failing-test
>>> /.*Command [(]at line 8[)].*
.*plahh.*
.*Expected stdout.*
.*slahh.*
.*Got stdout.*
.*plahh.*/
>>>= 1
@@ -0,0 +1,15 @@
# Note that this file is called from 'failure-line.test'
# This should be fine.
$ echo "plahh"
> /plahh/
>= 0

# This should be broken.
$ echo "plahh"
> /slahh/
>= 0

# This should be fine.
$ echo "plahh"
> /plahh/
>= 0

0 comments on commit 4d5a89c

Please sign in to comment.