mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2702 from mazimkhan/uvisor-gt-client-integration
Changes in greentea-client for uvisor-tests-standalone integrationpull/2719/head
commit
65ffa8cbb7
|
@ -75,6 +75,8 @@ extern const char* GREENTEA_TEST_ENV_LCOV_START;
|
||||||
*/
|
*/
|
||||||
void GREENTEA_SETUP(const int, const char *);
|
void GREENTEA_SETUP(const int, const char *);
|
||||||
void GREENTEA_TESTSUITE_RESULT(const int);
|
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
|
* Test suite result related notification API
|
||||||
|
|
|
@ -58,6 +58,7 @@ static void greentea_notify_timeout(const int);
|
||||||
static void greentea_notify_hosttest(const char *);
|
static void greentea_notify_hosttest(const char *);
|
||||||
static void greentea_notify_completion(const int);
|
static void greentea_notify_completion(const int);
|
||||||
static void greentea_notify_version();
|
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)
|
/** \brief Handshake with host and send setup data (timeout and host test name)
|
||||||
* \details This function will send preamble to master.
|
* \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};
|
char _value[48] = {0};
|
||||||
while (1) {
|
while (1) {
|
||||||
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value));
|
greentea_parse_kv(_key, _value, sizeof(_key), sizeof(_value));
|
||||||
|
greentea_write_string("mbedmbedmbedmbedmbedmbedmbedmbed\r\n");
|
||||||
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) {
|
if (strcmp(_key, GREENTEA_TEST_ENV_SYNC) == 0) {
|
||||||
// Found correct __sunc message
|
// Found correct __sunc message
|
||||||
greentea_send_kv(_key, _value);
|
greentea_send_kv(_key, _value);
|
||||||
|
@ -209,6 +211,7 @@ inline void greentea_write_postamble()
|
||||||
{
|
{
|
||||||
greentea_serial->putc('}');
|
greentea_serial->putc('}');
|
||||||
greentea_serial->putc('}');
|
greentea_serial->putc('}');
|
||||||
|
greentea_serial->putc('\r');
|
||||||
greentea_serial->putc('\n');
|
greentea_serial->putc('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue