Azim Khan
101cf5e6a3
Remove multiple definition of GREENTEA_SETUP added due to rebase
2017-06-20 17:13:38 +01:00
Azim Khan
0ffbf756d5
Merge greentea-client/test_env_c.h into greentea-client/test_env.h
2017-06-20 17:13:38 +01:00
Azim Khan
9c11240b48
Revert greentea_getc() to return 'int'
2017-06-20 17:13:38 +01:00
Azim Khan
c682fb5b74
Use existing functions for Greentea client C API
2017-06-20 17:13:37 +01:00
Azim Khan
b0329aea59
Add getc in C API
2017-06-20 17:13:37 +01:00
Mohammad Azim Khan
739d5ecdff
C API for greentea client
2017-06-20 17:13:37 +01:00
Christopher Haster
28d2b202c8
Added reporting of reserved heap
...
Note: Reporting of reserved stack is already performed by the thread
layer
2017-06-20 17:13:35 +01:00
Brian Daniels
dad8e4e61a
Fixing typos in docs
2017-06-11 09:48:44 +01:00
Brian Daniels
0168802b6b
Adding comments for added Greentea function
2017-06-11 09:48:44 +01:00
Brian Daniels
b44e7e9921
Specifying default length of UUID for Greentea
...
This creates a macro for the UUID length used by Greentea. This cuts
down on the use of "magic numbers" in test cases that use
the GREENTEA_SETUP_UUID function.
2017-06-11 09:48:42 +01:00
Brian Daniels
4bc6fd4da7
Adding ability to preserve Greentea UUID in test.
...
The Greentea UUID can be used as a source of entropy/randomness during
the test. This is useful for uniquely identifying a test run.
2017-06-11 09:48:39 +01:00
Kevin Gilbert
87cd2059dd
Placed verbatim tags around a pair of brackets that Doxygen interpreted as xml tags
2017-06-11 09:48:29 +01:00
Kevin Gilbert
c024f57832
Resolved Doxygen build errors
2017-06-11 09:48:29 +01:00
Vincent Coubard
747b624594
utest_case.h : Fix comment indentation
2017-06-11 09:48:08 +01:00
Vincent Coubard
c11d497803
utest case: Indicate explicitely that no data member shall be declared in the Case class.
2017-06-11 09:48:07 +01:00
Vincent Coubard
9d67ce2d91
utest optimization: Allow case data structure to be put in ROM.
...
This patch split the Case class in two entities: Case and case_t. case_t contains the test case data structure while Case provide the interface to the test case. Unlike the class Case, case _t is a POD and can be instantiated at compile time and put in the constant data section (in ROM).
The Specification class has also been modified to accept arrays of case_t.
2017-06-11 09:48:07 +01:00
Russ Butler
52b767496e
Fix warning about unused mutex
...
Move the metrics mutex into the ifdef MBED_STACK_STATS_ENABLED since
it is not used ouside of it. This fixes the warning:
[Warning] greentea_metrics.cpp@37,28: 'mutex' defined but not used [-Wunused-variable]
2017-06-11 09:48:06 +01:00
Bartek Szatkowski
b793a3fb89
Update codebase for CMSIS5/RTX5
...
Update all of mbed-os to use RTX5.
2017-05-30 18:55:52 +01:00
Christopher Haster
aff49d8d1e
Renamed files in platform to match source names
...
critical.h -> mbed_critical.h
sleep.h -> mbed_sleep.h
toolchain.h -> mbed_toolchain.h
rtc_time.h -> mbed_rtc_time.h
semihost_api.h -> mbed_semihost_api.h
wait_api.h -> mbed_wait_api.h
2017-02-22 18:17:54 -06:00
Brian Daniels
8a29f54ae4
Renaming test_env.cpp in greentea to avoid warning
2017-01-17 17:27:41 -06:00
Martin Kojtal
ab2e869a24
Merge pull request #3157 from SiliconLabs/SiliconLabs-EFR32
...
[Silicon Labs] Adding support for EFR32MG1 wireless SoC
2016-12-02 15:46:35 +01:00
Mizuho
56d71a429e
added static specifer in green_metrics.cpp
2016-11-19 08:17:05 +09:00
Steven Cooreman
3cfdf8f302
Make GreenTea respect STDIO baud rate
2016-11-07 11:57:02 +01:00
Brian Daniels
7a8946ff24
Replacing getchar with RawSerial getc in greentea-client.
...
This change prevents the standard library from allocating a large buffer
on the heap. On GCC_ARM, this is a saving of 1K. On ARM, this is a saving
of 64 bytes.
2016-10-26 16:55:54 -05:00
Jimmy Brisson
f1a78027d3
Add tags to our code
2016-10-04 15:02:44 -05:00
Vincent Coubard
8070468b58
GREENTEA - Fix warning about unused function in greentea_metrics.cpp.
...
This change isolate properly functions and variable declared when
MBED_STACK_STATS_ENABLED is on.
2016-09-26 17:32:23 +01:00
Vincent Coubard
90496ed5dc
UTEST - Fix warning by removing unreachable statement.
...
Some compiler will trigger warnings if code is located after the exit function
because this function never returns (by the standard...).
2016-09-26 17:05:03 +01:00
Vincent Coubard
25148af3a2
UTEST - Fix warning in utest_shim.cpp by removing unreachable statement.
2016-09-26 17:02:01 +01:00
Vincent Coubard
0b94aae00b
GREENTEA - Fix warning by adding empty line at the end of greentea_serial.cpp.
2016-09-26 16:58:35 +01:00
Vincent Coubard
f150f4f5e0
GREENTEA - fix warning by removing unreachable statement.
2016-09-26 16:56:28 +01:00
Vincent Coubard
ed4889c79f
GREENTEA - Fix a warning due to the absence of an empty line at the end of greentea_serial.h
2016-09-26 16:48:27 +01:00
Bogdan Marinescu
65ffa8cbb7
Merge pull request #2702 from mazimkhan/uvisor-gt-client-integration
...
Changes in greentea-client for uvisor-tests-standalone integration
2016-09-19 12:47:06 +03:00
Mohammad Azim Khan
7cc3f40b38
Changes in greentea-client for uvisor-tests-standalone integration
2016-09-14 13:36:08 +01:00
Russ Butler
9e4a479794
Add prefix to mark cmsis_os functions as private
...
Add a leading underscore to give an indication that the new cmsis_os
API functions are not official.
2016-09-13 15:53:17 -05:00
Russ Butler
1921b1aa96
Add stack metrics to greentea
...
Update greentea to report thread information when a thread exits or
is terminated and when testing completes. Also move metrics into
a dedicated greentea file.
2016-09-13 15:52:18 -05:00
Vincent Coubard
aab107020b
Use SingletonPtr for the internal variables defaults and handlers in utest_harness.
2016-09-09 17:22:41 +01:00
Vincent Coubard
caa4c4f2a3
Use a SingletonPtr for the Timeout object in utest_shim.
...
Makes sure to initialize it, otherwize, it might be initialized in
interrupt context.
2016-09-06 10:14:26 +01:00
Vincent Coubard
cb4a7fa85e
Use greentea_serial SingletonPtr.
2016-08-31 16:24:12 +01:00
Vincent Coubard
85bce1467f
Improve compatibility between base_control_t and control_t.
...
* provide missing member functions from control_t in base_control_t
* construction of control_t from reference of base_control_t instead of
value.
* overload operator+ for all permutations between control_t and
base_control_t.
2016-08-30 13:29:17 +01:00
Vincent Coubard
df3e3b251d
Fix scope of the serial variable.
2016-08-30 13:29:16 +01:00
Vincent Coubard
daa135a1b3
Move defaults and handlers variable into a static function.
...
This change allow a lot of code from utest to be removed from the final
binary if not used.
2016-08-30 13:29:14 +01:00
Vincent Coubard
eed52a05d5
Replace default_handlers value by a reference.
2016-08-30 13:29:12 +01:00
Vincent Coubard
4bf28d474c
Convert case_control to a POD.
2016-08-30 13:29:10 +01:00
Vincent Coubard
7a6edda44c
Enhance compatibility between control_t and base_control_t:
...
* Add conversion operator in control_t to convert instances to base_control_t
2016-08-30 13:29:09 +01:00
Vincent Coubard
6d319c521f
Construct control_t from a POD struct.
...
Replace const control_t instances by this POD.
This save memory and prevent inclusion of the constants in the binary if
they are not used.
2016-08-30 13:29:07 +01:00
Vincent Coubard
8fa239cdfd
Move constant definitions of non POD object into cpp file.
...
It save space and fix the ODR violation.
2016-08-30 13:29:05 +01:00
Vincent Coubard
2bc5c3d069
Move global Timeout object from utest_shim in static function.
...
The change of scope allow the linker to remove the variable if not used.
2016-08-30 13:29:03 +01:00
Vincent Coubard
acc3115e27
Move utest global serial object into a function.
...
That way it is not a global object anymore and is not attached to the
.init section and init array. If the function which contain the object is
not called then the serial object will not be present in the final binary.
2016-08-30 13:23:08 +01:00
Sam Grove
a7c7ceda0e
Merge pull request #2455 from bridadan/share-greentea-serial-in-frameworks
...
Sharing greentea-client's RawSerial with utest and UNITY.
2016-08-26 09:56:23 -05:00
Sam Grove
2fe3e5214e
Merge pull request #2509 from adbridge/copy_constructor
...
Utest: default copy constructor for failure_t doesn't behave as expected
2016-08-26 09:23:21 -05:00