@micro-os-plus/micro-test-plus 2.1.1 → 3.0.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 +349 -72
- package/CMakeLists.txt +15 -26
- package/LICENSE-Boost +23 -0
- package/README.md +1036 -256
- package/include/micro-os-plus/detail.h +733 -0
- package/include/micro-os-plus/inlines.h +161 -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 +490 -103
- 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 +241 -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 +186 -0
- package/src/test-suite.cpp +133 -0
package/meson.build
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
# -----------------------------------------------------------------------------
|
|
2
2
|
#
|
|
3
3
|
# This file is part of the µOS++ distribution.
|
|
4
|
-
# (https://github.com/micro-os-plus)
|
|
4
|
+
# (https://github.com/micro-os-plus/)
|
|
5
5
|
# Copyright (c) 2022 Liviu Ionescu
|
|
6
6
|
#
|
|
7
7
|
# Permission to use, copy, modify, and/or distribute this software
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
# `subdir('xpacks/micro-os-plus-micro-test-plus')`
|
|
18
18
|
#
|
|
19
|
-
# The result is a dependency that can be refered as:
|
|
19
|
+
# The result is a library and a dependency that can be refered as:
|
|
20
20
|
#
|
|
21
21
|
# `dependencies: [micro_os_plus_micro_test_plus_dependency],`
|
|
22
22
|
|
|
@@ -27,18 +27,42 @@
|
|
|
27
27
|
|
|
28
28
|
message('Processing xPack @micro-os-plus/micro-test-plus...')
|
|
29
29
|
|
|
30
|
+
# -----------------------------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
xpack_common_args = []
|
|
33
|
+
xpack_c_args = []
|
|
34
|
+
xpack_cpp_args = []
|
|
35
|
+
xpack_include_directories = []
|
|
36
|
+
xpack_sources = []
|
|
37
|
+
xpack_compile_definitions = []
|
|
38
|
+
|
|
39
|
+
xpack_include_directories += [
|
|
40
|
+
'include',
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
xpack_sources += [
|
|
44
|
+
'src/micro-test-plus.cpp',
|
|
45
|
+
'src/test-runner.cpp',
|
|
46
|
+
'src/test-reporter.cpp',
|
|
47
|
+
'src/test-suite.cpp',
|
|
48
|
+
]
|
|
49
|
+
|
|
30
50
|
# https://mesonbuild.com/Reference-manual_functions.html#declare_dependency
|
|
31
51
|
micro_os_plus_micro_test_plus_dependency = declare_dependency(
|
|
32
|
-
include_directories: include_directories(
|
|
33
|
-
|
|
34
|
-
),
|
|
35
|
-
sources: files(
|
|
36
|
-
'src/micro-test-plus.cpp',
|
|
37
|
-
),
|
|
52
|
+
include_directories: include_directories(xpack_include_directories),
|
|
53
|
+
compile_args: xpack_common_args,
|
|
54
|
+
sources: files(xpack_sources),
|
|
38
55
|
)
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
# micro_os_plus_micro_test_plus_dependency_c_args = xpack_c_args
|
|
58
|
+
# micro_os_plus_micro_test_plus_dependency_cpp_args = xpack_cpp_args
|
|
59
|
+
|
|
60
|
+
foreach name : xpack_include_directories
|
|
61
|
+
message('+ -I ' + name)
|
|
62
|
+
endforeach
|
|
63
|
+
foreach name : xpack_sources + xpack_common_args
|
|
64
|
+
message('+ ' + name)
|
|
65
|
+
endforeach
|
|
42
66
|
message('> micro_os_plus_micro_test_plus_dependency')
|
|
43
67
|
|
|
44
68
|
# -----------------------------------------------------------------------------
|