diff options
author | David Kalnischkies <david@kalnischkies.de> | 2015-09-12 10:35:49 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2015-09-14 15:22:19 +0200 |
commit | 7414af7fa88164209eec9c585b8d175c1618ecbc (patch) | |
tree | 2a582637043bd8c57d43bf8b193dd9ecb479d559 /test/integration/framework | |
parent | 7c4f1ca5fe315a8223570b05994d6d7ca7c55c4f (diff) |
various changes to increase test-coverage
And of course, testing obscure things ends up showing obscure 'bugs' or
better shortcomings/inconsitencies, so lets fix them with the tests.
Git-Dch: Ignore
Diffstat (limited to 'test/integration/framework')
-rw-r--r-- | test/integration/framework | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/test/integration/framework b/test/integration/framework index 3bf6012ba..322c74a21 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -1592,29 +1592,30 @@ testfailure() { msggroup } -testsuccessequal() { - msggroup 'testsuccessequal' - local CMP="$1" - shift - testsuccess "$@" - testfileequal "${TMPWORKINGDIRECTORY}/rootdir/tmp/testsuccess.output" "$CMP" +testreturnstateequal() { + local STATE="$1" + msggroup "${STATE}equal" + if [ "$2" != '--nomsg' ]; then + local CMP="$2" + shift 2 + "$STATE" "$@" + testfileequal "${TMPWORKINGDIRECTORY}/rootdir/tmp/${STATE}.output" "$CMP" + else + local CMP="$3" + shift 3 + "$STATE" --nomsg "$@" + testfileequal "${TMPWORKINGDIRECTORY}/rootdir/tmp/${STATE}.output" "$CMP" + fi msggroup } +testsuccessequal() { + testreturnstateequal 'testsuccess' "$@" +} testwarningequal() { - msggroup 'testwarningequal' - local CMP="$1" - shift - testwarning "$@" - testfileequal "${TMPWORKINGDIRECTORY}/rootdir/tmp/testwarning.output" "$CMP" - msggroup + testreturnstateequal 'testwarning' "$@" } testfailureequal() { - msggroup 'testfailureequal' - local CMP="$1" - shift - testfailure "$@" - testfileequal "${TMPWORKINGDIRECTORY}/rootdir/tmp/testfailure.output" "$CMP" - msggroup + testreturnstateequal 'testfailure' "$@" } testfailuremsg() { |