aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorSergey Bronnikov <Sergey.Bronnikov@kaspersky.com>2019-10-02 15:51:57 +0300
committerAndreas Schneider <asn@cryptomilk.org>2020-10-04 11:05:33 +0200
commit0df9d23baba1ab2fe787f96eab85609191e1acd7 (patch)
treec7500746fc54c7cf88de8e231f885a4adb1fe5d8 /tests/CMakeLists.txt
parent1206b4ac0e40ee3e9f23d7d133589f9a29e09c56 (diff)
downloadcmocka-0df9d23baba1ab2fe787f96eab85609191e1acd7.tar.gz
cmocka-0df9d23baba1ab2fe787f96eab85609191e1acd7.tar.xz
cmocka-0df9d23baba1ab2fe787f96eab85609191e1acd7.zip
cmocka: add header with version to TAP13 output
Version must be specified in a first line of TAP13 output. See TAP13 specification - https://testanything.org/tap-version-13-specification.html Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 60e727a..b616a45 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -174,16 +174,19 @@ set(TEST_OUTPUT_FMTS
xml)
set(test_basics_tap_out
- "^1\\.\\.2"
+ "^TAP version 13"
+ "1\\.\\.2"
"ok 1 - null_test_success"
"ok 2 - int_test_success"
"# ok - tests")
set(test_assert_macros_fail_tap_out
- "^1\\.\\.1"
+ "^TAP version 13"
+ "1\\.\\.1"
"not ok 1 - test_assert_return_code_fail"
"#[^\n\r]+[\n\r]#[^\n\r]+[\n\r]# not ok - tests")
set(test_groups_tap_out
- "^1\\.\\.1"
+ "^TAP version 13"
+ "1\\.\\.1"
"ok 1 - null_test_success"
"# ok - test_group1"
"1\\.\\.1"