You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake: Update README.md with CTest/greentea instructions
The steps for building and running a greentea test have changed since
40154ee. This commit updates the README
with the current instructions for building and running greentea tests
using CMake/Ninja/CTest.
The `MBED_HTRUN_ARGUMENTS` argument is a semicolon separated list of arguments
111
+
to forward to `mbedhtrun`. You can pass any of the optional flags you would
112
+
usually pass to `mbedhtrun` by adding them to this list.
113
+
114
+
The `CMAKE_CTEST_ARGUMENTS` argument is a semicolon separated list of
115
+
arguments to forward to CTest, for more details see [the CMake documentation.](https://cmake.org/cmake/help/latest/variable/CMAKE_CTEST_ARGUMENTS.html)
116
+
117
+
If you want to build with the "bare-metal" profile, append
118
+
`-DMBED_GREENTEA_TEST_BAREMETAL=ON` to the above command.
119
+
120
+
### Build and run tests
121
+
To build and run the tests run the following commands
This will build the tests and run them using `mbedhtrun` to communicate with the target.
132
+
For more information on `ctest` and the options it offers, see [the ctest documentation.](https://cmake.org/cmake/help/latest/manual/ctest.1.html)
102
133
103
134
Notes:
104
-
* These steps will change when `mbedtools` implements a sub-command to invoke Greentea tests
105
-
* Some Greentea tests require specific application configuration files in order to build and run successfully. For example, the `connectivity/mbedtls/tests/TESTS/mbedtls/sanity` test requires the configuration file found at `TESTs/configs/experimental.json`.
135
+
* Some Greentea tests require specific application configuration files in order to build and run successfully. For example, the `connectivity/mbedtls/tests/TESTS/mbedtls/sanity` test requires the configuration file found at `TESTs/configs/experimental.json`. The config should be passed to `mbed-tools configure` using the `--app-config` argument.
0 commit comments