Skip to content

Commit 98f5522

Browse files
committed
Merge pull request #18 from stegut01/porting
Port tests to async model
2 parents b11f84f + 19ef4db commit 98f5522

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

module.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"mbed-hal": "^1.0.0",
3333
"minar": "*"
3434
},
35+
"testDependencies": {
36+
"greentea-client": "~0.1.4"
37+
},
3538
"keywords": [
3639
"mbed",
3740
"mbed-official"

test/platform_test/main.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
#include "mbed/test_env.h"
17+
#include "mbed-drivers/mbed.h"
18+
#include "greentea-client/test_env.h"
1819
#include "us_ticker_api.h"
1920
#include "minar-platform/minar_platform.h"
2021

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

3334
void app_start(int, char*[])
3435
{
35-
MBED_HOSTTEST_TIMEOUT(10);
36-
MBED_HOSTTEST_SELECT(default);
37-
MBED_HOSTTEST_DESCRIPTION(minar mbed platform);
38-
MBED_HOSTTEST_START("minar mbed platform");
36+
GREENTEA_SETUP(10, "default_auto");
3937

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

128-
MBED_HOSTTEST_RESULT(tests_pass);
126+
GREENTEA_TESTSUITE_RESULT(tests_pass);
129127
}

0 commit comments

Comments
 (0)