Merge pull request #2702 from mazimkhan/uvisor-gt-client-integration

Changes in greentea-client for uvisor-tests-standalone integration
pull/2719/head
Bogdan Marinescu 2016-09-19 12:47:06 +03:00 committed by GitHub
commit 65ffa8cbb7
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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.
@ -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);
@ -209,6 +211,7 @@ inline void greentea_write_postamble()
{
greentea_serial->putc('}');
greentea_serial->putc('}');
greentea_serial->putc('\r');
greentea_serial->putc('\n');
}