Arto Kinnunen
923ce138f5
Merge commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d' into mbedos511
...
* commit '661681f65c3fb61aec2e4605bef0fc075cc8cb0d':
Squashed 'features/frameworks/nanostack-libservice/' changes from bb56e37..1d4c358
2018-11-10 20:14:25 +02:00
Arto Kinnunen
9a13e9d5e8
Merge commit '1374a5e5e6775dd6db9533075f25b3112c984b22' into mbedos511
...
* commit '1374a5e5e6775dd6db9533075f25b3112c984b22':
Squashed 'features/frameworks/mbed-trace/' changes from 9eaf0d1..7a1bd34
2018-11-09 15:59:35 +02:00
Arto Kinnunen
ce2ecd5e5b
Merge commit '5d162a08ffd383c97b49e35f3065fcd4638ac87c' as 'features/frameworks/mbed-client-randlib'
2018-11-09 15:52:44 +02:00
Arto Kinnunen
72fc5faab0
Remove mbed-client-randlib
...
Remove mbed-client-randlib and add it later as git subtree
2018-11-09 15:48:41 +02:00
Arto Kinnunen
2d10cebd00
Sync mbed-client-cli files with v0.4.0
...
Sync mbed-client-cli with master repo v0.4.0.
2018-11-08 13:21:56 +02:00
Arto Kinnunen
d7e2bd3f81
Merge commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646' into mbedos511
...
* commit '7fab5abace6aa9d6fc6c335fa6fcab15a108d646':
Squashed 'features/frameworks/mbed-trace/' changes from 6df2572..9eaf0d1
2018-11-05 14:21:35 +02:00
Arto Kinnunen
66620a2761
Merge commit '0ca91df5905111270a6ec1343be5c726c97fe571' into mbedos511
...
* commit '0ca91df5905111270a6ec1343be5c726c97fe571':
Squashed 'features/frameworks/nanostack-libservice/' changes from 5eb2f3f..bb56e37
2018-11-05 14:17:48 +02:00
Anna Bridge
83dada3bdc
Merge pull request #8404 from anttiylitokola/mbed_coap_4.7.1
...
Update mbed-coap to version 4.7.1
2018-10-19 15:11:31 +01:00
Deepika
9db31d299b
Resolve build issues in test
...
mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
2018-10-16 11:50:16 -05:00
deepikabhavnani
e95d08e471
Greentea: Add required header file and namespace element instead add all
...
1. RTOS is needed only for Stack stats
Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'
2. Add heap stats only when MBED_HEAP_STATS_ENABLED
2018-10-15 10:57:24 -05:00
Deepika
1fe633799d
Framework: Add required header file and namespace element instead add all
2018-10-15 10:57:21 -05:00
Antti Yli-Tokola
032d1f5709
Update mbed-coap to version 4.7.1
...
Add re-scan routine goto if message is caused user callback
This will fix hard fault when blockwise message sending timeouts. This happens cause same list is manipulated through rx callback.
2018-10-12 17:11:21 +03:00
Kevin Bracey
1ef213ec89
Clean up Thread deprecation warnings
...
Static Thread methods and signal methods have been deprecated. Remove
all references in the main code, and most of the tests. Some tests of
the deprecated APIs themselves remain.
2018-10-12 14:57:13 +03:00
Cruz Monrreal
2c296fcfd6
Merge pull request #8273 from anttiylitokola/mbed-coap-4.7.0
...
Update mbed-coap to version 4.7.0
2018-10-11 10:12:54 -05:00
Arto Kinnunen
1dac676833
Merge commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf'
...
* commit '7d2f0cab63a2223a426c44e13f771abe6a7d7eaf':
Squashed 'features/frameworks/nanostack-libservice/' changes from 2705b9b..5eb2f3f
2018-10-05 13:09:29 +03:00
Antti Yli-Tokola
4c692c6b45
Update mbed-coap to version 4.7.0
...
- Add function that can be used to clear the received blockwise payloads for example in the case of a connection error.
- Silence compiler warning when CoAP duplicate detection is enabled.
2018-09-27 18:55:46 +03:00
Antti Yli-Tokola
4249318546
Update mbed-coap to version 4.6.3
...
- Bug fix: Remove timed out blockwise message from resend queue. If blockwise message was timed out message was still kept in the resend queue which causes unnecessary reconnections on client side.
- Documentation: Document all the available macros.
2018-09-06 16:08:49 +03:00
Cruz Monrreal
e7c166ebc2
Merge pull request #7907 from anttiylitokola/coap_to_4.6.2
...
Update mbed-coap to version 4.6.2
2018-09-02 15:14:04 -05:00
Jarno Lamsa
664d98a2b8
Remove startuml doxygen-command
2018-08-31 11:52:30 +03:00
Jarno Lamsa
e4e6ddc424
Fix doxygen from ns_cmdline.h
2018-08-31 11:52:30 +03:00
Olli-Pekka Puolitaival
fbbbc0d77f
Move mbed-client-cli in right place
2018-08-31 11:52:15 +03:00
Olli-Pekka Puolitaival
e27a26eb9d
Icetea support
2018-08-31 11:51:57 +03:00
Antti Yli-Tokola
7ae00ee24a
Update mbed-coap to version 4.6.2
...
Do not clear block2 in subsequent block request.
When sending a request with block2 option, eg. indicating need
for response to be blockwised, copy the block2 option from the
sent_blockwise list item so that the block2 option will be added
to all requests. This fixes an issue where previously the block2
was only sent for the first blockwise request and not for the
subsequent ones, including the last request. This made the response
not follow the request block2 option.
2018-08-28 11:09:45 +03:00
Cruz Monrreal
bf2da4859c
Merge pull request #7761 from aashishc1988/master
...
ifndef some macros to allow overriding during compilation
2018-08-27 10:27:49 -05:00
Martin Kojtal
871d7e7361
Merge pull request #7730 from davidsaada/david_stack_stats_fail_fix
...
When stack stats enabled, prevent exceptions if memory allocations fail
2018-08-24 11:31:24 +02:00
Antti Yli-Tokola
f78f5601e5
Update mbed-coap to version 4.6.1
...
Fixes error: IOTCLT-2900 - Blockwise handling leaking memory in some error cases
* Fix memory leak when clearing blockwise payload list
* Token was not freed from the list when closing down the library
Fix unused parameter - warning when blockwise is not used
2018-08-15 14:07:38 +03:00
Antti Yli-Tokola
590dfeb1f9
Update mbed-coap to version 4.6.0
...
* Added new API which clears one item from the resend queue by token
2018-08-15 11:16:42 +03:00
Aashish chaddha
1cdef09698
ifndef some macros to allow overriding during compilation or be able to get some warnings during redefinition
2018-08-08 15:23:19 -05:00
David Saada
cfe7df28c9
When stack stats enabled, prevent exceptions if memory allocations fail
2018-08-08 16:18:29 +03:00
Antti Yli-Tokola
20f647435a
Update mbed-coap version to 4.5.1
...
Fixes error: IOTCLT-2883 - Blockwise observations not completing
2018-07-31 10:31:09 +03:00
David Saada
2b7d83652e
Unity: Add macros for test skipping.
...
The TEST_SKIP and TEST_SKIP_UNLESS macros (w/ and w/o messages) allow the test
to skip the test case execution from the point the macro was called (without
failing the test).
2018-07-11 14:51:05 +03:00
Arto Kinnunen
3d5010de12
Merge commit 'a184ff592b547f153aa14c99329f65fd18515b0d'
...
* commit 'a184ff592b547f153aa14c99329f65fd18515b0d':
Squashed 'features/frameworks/nanostack-libservice/' changes from ddd45db..2705b9b
2018-07-02 13:15:58 +03:00
Cruz Monrreal
f10bb88b97
Merge pull request #7294 from jeromecoutant/PR_GREENTEA_STAT
...
Add CPU stats for greentea tests
2018-06-29 19:57:42 -05:00
jeromecoutant
35c9ddc356
Add CPU stats for greentea tests
2018-06-28 10:54:58 +02:00
Antti Yli-Tokola
c887248544
Update mbed-coap to version 4.5.0
...
Fix error: IIOTCLT-2769 - mbed-coap: extra response received after registration
Added own flag to enable blockwise support, without setting default blockwise
payload size. This allows to receive blockwise messages while still sending
without blockwise.
Fix CoAP request blockwise response handling
When request is sent, response can have blockwise option set. All requests must
be stored to the linked list.
2018-06-25 17:08:52 +03:00
Antti Yli-Tokola
7b1484fb11
Update mbed-coap to version 4.4.4
...
Fixes one error: IOTCLT-2638 Hardfault during reconnection retry with Thread
2018-06-01 10:04:10 +03:00
Cruz Monrreal
54ac02b080
Merge pull request #6865 from jamesbeyond/greentea_fix
...
fix greentea-client, require a character input between K-V pairs
2018-05-17 10:07:41 -05:00
Cruz Monrreal
bce32b097e
Merge pull request #6876 from JuhPuur/master
...
Nanostack release for Mbed OS 5.9
2018-05-17 10:07:21 -05:00
Qinghao Shi
d48d3aff2b
fix a bug in greentea-client
...
reset "LastChar" after "tok_close" received
fix the bug where greentea-client require a character input between K-V pairs
2018-05-14 11:41:14 +01:00
Antti Yli-Tokola
511df14eb0
Update mbed-coap to version 4.4.3
...
Fixes error: IOTCLT-2506 [GitHub] Cannot set registration time if server does not use max age option
Improvements; Extend blockwise message transfer status to have states for sending as well.
NOTE! These are internal changes required for cloud client. This has no direct relevance to any mbed-os functionality.
2018-05-11 17:14:09 +03:00
Juhani Puurula
7c38f19745
Merge commit 'd6732a1b96814a2ea635b3d517f498127843a097'
...
* commit 'd6732a1b96814a2ea635b3d517f498127843a097':
Squashed 'features/frameworks/nanostack-libservice/' changes from 09056ed..ddd45db
2018-05-11 09:59:29 +03:00
Juhani Puurula
690a4c7f09
Merge commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492'
...
* commit '7a58eaec9d5f2aad89caf3cdb47346d2ff648492':
Squashed 'features/frameworks/mbed-trace/' changes from 6d3590f..6df2572
2018-05-11 09:55:48 +03:00
Seppo Takalo
d1c6bc0913
Get rid of FEATURE_COMMON_PAL
...
Nanostack related files moved under 'feature/nanostack'
Common libraries moved to 'features/frameworks'
Allow FEATURE_COMMON_PAL still to be defined in the build so
that we don't break any builds.
2018-04-27 14:38:43 +03:00
Marcus Chang
595a98b313
Enable flow control in Greentea
...
Flow control is enabled in Greentea for targets that has
console-uart-flow-control set.
2018-04-17 14:16:31 -07:00
jeromecoutant
da379757f9
Unity framework : add float support in error print
2017-11-23 15:22:58 +01:00
Jimmy Brisson
33113ae207
Correct unity math for ARMC6
...
The assumed that isnan and isinf would be macros, but they are functions
in ARMC6.
2017-09-11 13:20:33 -05:00
Christopher Haster
4cad764162
Added copyright header to all tests
2017-08-07 12:02:33 -05:00
Russ Butler
e46bb0ed15
Add support for runtime test specification
...
Add a constructor which explicitly takes the number of test cases.
This allows a test case array created at runtime to be used.
2017-07-18 12:03:06 -05:00
Jimmy Brisson
1ffbdfc048
Merge pull request #4364 from mazimkhan/mbed-tls-test
...
Add C API for Greentea client
2017-06-19 11:58:47 -05:00
Jimmy Brisson
a6695ae5a8
Merge pull request #4504 from geky/gt-add-reserved-memory-reporting
...
greentea: Add reporting of reserved heap
2017-06-19 11:03:30 -05:00
Azim Khan
0b929199e4
Remove multiple definition of GREENTEA_SETUP added due to rebase
2017-06-13 10:02:55 +01:00
Azim Khan
b3cbb07566
Merge greentea-client/test_env_c.h into greentea-client/test_env.h
2017-06-12 13:46:22 +01:00
Azim Khan
82d948de6b
Revert greentea_getc() to return 'int'
2017-06-12 13:46:22 +01:00
Azim Khan
088d151507
Use existing functions for Greentea client C API
2017-06-12 13:46:22 +01:00
Azim Khan
0edf082c59
Add getc in C API
2017-06-12 13:23:20 +01:00
Mohammad Azim Khan
bd5820f77c
C API for greentea client
2017-06-12 13:23:20 +01:00
Brian Daniels
00a41add12
Fixing typos in docs
2017-06-10 15:14:28 +01:00
Brian Daniels
f616bf28f6
Adding comments for added Greentea function
2017-06-10 15:14:28 +01:00
Brian Daniels
6e76fce4fc
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-10 15:14:28 +01:00
Brian Daniels
551ff03dc0
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-10 15:14:28 +01:00
Christopher Haster
40957c14b3
Added reporting of reserved heap
...
Note: Reporting of reserved stack is already performed by the thread
layer
2017-06-09 10:57:08 +01:00
Kevin Gilbert
090e63f36a
Placed verbatim tags around a pair of brackets that Doxygen interpreted as xml tags
2017-06-08 17:12:03 -05:00
Kevin Gilbert
57a70d93f9
Resolved Doxygen build errors
2017-06-08 15:53:27 -05:00
Sam Grove
28f590fc4c
Merge pull request #4430 from pan-/utest_cases_romable
...
utest optimization: Allow case data structure to be put in ROM.
2017-06-06 19:58:53 -05:00
Russ Butler
2d7cf60278
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-05 18:06:08 -05:00
Vincent Coubard
f36619b859
utest_case.h : Fix comment indentation
2017-06-05 16:06:17 +01:00
Vincent Coubard
165d76ae25
utest case: Indicate explicitely that no data member shall be declared in
...
the Case class.
2017-06-05 16:06:17 +01:00
Vincent Coubard
5b27d65755
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-05 16:06:17 +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