@micro-os-plus/micro-test-plus 3.0.1 → 3.1.1
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 +49 -4
- package/README.md +117 -97
- package/meson.build +1 -1
- package/package.json +71 -428
- package/src/test-runner.cpp +11 -4
package/src/test-runner.cpp
CHANGED
|
@@ -56,6 +56,7 @@ namespace micro_os_plus::micro_test_plus
|
|
|
56
56
|
|
|
57
57
|
default_suite_name_ = name;
|
|
58
58
|
|
|
59
|
+
#if !defined(MICRO_OS_PLUS_INCLUDE_STARTUP)
|
|
59
60
|
#if defined(MICRO_OS_PLUS_DEBUG)
|
|
60
61
|
printf ("argv[");
|
|
61
62
|
for (int i = 0; i < argc; ++i)
|
|
@@ -67,7 +68,8 @@ namespace micro_os_plus::micro_test_plus
|
|
|
67
68
|
printf ("'%s'", argv[i]);
|
|
68
69
|
}
|
|
69
70
|
puts ("]");
|
|
70
|
-
#endif
|
|
71
|
+
#endif // defined(MICRO_OS_PLUS_DEBUG)
|
|
72
|
+
#endif // !defined(MICRO_OS_PLUS_INCLUDE_STARTUP)
|
|
71
73
|
|
|
72
74
|
verbosity_t verbosity = verbosity::normal;
|
|
73
75
|
for (int i = 0; i < argc; ++i)
|
|
@@ -91,6 +93,7 @@ namespace micro_os_plus::micro_test_plus
|
|
|
91
93
|
|
|
92
94
|
// ------------------------------------------------------------------------
|
|
93
95
|
|
|
96
|
+
#if !defined(MICRO_OS_PLUS_INCLUDE_STARTUP)
|
|
94
97
|
if (verbosity == verbosity::normal || verbosity == verbosity::verbose)
|
|
95
98
|
{
|
|
96
99
|
#if defined(__clang__)
|
|
@@ -103,11 +106,14 @@ namespace micro_os_plus::micro_test_plus
|
|
|
103
106
|
#else
|
|
104
107
|
printf ("Built with an unknown compiler");
|
|
105
108
|
#endif
|
|
106
|
-
#if defined(
|
|
109
|
+
#if !(defined(__APPLE__) || defined(__linux__) || defined(__unix__) || defined(WIN32))
|
|
110
|
+
// This is relevant only on bare-metal.
|
|
111
|
+
#if defined(__ARM_PCS_VFP) || defined(__ARM_FP)
|
|
107
112
|
printf (", with FP");
|
|
108
113
|
#else
|
|
109
114
|
printf (", no FP");
|
|
110
115
|
#endif
|
|
116
|
+
#endif
|
|
111
117
|
#if defined(__EXCEPTIONS)
|
|
112
118
|
printf (", with exceptions");
|
|
113
119
|
#else
|
|
@@ -118,6 +124,7 @@ namespace micro_os_plus::micro_test_plus
|
|
|
118
124
|
#endif
|
|
119
125
|
puts (".");
|
|
120
126
|
}
|
|
127
|
+
#endif // !defined(MICRO_OS_PLUS_INCLUDE_STARTUP)
|
|
121
128
|
|
|
122
129
|
// ------------------------------------------------------------------------
|
|
123
130
|
|
|
@@ -149,12 +156,12 @@ namespace micro_os_plus::micro_test_plus
|
|
|
149
156
|
suite->begin_test_suite ();
|
|
150
157
|
suite->run ();
|
|
151
158
|
suite->end_test_suite();
|
|
152
|
-
|
|
159
|
+
|
|
153
160
|
was_successful &= suite->was_successful ();
|
|
154
161
|
}
|
|
155
162
|
if (reporter.verbosity != verbosity::silent)
|
|
156
163
|
{
|
|
157
|
-
printf ("\n");
|
|
164
|
+
// printf ("\n");
|
|
158
165
|
}
|
|
159
166
|
}
|
|
160
167
|
return was_successful ? 0 : 1;
|