Skip to content

Commit 571cfef

Browse files
committed
Merge pull request #13 from ARMmbed/strip_yotta
Strip yotta dependencies from this module
2 parents 72c115e + f85f3c0 commit 571cfef

File tree

4 files changed

+13
-264
lines changed

4 files changed

+13
-264
lines changed

greentea-client/test_env.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
#ifndef GREENTEA_CLIENT_TEST_ENV_H_
1919
#define GREENTEA_CLIENT_TEST_ENV_H_
2020

21+
#ifdef YOTTA_GREENTEA_CLIENT_VERSION_STRING
22+
#define MBED_GREENTEA_CLIENT_VERSION_STRING YOTTA_GREENTEA_CLIENT_VERSION_STRING
23+
#else
24+
#define MBED_GREENTEA_CLIENT_VERSION_STRING "1.1.0"
25+
#endif
26+
2127
#include <stdio.h>
2228

2329
/**
@@ -79,12 +85,12 @@ void greentea_send_kv(const char *, const char *, const int);
7985
void greentea_send_kv(const char *, const char *, const int, const int);
8086
int greentea_parse_kv(char *, char *, const int, const int);
8187

82-
#ifdef YOTTA_CFG_DEBUG_OPTIONS_COVERAGE
88+
#ifdef MBED_CFG_DEBUG_OPTIONS_COVERAGE
8389
/**
8490
* Code Coverage API
8591
*/
8692
void greentea_notify_coverage_start(const char *path);
8793
void greentea_notify_coverage_end();
88-
#endif // YOTTA_CFG_DEBUG_OPTIONS_COVERAGE
94+
#endif // MBED_CFG_DEBUG_OPTIONS_COVERAGE
8995

9096
#endif // GREENTEA_CLIENT_TEST_ENV_H_

source/test_env.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void GREENTEA_TESTCASE_FINISH(const char *test_case_name, const size_t passes, c
121121
* LCOV support
122122
*****************************************************************************
123123
*/
124-
#ifdef YOTTA_CFG_DEBUG_OPTIONS_COVERAGE
124+
#ifdef MBED_CFG_DEBUG_OPTIONS_COVERAGE
125125
extern "C" void __gcov_flush(void);
126126
extern bool coverage_report;
127127

@@ -328,8 +328,8 @@ static void greentea_notify_hosttest(const char *host_test_name) {
328328
* else to do). You can place it just before you return from your
329329
* main() function.
330330
*
331-
* Code coverage: If YOTTA_CFG_DEBUG_OPTIONS_COVERAGE is set in the
332-
* project via yotta build configuration function will output series
331+
* Code coverage: If MEBD_CFG_DEBUG_OPTIONS_COVERAGE is set in the
332+
* project via build configuration function will output series
333333
* of code coverage messages GREENTEA_TEST_ENV_LCOV_START with code
334334
* coverage binary data. This data is captured by Greentea and can
335335
* be used to generate LCOV reports.
@@ -339,7 +339,7 @@ static void greentea_notify_hosttest(const char *host_test_name) {
339339
*/
340340
static void greentea_notify_completion(const int result) {
341341
const char *val = result ? GREENTEA_TEST_ENV_SUCCESS : GREENTEA_TEST_ENV_FAILURE;
342-
#ifdef YOTTA_CFG_DEBUG_OPTIONS_COVERAGE
342+
#ifdef MBED_CFG_DEBUG_OPTIONS_COVERAGE
343343
coverage_report = true;
344344
__gcov_flush();
345345
coverage_report = false;
@@ -352,7 +352,7 @@ static void greentea_notify_completion(const int result) {
352352
* \brief Send to master greentea-client version
353353
*/
354354
static void greentea_notify_version() {
355-
greentea_send_kv(GREENTEA_TEST_ENV_HOST_TEST_VERSION, YOTTA_GREENTEA_CLIENT_VERSION_STRING);
355+
greentea_send_kv(GREENTEA_TEST_ENV_HOST_TEST_VERSION, MBED_GREENTEA_CLIENT_VERSION_STRING);
356356
}
357357

358358
/**

test/host_tests/reset_test.py

Lines changed: 0 additions & 112 deletions
This file was deleted.

test/reset/main.cpp

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)