Skip to content

Commit 7cc3f40

Browse files
author
Mohammad Azim Khan
committed
Changes in greentea-client for uvisor-tests-standalone integration
1 parent 5dcd546 commit 7cc3f40

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

features/frameworks/greentea-client/greentea-client/test_env.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ extern const char* GREENTEA_TEST_ENV_LCOV_START;
7575
*/
7676
void GREENTEA_SETUP(const int, const char *);
7777
void GREENTEA_TESTSUITE_RESULT(const int);
78+
void GREENTEA_TESTCASE_START(const char *test_case_name);
79+
void GREENTEA_TESTCASE_FINISH(const char *test_case_name, const size_t passes, const size_t failed);
7880

7981
/**
8082
* Test suite result related notification API

features/frameworks/greentea-client/source/test_env.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ static void greentea_notify_timeout(const int);
5757
static void greentea_notify_hosttest(const char *);
5858
static void greentea_notify_completion(const int);
5959
static void greentea_notify_version();
60+
static void greentea_write_string(const char *str);
6061

6162
/** \brief Handshake with host and send setup data (timeout and host test name)
6263
* \details This function will send preamble to master.
@@ -72,6 +73,7 @@ void GREENTEA_SETUP(const int timeout, const char *host_test_name) {
7273
char _value[48] = {0};
7374
while (1) {
7475
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value));
76+
greentea_write_string("mbedmbedmbedmbedmbedmbedmbedmbed\r\n");
7577
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) {
7678
// Found correct __sunc message
7779
greentea_send_kv(_key, _value);
@@ -207,6 +209,7 @@ inline void greentea_write_postamble()
207209
{
208210
greentea_serial->putc('}');
209211
greentea_serial->putc('}');
212+
greentea_serial->putc('\r');
210213
greentea_serial->putc('\n');
211214
}
212215

0 commit comments

Comments
 (0)