@micro-os-plus/micro-test-plus 2.1.1 → 3.0.0
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 +42 -0
- package/CMakeLists.txt +15 -26
- package/LICENSE-Boost +23 -0
- package/README.md +1007 -255
- package/docs/NOTES.md +7 -0
- package/include/micro-os-plus/detail.h +733 -0
- package/include/micro-os-plus/inlines.h +182 -0
- package/include/micro-os-plus/literals.h +285 -0
- package/include/micro-os-plus/math.h +205 -0
- package/include/micro-os-plus/micro-test-plus.h +488 -102
- package/include/micro-os-plus/reflection.h +134 -0
- package/include/micro-os-plus/test-reporter-inlines.h +231 -0
- package/include/micro-os-plus/test-reporter.h +347 -0
- package/include/micro-os-plus/test-runner.h +132 -0
- package/include/micro-os-plus/test-suite.h +242 -0
- package/include/micro-os-plus/type-traits.h +346 -0
- package/meson.build +35 -11
- package/package.json +243 -147
- package/src/micro-test-plus.cpp +105 -188
- package/src/test-reporter.cpp +423 -0
- package/src/test-runner.cpp +183 -0
- package/src/test-suite.cpp +117 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ 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
|
+
## 2022-02-19
|
|
10
|
+
|
|
11
|
+
- v2.3.0
|
|
12
|
+
- 94b340c use nested namespaces
|
|
13
|
+
- f921bf0 sample-test: cleanup globals
|
|
14
|
+
- 66df97e add support for test-all
|
|
15
|
+
- f6c19d2 cmake globals add -fdiagnostics-color=always
|
|
16
|
+
- 28efe4b add parameterised tests and combinatorials
|
|
17
|
+
- 560b678 add run_test_case variadic template
|
|
18
|
+
- 436a1ae deprecate run_test_case(func, name)
|
|
19
|
+
- 0a6a46b add start_test_case()
|
|
20
|
+
|
|
21
|
+
## 2022-02-18
|
|
22
|
+
|
|
23
|
+
- 5d0e9be package.json bump helper
|
|
24
|
+
- 69d6dec rework expect_equal with templates
|
|
25
|
+
|
|
26
|
+
## 2022-02-16
|
|
27
|
+
|
|
28
|
+
- 9d97cb1 meson: remove utf-8 chars
|
|
29
|
+
|
|
30
|
+
## 2022-02-10
|
|
31
|
+
|
|
32
|
+
- 776845a .c* include <micro-os-plus/config.h>
|
|
33
|
+
- 8f3e441 meson.build cosmetics
|
|
34
|
+
|
|
35
|
+
## 2022-02-09
|
|
36
|
+
|
|
37
|
+
- 4fcb75d MICRO_OS_PLUS_INCLUDE_CONFIG_H
|
|
38
|
+
- 81186d0 rename MICRO_OS_PLUS_DEBUG
|
|
39
|
+
|
|
40
|
+
## 2022-02-08
|
|
41
|
+
|
|
42
|
+
- 9c23c7d package.json: disable stm32f4 on Apple Silicon
|
|
43
|
+
- 3969095 package.json: bump clang
|
|
44
|
+
- 623e72d rename MICRO_OS_PLUS_TRACE
|
|
45
|
+
|
|
46
|
+
## 2022-02-06
|
|
47
|
+
|
|
48
|
+
- f1a8f80 MICRO_OS_PLUS_HAS_CONFIG_H
|
|
49
|
+
- 4d46a63 disable -flto on armv7l
|
|
50
|
+
|
|
9
51
|
## 2022-02-05
|
|
10
52
|
|
|
11
53
|
- v2.2.1
|
package/CMakeLists.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
1
2
|
#
|
|
2
3
|
# This file is part of the µOS++ distribution.
|
|
3
|
-
# (https://github.com/micro-os-plus)
|
|
4
|
+
# (https://github.com/micro-os-plus/)
|
|
4
5
|
# Copyright (c) 2021 Liviu Ionescu
|
|
5
6
|
#
|
|
6
7
|
# Permission to use, copy, modify, and/or distribute this software
|
|
@@ -48,39 +49,27 @@ add_library(micro-os-plus-micro-test-plus-interface INTERFACE)
|
|
|
48
49
|
# -----------------------------------------------------------------------------
|
|
49
50
|
# Target settings.
|
|
50
51
|
|
|
51
|
-
target_include_directories(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
INTERFACE
|
|
55
|
-
"include"
|
|
52
|
+
target_include_directories(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
53
|
+
"include"
|
|
56
54
|
)
|
|
57
55
|
|
|
58
|
-
target_sources(
|
|
59
|
-
micro-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
target_sources(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
57
|
+
"src/micro-test-plus.cpp"
|
|
58
|
+
"src/test-runner.cpp"
|
|
59
|
+
"src/test-reporter.cpp"
|
|
60
|
+
"src/test-suite.cpp"
|
|
63
61
|
)
|
|
64
62
|
|
|
65
|
-
target_compile_definitions(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
INTERFACE
|
|
69
|
-
# ...
|
|
63
|
+
target_compile_definitions(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
64
|
+
# None.
|
|
70
65
|
)
|
|
71
66
|
|
|
72
|
-
target_compile_options(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
INTERFACE
|
|
76
|
-
# ...
|
|
67
|
+
target_compile_options(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
68
|
+
# None.
|
|
77
69
|
)
|
|
78
70
|
|
|
79
|
-
target_link_libraries(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
INTERFACE
|
|
83
|
-
# ...
|
|
71
|
+
target_link_libraries(micro-os-plus-micro-test-plus-interface INTERFACE
|
|
72
|
+
# None.
|
|
84
73
|
)
|
|
85
74
|
|
|
86
75
|
if (COMMAND xpack_display_target_lists)
|
package/LICENSE-Boost
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Boost Software License - Version 1.0 - August 17th, 2003
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person or organization
|
|
4
|
+
obtaining a copy of the software and accompanying documentation covered by
|
|
5
|
+
this license (the "Software") to use, reproduce, display, distribute,
|
|
6
|
+
execute, and transmit the Software, and to prepare derivative works of the
|
|
7
|
+
Software, and to permit third-parties to whom the Software is furnished to
|
|
8
|
+
do so, all subject to the following:
|
|
9
|
+
|
|
10
|
+
The copyright notices in the Software and this entire statement, including
|
|
11
|
+
the above license grant, this restriction and the following disclaimer,
|
|
12
|
+
must be included in all copies of the Software, in whole or in part, and
|
|
13
|
+
all derivative works of the Software, unless such copies or derivative
|
|
14
|
+
works are solely in the form of machine-executable object code generated by
|
|
15
|
+
a source language processor.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
|
20
|
+
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
|
21
|
+
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
|
22
|
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
23
|
+
DEALINGS IN THE SOFTWARE.
|