Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"mbed-hal": "^1.0.0",
"minar": "*"
},
"testDependencies": {
"greentea-client": "~0.1.4"
},
"keywords": [
"mbed",
"mbed-official"
Expand Down
10 changes: 4 additions & 6 deletions test/platform_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "mbed/test_env.h"
#include "mbed-drivers/mbed.h"
#include "greentea-client/test_env.h"
#include "us_ticker_api.h"
#include "minar-platform/minar_platform.h"

Expand All @@ -32,10 +33,7 @@ static tick_t sleep_until(tick_t ticks)

void app_start(int, char*[])
{
MBED_HOSTTEST_TIMEOUT(10);
MBED_HOSTTEST_SELECT(default);
MBED_HOSTTEST_DESCRIPTION(minar mbed platform);
MBED_HOSTTEST_START("minar mbed platform");
GREENTEA_SETUP(10, "default_auto");

const char *current_test = "none";
bool tests_pass = false;
Expand Down Expand Up @@ -125,5 +123,5 @@ void app_start(int, char*[])
printf("First failing test: %s \r\n", current_test);
}

MBED_HOSTTEST_RESULT(tests_pass);
GREENTEA_TESTSUITE_RESULT(tests_pass);
}