@micro-os-plus/micro-test-plus 3.0.2 → 3.1.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 CHANGED
@@ -6,6 +6,16 @@ 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-06-04
10
+
11
+ * v3.1.0
12
+ * b8994fb revert sections.ld
13
+
14
+ ## 2022-06-03
15
+
16
+ * 1e30b5f tests: update for sections-flash.ld
17
+ * 0e434ea test-runner.cpp: show FP only for non-native
18
+
9
19
  ## 2022-04-19
10
20
 
11
21
  * 3.0.2
@@ -64,7 +74,7 @@ and close existing issues and pull requests.
64
74
  ## 2022-03-23
65
75
 
66
76
  * 255d4e5 README updates
67
- * c837032 package.json: bump buld-helper 2.6.2
77
+ * c837032 package.json: bump build-helper 2.6.2
68
78
  * 49a3129 package.json: bump gcc 11.2.0-3.3
69
79
  * 568d799 revert to interface library
70
80
 
@@ -150,7 +160,7 @@ and close existing issues and pull requests.
150
160
  * 2f5efdd move casts to literals.h
151
161
  * b1a0b55 move struct value to type_traits
152
162
  * a9ec726 split literals.h
153
- * bd64244 more type_triats moves
163
+ * bd64244 more type_traits moves
154
164
  * 5a98f64 remove unused struct type_
155
165
  * 8176edc move op & _constants to type_traits.h
156
166
  * 658bf72 silence warnings
@@ -248,7 +258,7 @@ and close existing issues and pull requests.
248
258
  * f921bf0 sample-test: cleanup globals
249
259
  * 66df97e add support for test-all
250
260
  * f6c19d2 cmake globals add -fdiagnostics-color=always
251
- * 28efe4b add parameterised tests and combinatorials
261
+ * 28efe4b add parametrised tests and combinatorics
252
262
  * 560b678 add run_test_case variadic template
253
263
  * 436a1ae deprecate run_test_case(func, name)
254
264
  * 0a6a46b add start_test_case()
package/README.md CHANGED
@@ -979,11 +979,11 @@ For other build systems, consider the following details:
979
979
 
980
980
  #### Include folders
981
981
 
982
- The following folder should be passed to the compiler during the build:
982
+ The following folders should be passed to the compiler during the build:
983
983
 
984
984
  - `include`
985
985
 
986
- The header file to be included is:
986
+ The header files to be included in user projects are:
987
987
 
