Skip to content

Commit

Permalink
Merge pull request ARMmbed#2702 from mazimkhan/uvisor-gt-client-integ…
Browse files Browse the repository at this point in the history
…ration

Changes in greentea-client for uvisor-tests-standalone integration
  • Loading branch information
bogdanm committed Sep 19, 2016
2 parents ff89555 + 7cc3f40 commit 65ffa8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ extern const char* GREENTEA_TEST_ENV_LCOV_START;
*/
void GREENTEA_SETUP(const int, const char *);
void GREENTEA_TESTSUITE_RESULT(const int);
void GREENTEA_TESTCASE_START(const char *test_case_name);
void GREENTEA_TESTCASE_FINISH(const char *test_case_name, const size_t passes, const size_t failed);

/**
* Test suite result related notification API
Expand Down
3 changes: 3 additions & 0 deletions features/frameworks/greentea-client/source/test_env.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ static void greentea_notify_timeout(const int);
static void greentea_notify_hosttest(const char *);
static void greentea_notify_completion(const int);
static void greentea_notify_version();
static void greentea_write_string(const char *str);

/** \brief Handshake with host and send setup data (timeout and host test name)
* \details This function will send preamble to master.
Expand All @@ -74,6 +75,7 @@ void GREENTEA_SETUP(const int timeout, const char *host_test_name) {
char _value[48] = {0};
while (1) {
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value));
greentea_write_string("mbedmbedmbedmbedmbedmbedmbedmbed\r\n");
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) {
// Found correct __sunc message
greentea_send_kv(_key, _value);
Expand Down Expand Up @@ -209,6 +211,7 @@ inline void greentea_write_postamble()
{
greentea_serial->putc('}');
greentea_serial->putc('}');
greentea_serial->putc('\r');
greentea_serial->putc('\n');
}

Expand Down

0 comments on commit 65ffa8c

Please sign in to comment.