3b42e098ef
The Test Anything Protocol (TAP), was originally Perl's simple text-based interface between testing modules and test harnesses, but has since been adopted by a large number of producers and consumers in many different languages, which allows colorizing and summarizing test results. The format is very simple: TAP version 13 ok 1 - test description not ok 2 - test description --- message: 'Failure message' severity: fail expected: 123 actual: 456 ... ok 3 - test description # SKIP 1..3 The specification [1] is very brief, so the implementation has been based on how typical consumers behave, especially when it comes to the undefined diagnostics block. [1] http://testanything.org/tap-version-13-specification.html Change-Id: I616e802ea380165c678510e940ddc6607d39c92d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
TAP version 13
|
|
# tst_globaldata
|
|
# initTestCase initTestCase (null)
|
|
ok 1 - initTestCase()
|
|
# init testGlobal local 1
|
|
# global: false
|
|
# local: false
|
|
# cleanup testGlobal local 1
|
|
ok 2 - testGlobal(1:local 1)
|
|
# init testGlobal local 2
|
|
# global: false
|
|
# local: true
|
|
# cleanup testGlobal local 2
|
|
ok 3 - testGlobal(1:local 2)
|
|
# init testGlobal local 1
|
|
# global: true
|
|
# local: false
|
|
# cleanup testGlobal local 1
|
|
ok 4 - testGlobal(2:local 1)
|
|
# init testGlobal local 2
|
|
# global: true
|
|
# local: true
|
|
# cleanup testGlobal local 2
|
|
ok 5 - testGlobal(2:local 2)
|
|
ok 6 - skip(1) # SKIP skipping
|
|
# init skipLocal local 1
|
|
ok 7 - skipLocal(1:local 1) # SKIP skipping
|
|
# cleanup skipLocal local 1
|
|
# init skipLocal local 2
|
|
ok 8 - skipLocal(1:local 2) # SKIP skipping
|
|
# cleanup skipLocal local 2
|
|
# init skipSingle local 1
|
|
# global: false local: false
|
|
# cleanup skipSingle local 1
|
|
ok 9 - skipSingle(1:local 1)
|
|
# init skipSingle local 2
|
|
# global: false local: true
|
|
# cleanup skipSingle local 2
|
|
ok 10 - skipSingle(1:local 2)
|
|
# init skipSingle local 1
|
|
ok 11 - skipSingle(2:local 1) # SKIP skipping
|
|
# cleanup skipSingle local 1
|
|
# init skipSingle local 2
|
|
# global: true local: true
|
|
# cleanup skipSingle local 2
|
|
ok 12 - skipSingle(2:local 2)
|
|
# cleanupTestCase cleanupTestCase (null)
|
|
ok 13 - cleanupTestCase()
|
|
1..13
|
|
# tests 13
|
|
# pass 9
|
|
# fail 0
|