988
988
  ```c++
989
989
  #include <micro-os-plus/micro-test-plus.h>
package/meson.build CHANGED
@@ -16,7 +16,7 @@
16
16
  #
17
17
  # `subdir('xpacks/micro-os-plus-micro-test-plus')`
18
18
  #
19
- # The result is a library and a dependency that can be refered as:
19
+ # The result is a library and a dependency that can be referred as:
20
20
  #
21
21
  # `dependencies: [micro_os_plus_micro_test_plus_dependency],`
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micro-os-plus/micro-test-plus",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "description": "A source library xPack with µTest++, a lightweight testing framework for embedded platforms",
5
5
  "main": "",
6
6
  "scripts": {
@@ -597,7 +597,7 @@
597
597
  "xpm link --config {{ configuration.name }} @micro-os-plus/semihosting",
598
598
  "xpm link --config {{ configuration.name }} @micro-os-plus/startup",
599
599
  "xpm link --config {{ configuration.name }} @micro-os-plus/version",
600
- "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core-m"
600
+ "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core"
601
601
  ],
602
602
  "prepare": "{{ properties.commandCMakePrepareWithToolchain }}",
603
603
  "build": [
@@ -618,7 +618,7 @@
618
618
  "@micro-os-plus/semihosting": "4.0.0",
619
619
  "@micro-os-plus/startup": "3.0.0",
620
620
  "@micro-os-plus/version": "7.1.2",
621
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
621
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
622
622
  }
623
623
  },
624
624
  "qemu-mps2-an386-cmake-release": {
@@ -641,7 +641,7 @@
641
641
  "xpm link --config {{ configuration.name }} @micro-os-plus/semihosting",
642
642
  "xpm link --config {{ configuration.name }} @micro-os-plus/startup",
643
643
  "xpm link --config {{ configuration.name }} @micro-os-plus/version",
644
- "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core-m"
644
+ "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core"
645
645
  ],
646
646
  "prepare": "{{ properties.commandCMakePrepareWithToolchain }}",
647
647
  "build": [
@@ -662,7 +662,7 @@
662
662
  "@micro-os-plus/semihosting": "4.0.0",
663
663
  "@micro-os-plus/startup": "3.0.0",
664
664
  "@micro-os-plus/version": "7.1.2",
665
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
665
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
666
666
  }
667
667
  },
668
668
  "qemu-mps2-an386-meson-debug": {
@@ -682,7 +682,7 @@
682
682
  "xpm link --config {{ configuration.name }} @micro-os-plus/semihosting",
683
683
  "xpm link --config {{ configuration.name }} @micro-os-plus/startup",
684
684
  "xpm link --config {{ configuration.name }} @micro-os-plus/version",
685
- "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core-m"
685
+ "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core"
686
686
  ],
687
687
  "prepare": "{{ properties.commandMesonPrepareCross }}",
688
688
  "build": [
@@ -703,7 +703,7 @@
703
703
  "@micro-os-plus/semihosting": "4.0.0",
704
704
  "@micro-os-plus/startup": "3.0.0",
705
705
  "@micro-os-plus/version": "7.1.2",
706
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
706
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
707
707
  }
708
708
  },
709
709
  "qemu-mps2-an386-meson-release": {
@@ -723,7 +723,7 @@
723
723
  "xpm link --config {{ configuration.name }} @micro-os-plus/semihosting",
724
724
  "xpm link --config {{ configuration.name }} @micro-os-plus/startup",
725
725
  "xpm link --config {{ configuration.name }} @micro-os-plus/version",
726
- "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core-m"
726
+ "xpm link --config {{ configuration.name }} @xpack-3rd-party/arm-cmsis-core"
727
727
  ],
728
728
  "prepare": "{{ properties.commandMesonPrepareCross }}",
729
729
  "build": [
@@ -744,7 +744,7 @@
744
744
  "@micro-os-plus/semihosting": "4.0.0",
745
745
  "@micro-os-plus/startup": "3.0.0",
746
746
  "@micro-os-plus/version": "7.1.2",
747
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
747
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
748
748
  }
749
749
  },
750
750
  "stm32f4discovery-cmake-debug": {
@@ -786,7 +786,7 @@
786
786
  "@micro-os-plus/semihosting": "4.0.0",
787
787
  "@micro-os-plus/startup": "3.0.0",
788
788
  "@micro-os-plus/version": "7.1.2",
789
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
789
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
790
790
  }
791
791
  },
792
792
  "stm32f4discovery-cmake-release": {
@@ -828,7 +828,7 @@
828
828
  "@micro-os-plus/semihosting": "4.0.0",
829
829
  "@micro-os-plus/startup": "3.0.0",
830
830
  "@micro-os-plus/version": "7.1.2",
831
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
831
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
832
832
  }
833
833
  },
834
834
  "stm32f4discovery-meson-debug": {
@@ -871,7 +871,7 @@
871
871
  "@micro-os-plus/semihosting": "4.0.0",
872
872
  "@micro-os-plus/startup": "3.0.0",
873
873
  "@micro-os-plus/version": "7.1.2",
874
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
874
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
875
875
  }
876
876
  },
877
877
  "stm32f4discovery-meson-release": {
@@ -914,7 +914,7 @@
914
914
  "@micro-os-plus/semihosting": "4.0.0",
915
915
  "@micro-os-plus/startup": "3.0.0",
916
916
  "@micro-os-plus/version": "7.1.2",
917
- "@xpack-3rd-party/arm-cmsis-core-m": "5.4.0-5"
917
+ "@xpack-3rd-party/arm-cmsis-core": "5.4.0-6"
918
918
  }
919
919
  }
920
920
  }
@@ -103,11 +103,14 @@ namespace micro_os_plus::micro_test_plus
103
103
  #else
104
104
  printf ("Built with an unknown compiler");
105
105
  #endif
106
- #if defined(__ARM_PCS_VFP)
106
+ #if !(defined(__APPLE__) || defined(__linux__) || defined(__unix__) || defined(WIN32))
107
+ // This is relevant only on bare-metal.
108
+ #if defined(__ARM_PCS_VFP) || defined(__ARM_FP)
107
109
  printf (", with FP");
108
110
  #else
109
111
  printf (", no FP");
110
112
  #endif
113
+ #endif
111
114
  #if defined(__EXCEPTIONS)
112
115
  printf (", with exceptions");
113
116
  #else
@@ -149,7 +152,7 @@ namespace micro_os_plus::micro_test_plus
149
152
  suite->begin_test_suite ();
150
153
  suite->run ();
151
154
  suite->end_test_suite();
152
-
155
+
153
156
  was_successful &= suite->was_successful ();
154
157
  }
155
158
  if (reporter.verbosity != verbosity::silent)