Skip to content

Commit 65ffa8c

Browse files
authored
Merge pull request #2702 from mazimkhan/uvisor-gt-client-integration
Changes in greentea-client for uvisor-tests-standalone integration
2 parents ff89555 + 7cc3f40 commit 65ffa8c

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
@@ -58,6 +58,7 @@ static void greentea_notify_timeout(const int);
5858
static void greentea_notify_hosttest(const char *);
5959
static void greentea_notify_completion(const int);
6060
static void greentea_notify_version();
61+
static void greentea_write_string(const char *str);
6162

6263
/** \brief Handshake with host and send setup data (timeout and host test name)
6364
* \details This function will send preamble to master.
@@ -74,6 +75,7 @@ void GREENTEA_SETUP(const int timeout, const char *host_test_name) {
7475
char _value[48] = {0};
7576
while (1) {
7677
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value));
78+
greentea_write_string("mbedmbedmbedmbedmbedmbedmbedmbed\r\n");
7779
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) {
7880
// Found correct __sunc message
7981
greentea_send_kv(_key, _value);
@@ -209,6 +211,7 @@ inline void greentea_write_postamble()
209211
{
210212
greentea_serial->putc('}');
211213
greentea_serial->putc('}');
214+
greentea_serial->putc('\r');
212215
greentea_serial->putc('\n');
213216
}
214217

0 commit comments

Comments
 (0)