@micro-os-plus/micro-test-plus 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +325 -1
- package/CMakeLists.txt +9 -11
- package/README.md +12 -1221
- package/include/micro-os-plus/detail.h +54 -36
- package/include/micro-os-plus/inlines.h +46 -7
- package/include/micro-os-plus/literals.h +154 -25
- package/include/micro-os-plus/micro-test-plus.h +253 -67
- package/include/micro-os-plus/reflection.h +9 -5
- package/include/micro-os-plus/test-reporter-inlines.h +2 -2
- package/include/micro-os-plus/test-reporter.h +11 -4
- package/include/micro-os-plus/test-runner.h +2 -2
- package/include/micro-os-plus/test-suite.h +70 -6
- package/include/micro-os-plus/type-traits.h +22 -10
- package/meson.build +23 -17
- package/package.json +25 -892
- package/src/micro-test-plus.cpp +43 -0
- package/src/test-reporter.cpp +11 -1
- package/src/test-runner.cpp +15 -4
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,330 @@ Please check
|
|
|
6
6
|
[GitHub](https://github.com/micro-os-plus/micro-test-plus-xpack/issues/)
|
|
7
7
|
and close existing issues and pull requests.
|
|
8
8
|
|
|
9
|
+
## 2023-11-28
|
|
10
|
+
|
|
11
|
+
* 21393a5 ci.yml cosmetics
|
|
12
|
+
* f1488f8 package.json: bump deps
|
|
13
|
+
* ffd542a cosmetics
|
|
14
|
+
* 8d6ca4f meson cross.ini fix cpu
|
|
15
|
+
* 57bd3f0 explicit --cpu for risc-v qemu
|
|
16
|
+
* b3dc45b meson: remove redundancy
|
|
17
|
+
* d9ea278 Revert "home.md temporarily disable anchors hack"
|
|
18
|
+
* 8483aff home.md temporarily disable anchors hack
|
|
19
|
+
* 78b2426 config.doxyfile: enable sitemap.xml
|
|
20
|
+
* eb53997 maintainer.md updates
|
|
21
|
+
* a4d0807 README update
|
|
22
|
+
* 43fadfa package.json: use latest commit theme
|
|
23
|
+
* c5d87d6 home.md: remove ci & web badges
|
|
24
|
+
* 93bb6e6 native/cmake: add listing
|
|
25
|
+
* 45557b3 meson.build >=1.3
|
|
26
|
+
* e16d922 meson_options.txt update
|
|
27
|
+
* 261d337 move platform-native/include/.../platform.h
|
|
28
|
+
* feedf64 move enable_testing() to top
|
|
29
|
+
|
|
30
|
+
## 2023-11-27
|
|
31
|
+
|
|
32
|
+
* f0713ca home.md: re-enable explicit links
|
|
33
|
+
* ab49151 home.md: temporarily disable explicit links
|
|
34
|
+
* f45769a home.md: update dummy links
|
|
35
|
+
* 6f14fe4 testing.md update
|
|
36
|
+
* 4679b05 testing.md update
|
|
37
|
+
* 9cb0e18 testing.md update
|
|
38
|
+
* d1a4af5 testing.md update
|
|
39
|
+
* 12ee949 testing.md update
|
|
40
|
+
* 7e2d82f testing.md update
|
|
41
|
+
* a354eec testing.md update
|
|
42
|
+
* faa17f6 testing.md update
|
|
43
|
+
* 616bb45 testing.md update
|
|
44
|
+
|
|
45
|
+
## 2023-11-26
|
|
46
|
+
|
|
47
|
+
* 206e8a1 website/README update
|
|
48
|
+
* c8e45ef website/package.json update actions
|
|
49
|
+
* e2c9b2d maintainer.md: fix twitter
|
|
50
|
+
* d53b93c maintainer.md: fix twitter
|
|
51
|
+
* 94dd8a6 maintainer.md: shorten twitter url
|
|
52
|
+
* cc8d0cb testing.md: fix links
|
|
53
|
+
* 5b55edc home.md: fix url
|
|
54
|
+
* c2c7bac home.md: add dummy links to static pages
|
|
55
|
+
* d52ff26 markdown use @page
|
|
56
|
+
* 6eaa27b user-guide.md update ISTQB
|
|
57
|
+
* 2f357ce package.json: update homepage
|
|
58
|
+
* 32ad598 package.json: update
|
|
59
|
+
* 6e41039 package.json: add check urls
|
|
60
|
+
* fd31269 maintainer.md: update twitter url
|
|
61
|
+
* 7954a43 install.md: update
|
|
62
|
+
* a49c1c6 install.md: show tree
|
|
63
|
+
* ab75189 .npmignore website
|
|
64
|
+
* c230d2d maintainer.md update
|
|
65
|
+
* db8a023 tests/package.json update
|
|
66
|
+
* 0156bf3 README update
|
|
67
|
+
* f03584e package.json: bump meson-build
|
|
68
|
+
|
|
69
|
+
## 2023-11-25
|
|
70
|
+
|
|
71
|
+
* 509ff38 home.md: add Manual Pages
|
|
72
|
+
2023-11-25 * eed0475 tests/package.json: add install/tes-latest
|
|
73
|
+
2023-11-25 * d2a23dd tests/README update
|
|
74
|
+
2023-11-25 * a755996 maintainer.md: update
|
|
75
|
+
2023-11-25 * 17866f0 tests/package.json: add more selected
|
|
76
|
+
2023-11-25 * 593b361 tests/package.json: fix syntax
|
|
77
|
+
2023-11-25 * bbe15ab tests/package.json: fix syntax
|
|
78
|
+
2023-11-25 * 1456260 tests/package.json: re-enable some tests
|
|
79
|
+
2023-11-25 * c8f7c5a tests/package.json: reorder actions
|
|
80
|
+
2023-11-25 * 68626be tests/package.json: fix install-selected
|
|
81
|
+
2023-11-25 * 079df5c tests/package.json: cleanup actions
|
|
82
|
+
|
|
83
|
+
## 2023-11-24
|
|
84
|
+
|
|
85
|
+
* 3aba98d website/maintainer.md update
|
|
86
|
+
* 42f60eb pacakge.json: disable some meson
|
|
87
|
+
* fed45b3 package.json: add test selected
|
|
88
|
+
* 265495e topics.doxyfile: examples to command line options
|
|
89
|
+
* 4c5311e topics.doxyfile: rename group micro-test-plus
|
|
90
|
+
* 7a71772 add minimal-test.cpp for native builds
|
|
91
|
+
|
|
92
|
+
## 2023-11-23
|
|
93
|
+
|
|
94
|
+
* 7d12935 user-guide.md: update
|
|
95
|
+
* 5699ed8 user-guide.md: update
|
|
96
|
+
* 31de282 user-guide.md: update
|
|
97
|
+
|
|
98
|
+
## 2023-11-22
|
|
99
|
+
|
|
100
|
+
* e3f4a8c user-guide.md update Rationale
|
|
101
|
+
* 79a3a04 home.md: fix link
|
|
102
|
+
* d4dbd85 rename some groups
|
|
103
|
+
* fb83f9b user-guide.md update title
|
|
104
|
+
* e20730a user-guide.md: add c++ api
|
|
105
|
+
* 3d05656 rename some groups
|
|
106
|
+
* 599121b install.md cleanups
|
|
107
|
+
* f05590a rename user-guide.md
|
|
108
|
+
* 8b3ce4c rename doxy groups micro-test-plus-*
|
|
109
|
+
* 03225e6 topics.doxyfile update mtp-top
|
|
110
|
+
* 2b83889 home.md update
|
|
111
|
+
* cb4b8b8 rename 'integrate'
|
|
112
|
+
|
|
113
|
+
## 2023-11-21
|
|
114
|
+
|
|
115
|
+
* d87b685 home.md update
|
|
116
|
+
* e15fa64 rename Integration Guide
|
|
117
|
+
* 6e2c567 home.md update
|
|
118
|
+
* 0419764 package-lock.json
|
|
119
|
+
* c83e2c2 rename pages
|
|
120
|
+
* 3b44a8c doxygen metadata
|
|
121
|
+
* b7f2791 re-format
|
|
122
|
+
|
|
123
|
+
## 2023-11-19
|
|
124
|
+
|
|
125
|
+
* 4315e9c website README
|
|
126
|
+
* e457fd2 config.doxyfile: include src && include
|
|
127
|
+
* 123bb53 type-traits.h: avoid potential recursive error
|
|
128
|
+
* 0fe11ff developer.md: update
|
|
129
|
+
* 557bbdd home.md update
|
|
130
|
+
* c676d6f change-log.md update
|
|
131
|
+
* 198fadd home.md update
|
|
132
|
+
* 496c308 developer.md: update
|
|
133
|
+
* 9fe24b4 workflow update
|
|
134
|
+
* c955d3d home.md: update
|
|
135
|
+
* 3ff6614 home.md: update
|
|
136
|
+
* d871a67 home.md: update
|
|
137
|
+
* 6151bf8 add DoxygenLayout.xml for the GitHub link
|
|
138
|
+
* 38f101a package.json: add link-deps
|
|
139
|
+
|
|
140
|
+
## 2023-11-18
|
|
141
|
+
|
|
142
|
+
* 3d67a79 developer.md update
|
|
143
|
+
* a0bdd9a home.md update
|
|
144
|
+
* 6df7e90 maintainer.md update
|
|
145
|
+
* b096248 workflow update
|
|
146
|
+
* 5f700a5 home.md update links
|
|
147
|
+
* 9186c97 workflow update
|
|
148
|
+
* 5e5cf7a workflow update
|
|
149
|
+
* 3e784b0 workflow update
|
|
150
|
+
* 844cee5 workflow update
|
|
151
|
+
* 01ce2a2 workflows update
|
|
152
|
+
* 36d36d4 add website
|
|
153
|
+
* 440701a README update
|
|
154
|
+
* 311c7ec package.json: remove some redundancy
|
|
155
|
+
|
|
156
|
+
## 2023-11-17
|
|
157
|
+
|
|
158
|
+
* 933ea5c ci.yml: bump xpm to 0.18.0
|
|
159
|
+
* 04ad5c4 package.json: update npm actions
|
|
160
|
+
* 6c0f0e5 tests/package.json: use xpm run --all-configs
|
|
161
|
+
|
|
162
|
+
## 2023-11-16
|
|
163
|
+
|
|
164
|
+
* ed8b3fd ci.yml: fix actions
|
|
165
|
+
* 1fc00fc ci.yml: update; add meson
|
|
166
|
+
* 63489b6 .vscode/settings.json: ignoreWords
|
|
167
|
+
* e4bfe8e package.json: gccXX for cortex & riscv
|
|
168
|
+
* 6003397 platform-*/meson.build: --no-warn-rwx-segment >=12
|
|
169
|
+
|
|
170
|
+
## 2023-11-15
|
|
171
|
+
|
|
172
|
+
* 801a305 platform-options.cmake: --no-warn-rwx-segment >=12
|
|
173
|
+
|
|
174
|
+
## 2023-10-29
|
|
175
|
+
|
|
176
|
+
* f0f6af7 package.json: disable clang 13/14 on linux
|
|
177
|
+
* 8bc2250 disable meson on macos (due to ldd --version)
|
|
178
|
+
* 8d6ea94 enable -no-pie for macos gcc
|
|
179
|
+
|
|
180
|
+
## 2023-10-26
|
|
181
|
+
|
|
182
|
+
* c124b2d native/cmake cosmetics
|
|
183
|
+
* bfd6ef6 native/meson: informative MICRO_OS_PLUS_DEVICE_NATIVE
|
|
184
|
+
* c076a8f cmake: enable _POSIX_C_SOURCE
|
|
185
|
+
* 1d1054b meson: add asserts
|
|
186
|
+
* 111a1c0 native/cmake: rename _local_*
|
|
187
|
+
* 704cf89 verbose messages cosmetics
|
|
188
|
+
|
|
189
|
+
## 2023-10-23
|
|
190
|
+
|
|
191
|
+
* f175fe8 cosmetics
|
|
192
|
+
* cc55c0a add platforms m3 m4f
|
|
193
|
+
* 8949702 tests/package.json: bump deps
|
|
194
|
+
* bd28efb cmake: validate xpack_platform_compile_definition
|
|
195
|
+
* 4de3322 meson rework
|
|
196
|
+
* 95ec308 move cmake _compile_definitions to dependencies
|
|
197
|
+
|
|
198
|
+
## 2023-10-20
|
|
199
|
+
|
|
200
|
+
* ce36d69 cmake renames & common-main.cmake
|
|
201
|
+
* d9553a2 cmake cleanups
|
|
202
|
+
* 54accd7 cmake add explanations
|
|
203
|
+
* b59fbac rename micro-os-plus::common-options
|
|
204
|
+
|
|
205
|
+
## 2023-10-19
|
|
206
|
+
|
|
207
|
+
* 0638af7 tests/package.json: remove clang12
|
|
208
|
+
* be8ea3f README update
|
|
209
|
+
* 5f53e2c native/cmake: no need for statics
|
|
210
|
+
* 71368ca native/cmake: add libc++ to link
|
|
211
|
+
* ecb5705 native/cmake: compute -rpath
|
|
212
|
+
* 3a4535b tests/package.json: bump deps
|
|
213
|
+
* e0f050c ci.yml: test m0, m7f, rv32imac
|
|
214
|
+
* b32f4bd tests/package.json: bump deps
|
|
215
|
+
* 21f948b .vscode/settings.json: ignoreWords
|
|
216
|
+
* 71bc722 cleanups
|
|
217
|
+
* 94d507f rework meson
|
|
218
|
+
|
|
219
|
+
## 2023-10-18
|
|
220
|
+
|
|
221
|
+
* 785704e rework/simplify cmake
|
|
222
|
+
* fc475bb add more cortex & riscv platforms
|
|
223
|
+
* 4bf3531 package.json multiple toolchains
|
|
224
|
+
* a804a2e .vscode/settings.json: ignoreWords
|
|
225
|
+
* cedaed9 meson: add xpack_tests_folder_path
|
|
226
|
+
* 0227c10 cosmetics
|
|
227
|
+
* fdca222 -Wl,--no-warn-rwx-segments
|
|
228
|
+
|
|
229
|
+
## 2023-10-17
|
|
230
|
+
|
|
231
|
+
* 9ddcdd6 fix typos
|
|
232
|
+
* c1e7f17 silence warnings
|
|
233
|
+
* b8e417f literals.h: include cstdint
|
|
234
|
+
|
|
235
|
+
## 2023-10-13
|
|
236
|
+
|
|
237
|
+
* b9e132b package.json: bump deps
|
|
238
|
+
* 60d5ab3 meson.build: add check: false
|
|
239
|
+
|
|
240
|
+
## 2023-10-12
|
|
241
|
+
|
|
242
|
+
* a38e3d2 README update
|
|
243
|
+
* 852bfac package-lock.json update
|
|
244
|
+
* de6024c tests: fix paths
|
|
245
|
+
* 07a8b87 split tests/package.json
|
|
246
|
+
* 7c6a7eb ci.yml: non-sudo npm install
|
|
247
|
+
* 750e4ff ci.yml: try non-sudo
|
|
248
|
+
* 26f4594 ci.yml: bump deps
|
|
249
|
+
* 37a16d6 README update
|
|
250
|
+
* 707fbc5 package.json: update description
|
|
251
|
+
* 39d328e package.json: update scripts
|
|
252
|
+
* 90b83f3 package.json: add del-cli to devDeps
|
|
253
|
+
|
|
254
|
+
## 2023-07-14
|
|
255
|
+
|
|
256
|
+
* cc2f4b7 ci.yml: xpm 0.16.2
|
|
257
|
+
* 0c93537 README updates
|
|
258
|
+
* 725da90 tests/CMakeLists.txt cosmetics
|
|
259
|
+
* 03de509 package.json: cosmetise urls
|
|
260
|
+
* 36b27c9 package.json: minXpm 0.16.2
|
|
261
|
+
|
|
262
|
+
## 2023-06-04
|
|
263
|
+
|
|
264
|
+
* 0ac4fd5 ci.yml: bump node 18
|
|
265
|
+
* 650e786 ci.yml: bump matrix.os
|
|
266
|
+
* 8f058ed package.json: build-helper-xpack#xpack-develop
|
|
267
|
+
* 28f809c update for xpacks/@scope/name
|
|
268
|
+
* 6d27fb8 ci.yml: bump xpm 0.16.1
|
|
269
|
+
* 30e6aa3 remove --quiet
|
|
270
|
+
|
|
271
|
+
## 2023-06-03
|
|
272
|
+
|
|
273
|
+
* 4d446bb lower case ci.yml
|
|
274
|
+
* 0be4b56 package.json min 0.16.0
|
|
275
|
+
* 064eb46 lower case ci.yml
|
|
276
|
+
|
|
277
|
+
## 2023-05-08
|
|
278
|
+
|
|
279
|
+
* 8719abe .npmignore update
|
|
280
|
+
* 843c811 READMEs updates
|
|
281
|
+
* c1fb3e9 README updates
|
|
282
|
+
* 46bb468 meson.build cosmetics
|
|
283
|
+
|
|
284
|
+
## 2023-02-18
|
|
285
|
+
|
|
286
|
+
* 5eb637f README update
|
|
287
|
+
* 6894005 README update
|
|
288
|
+
* f5db7d7 README update
|
|
289
|
+
|
|
290
|
+
## 2022-08-16
|
|
291
|
+
|
|
292
|
+
* cc2699b package.json min 0.14.0 & defaults
|
|
293
|
+
* 9439094 CI.yml: explicit xpm version
|
|
294
|
+
|
|
295
|
+
## 2022-08-04
|
|
296
|
+
|
|
297
|
+
* a0739bb tests/cross.ini: add link to cpu-families
|
|
298
|
+
|
|
299
|
+
## 2022-08-03
|
|
300
|
+
|
|
301
|
+
* b1b8b28 README updates
|
|
302
|
+
* 965008d .vscode/settings.json: cmake.ignoreCMakeListsMissing
|
|
303
|
+
* ffb029c .vscode/settings.json: makefile.configureOnOpen
|
|
304
|
+
|
|
305
|
+
## 2022-08-02
|
|
306
|
+
|
|
307
|
+
* fa3cd23 READMEs updates
|
|
308
|
+
|
|
309
|
+
## 2022-07-30
|
|
310
|
+
|
|
311
|
+
* ceb6702 test-runner.cpp: conditional verbosity
|
|
312
|
+
* 80a0d20 3.1.1
|
|
313
|
+
* 8f35eb1 prepare v3.1.1
|
|
314
|
+
* 41d0acf update mps2 config
|
|
315
|
+
* 7c4cf61 #7: package.json: use inheritance
|
|
316
|
+
* 736a885 bump deps
|
|
317
|
+
* 6221d1f #6: remove STM32F4DISCOVERY test
|
|
318
|
+
* b080101 test-runner.cpp: conditional verbosity
|
|
319
|
+
|
|
320
|
+
## 2022-07-28
|
|
321
|
+
|
|
322
|
+
* ec67074 CI.yml do not trigger on tags
|
|
323
|
+
|
|
324
|
+
## 2022-07-25
|
|
325
|
+
|
|
326
|
+
* af5ae81 package.json minimumXpmRequired
|
|
327
|
+
|
|
328
|
+
## 2022-07-12
|
|
329
|
+
|
|
330
|
+
* 2b15c56 CMake: xpack_display_greetings() with arg
|
|
331
|
+
* 4459cc9 package.json: bump deps
|
|
332
|
+
|
|
9
333
|
## 2022-06-04
|
|
10
334
|
|
|
11
335
|
* v3.1.0
|
|
@@ -338,7 +662,7 @@ and close existing issues and pull requests.
|
|
|
338
662
|
* 6f55a37 package.json: rename dependencies to device-*
|
|
339
663
|
* fde47e6 package.json: move toolchain files to folder
|
|
340
664
|
* 041c252 cmake: rename platform-qemu-mps2-an386
|
|
341
|
-
* 1230c9b cmake: update for
|
|
665
|
+
* 1230c9b cmake: update for devices-qemu-cortexm
|
|
342
666
|
* 10304ab rename platform-qemu-mps2-an386
|
|
343
667
|
|
|
344
668
|
## 2022-01-28
|
package/CMakeLists.txt
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------
|
|
2
2
|
#
|
|
3
3
|
# This file is part of the µOS++ distribution.
|
|
4
|
-
#
|
|
4
|
+
# (https://github.com/micro-os-plus/)
|
|
5
5
|
# Copyright (c) 2021 Liviu Ionescu
|
|
6
6
|
#
|
|
7
7
|
# Permission to use, copy, modify, and/or distribute this software
|
|
@@ -14,14 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
# This file is intended to be consumed by applications with:
|
|
16
16
|
#
|
|
17
|
-
# `add_subdirectory("xpacks
|
|
17
|
+
# `add_subdirectory("xpacks/@micro-os-plus/micro-test-plus")`
|
|
18
18
|
#
|
|
19
19
|
# The result is an interface library that can be added to the linker with:
|
|
20
20
|
#
|
|
21
21
|
# `target_link_libraries(your-target PUBLIC micro-os-plus::micro-test-plus)`
|
|
22
22
|
|
|
23
23
|
# -----------------------------------------------------------------------------
|
|
24
|
-
## Preamble ##
|
|
25
24
|
|
|
26
25
|
# https://cmake.org/cmake/help/v3.20/
|
|
27
26
|
cmake_minimum_required(VERSION 3.20)
|
|
@@ -31,24 +30,24 @@ project(
|
|
|
31
30
|
DESCRIPTION "µTest++"
|
|
32
31
|
)
|
|
33
32
|
|
|
33
|
+
# To access the optional functions, add `@micro-os-plus/build-helper` as a
|
|
34
|
+
# dependency and include the `cmake/micro-os-plus-build-helper.cmake` file.
|
|
35
|
+
|
|
34
36
|
if(COMMAND xpack_get_package_name_and_version)
|
|
35
37
|
xpack_get_package_name_and_version("${CMAKE_CURRENT_SOURCE_DIR}/package.json")
|
|
36
38
|
message(VERBOSE "Processing xPack ${PACKAGE_JSON_NAME}@${PACKAGE_JSON_VERSION}...")
|
|
37
39
|
endif()
|
|
38
40
|
|
|
39
41
|
# -----------------------------------------------------------------------------
|
|
40
|
-
|
|
42
|
+
|
|
43
|
+
# The project library definitions.
|
|
41
44
|
|
|
42
45
|
# https://cmake.org/cmake/help/v3.20/command/add_library.html?highlight=interface#normal-libraries
|
|
43
46
|
# PRIVATE: build definitions, used internally
|
|
44
47
|
# INTERFACE: usage definitions, passed up to targets linking to it
|
|
45
48
|
# PUBLIC: both
|
|
46
|
-
|
|
47
49
|
add_library(micro-os-plus-micro-test-plus-interface INTERFACE)
|
|
48
50
|
|
|
49
|
-
# -----------------------------------------------------------------------------
|
|
50
|
-
# Target settings.
|
|
51
|
-
|
|
52
51
|
target_include_directories(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
53
52
|
"include"
|
|
54
53
|
)
|
|
@@ -72,16 +71,15 @@ target_link_libraries(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
|
72
71
|
# None.
|
|
73
72
|
)
|
|
74
73
|
|
|
75
|
-
if
|
|
74
|
+
if(COMMAND xpack_display_target_lists)
|
|
76
75
|
xpack_display_target_lists(micro-os-plus-micro-test-plus-interface)
|
|
77
76
|
endif()
|
|
78
77
|
|
|
79
78
|
# -----------------------------------------------------------------------------
|
|
80
|
-
# Aliases.
|
|
81
79
|
|
|
80
|
+
# Aliases.
|
|
82
81
|
# https://cmake.org/cmake/help/v3.20/command/add_library.html#alias-libraries
|
|
83
82
|
add_library(micro-os-plus::micro-test-plus ALIAS micro-os-plus-micro-test-plus-interface)
|
|
84
83
|
message(VERBOSE "> micro-os-plus::micro-test-plus -> micro-os-plus-micro-test-plus-interface")
|
|
85
84
|
|
|
86
85
|
# -----------------------------------------------------------------------------
|
|
87
|
-
|