Commit Graph

32 Commits (505d1e1fa72cd86dc9de39718afce2a88e1ab30d)

Author SHA1 Message Date
Mihail Stoyanov ed1741e452 Move tests to their appropriate source folder 2016-06-13 19:08:32 +01:00
Rohit Grover cc03913cea replace use of mbed-trace with printfs 2016-06-13 15:49:10 +01:00
Sam Grove c9bffe016f Merge pull request #288 from rgrover/master
introduce tests for storage_abstraction and flash_journal
2016-06-12 16:51:43 +01:00
Christopher Haster 0bf294c2ed Workaround for delays in serial read in htrun
Caused tests based around serial communication to take longer than
expected. Most notably the echo tests.
2016-06-11 21:07:57 -05:00
Brian Daniels 2aa7532bbd Fixing dev_null test
The dev null test was returning failure from the device even though the
device can't determine the success of its own test. Therefore I've removed
this line. The device now lets the host test determines the success of the
test.
2016-06-11 13:06:27 +01:00
Rohit Grover 55ab6e0064 comment out uses of PRI*32 in printf messages 2016-06-10 16:23:28 +01:00
Przemek Wirkus bc46495308 Merge pull request #222 from PrzemekWirkus/gt_client_net
[test porting] Network tests (basic)
2016-06-10 15:14:12 +01:00
Przemek Wirkus 870f8390cf Merge pull request #286 from geky/devel_gt_client_iar
[test porting] Fixed IAR issues in tests
2016-06-10 15:14:00 +01:00
Przemek Wirkus 2d1548f85a Merge pull request #274 from PrzemekWirkus/devel_gt_rebase_09062016
[test porting] Development branch rebase 09/06/2016
2016-06-10 15:13:46 +01:00
Rohit Grover 58c2e29f42 introduce tests for storage_abstraction and flash_journal 2016-06-10 15:13:44 +01:00
Przemek Wirkus 3b3745e008 Add few non-peripheral tests from mbedmicro/mbed/libraries/tests/mbed
Tested on K64F:
```
$ mbedgt -VS -n TESTS-mbedmicro-mbed*
```
```
mbedgt: test suite report:
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
| target       | platform_name | test suite                            | result | elapsed_time (sec) | copy_method |
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-call_before_main | OK     | 10.53              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-cpp              | OK     | 10.64              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-div              | OK     | 10.64              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-heap_and_stack   | OK     | 30.32              | shell       |
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 4 OK
mbedgt: test case report:
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
| target       | platform_name | test suite                            | test case                             | passed | failed | result | elapsed_time (sec) |
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-call_before_main | tests-mbedmicro-mbed-call_before_main | 1      | 0      | OK     | 10.53              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-cpp              | tests-mbedmicro-mbed-cpp              | 1      | 0      | OK     | 10.64              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-div              | tests-mbedmicro-mbed-div              | 1      | 0      | OK     | 10.64              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-heap_and_stack   | tests-mbedmicro-mbed-heap_and_stack   | 1      | 0      | OK     | 30.32              |
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
mbedgt: test case results: 4 OK
mbedgt: completed in 62.25 sec
```
2016-06-10 13:41:07 +01:00
Przemek Wirkus 68b0b7b9cd mbedmicro/mbed RTOS-mbed tests port to greentea-client 2016-06-10 13:41:03 +01:00
Przemek Wirkus 00efb00aac mbed-drivers test cases port to mbed-os 2016-06-10 13:40:59 +01:00
Brian Daniels 8300c2ea47 Workaround for collision of _UP in IAR 2016-06-09 21:52:50 -05:00
Christopher Haster 3dc7d3d323 Fixed issue with stricter alignment than stack in IAR 2016-06-09 21:52:50 -05:00
Christopher Haster 2e5f340981 Updated pre-defork-tests with feedback 2016-06-09 13:08:04 -05:00
Przemek Wirkus f01ae8ab9a Add UDP Echo client test
```
mbedgt: test on hardware with target id: 0240000029304e450038500878a3003cf131000097969900
mbedgt: test suite 'TESTS-mbedmicro-net-udp_echo_client' ............................................. OK in 18.33 sec
        test case: 'tests-mbedmicro-net-udp_echo_client' ............................................. OK in 18.33 sec
mbedgt: test case summary: 1 pass, 0 failures
mbedgt: all tests finished!
mbedgt: shuffle seed: 0.6134776338
mbedgt: test suite report:
+--------------+---------------+-------------------------------------+--------+--------------------+-------------+
| target       | platform_name | test suite                          | result | elapsed_time (sec) | copy_method |
+--------------+---------------+-------------------------------------+--------+--------------------+-------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-net-udp_echo_client | OK     | 18.33              | shell       |
+--------------+---------------+-------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 1 OK
mbedgt: test case report:
+--------------+---------------+-------------------------------------+-------------------------------------+--------+--------+--------+--------------------+
| target       | platform_name | test suite                          | test case                           | passed | failed | result | elapsed_time (sec) |
+--------------+---------------+-------------------------------------+-------------------------------------+--------+--------+--------+--------------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-net-udp_echo_client | tests-mbedmicro-net-udp_echo_client | 1      | 0      | OK     | 18.33              |
+--------------+---------------+-------------------------------------+-------------------------------------+--------+--------+--------+--------------------+
mbedgt: test case results: 1 OK
mbedgt: completed in 18.48 sec
```
2016-06-09 16:10:10 +01:00
Simon D Hughes 88b3d838f2 Corrected order of #include files to include local header files first, and minimized cfstore_fnmatch.h content 2016-06-09 12:32:46 +01:00
Przemek Wirkus 056264b456 Add NIST/NTP client UDP test
Test case run:
```
[1465403072.69][CONN][RXD] {{__sync;a0c12e11-442c-4a60-aecf-448b5877cee3}}
[1465403072.69][CONN][RXD] {{__version;1.1.0}}
[1465403072.69][CONN][RXD] {{__timeout;20}}
[1465403072.69][CONN][RXD] {{__host_test_name;default_auto}}
[1465403072.69][CONN][INF] found SYNC in stream: {{__sync;a0c12e11-442c-4a60-aecf-448b5877cee3}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__version;1.1.0}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__timeout;20}}, queued...
[1465403072.69][CONN][INF] found KV pair in stream: {{__host_test_name;default_auto}}, queued...
[1465403072.69][HTST][INF] sync KV found, uuid=a0c12e11-442c-4a60-aecf-448b5877cee3, timestamp=1465403072.693000
[1465403072.69][HTST][INF] DUT greentea-client version: 1.1.0
[1465403072.69][HTST][INF] setting timeout to: 20 sec
[1465403072.69][HTST][INF] host test class: '<class 'mbed_host_tests.host_tests.default_auto.DefaultAuto'>'
[1465403072.69][HTST][INF] host test setup() call...
[1465403072.69][HTST][INF] CALLBACKs updated
[1465403072.69][HTST][INF] host test detected: default_auto
[1465403075.73][CONN][RXD] UDP client IP Address is 10.254.2.206
[1465403075.73][CONN][RXD] UDP: NIST server pool.ntp.org address: 143.210.16.201 on port 123
[1465403075.73][CONN][RXD] UDP: Sent 48 Bytes to NTP server
[1465403075.73][CONN][RXD] UDP: Recved from NTP server 48 Bytes
[1465403076.74][CONN][RXD] UDP: Values returned by NTP server:
[1465403076.74][CONN][RXD]      [00] 0x1C0203EA
[1465403076.74][CONN][RXD]      [01] 0x140
[1465403076.74][CONN][RXD]      [02] 0xB34
[1465403076.74][CONN][RXD]      [03] 0x9E2BC042
[1465403076.74][CONN][RXD]      [04] 0xDB02BE9F
[1465403076.74][CONN][RXD]      [05] 0xBB720306
[1465403076.74][CONN][RXD]      [06] 0x0
[1465403076.74][CONN][RXD]      [07] 0x0
[1465403076.74][CONN][RXD]      [08] 0xDB02C543
[1465403076.74][CONN][RXD]      [09] 0x98E6A7C1
[1465403076.74][CONN][RXD]      [10] 0xDB02C543 NTP timestamp is Wed Jun  8 16:24:35 2016
[1465403076.74][CONN][RXD]      [11] 0x98E8E8EF
[1465403076.74][CONN][RXD] {{end;success}}
```
2016-06-08 17:25:45 +01:00
Simon D Hughes 7744b715b7 Integrating configuration-store into mbed-os 2016-06-08 15:45:12 +01:00
Przemek Wirkus 40a090bc2b Add simple TCP client with simple TCP echo server host test 2016-06-07 16:26:16 +01:00
Przemek Wirkus 88ee8caadd Add TCP Client Download 2016-06-07 14:03:14 +01:00
Christopher Haster 47e41ac321 Added attribute tests
based off tests from armmbed/compiler-polyfil
2016-06-06 20:12:26 -05:00
Christopher Haster 8a90b557c9 Added Callback and FunctionPointer tests 2016-06-06 20:12:26 -05:00
Christopher Haster 1b686c6854 Added rtos::Thread tests 2016-06-06 20:12:26 -05:00
Sam Grove da29f60018 Merge pull request #199 from PrzemekWirkus/gt_client_mbed_basic
[test porting] Add few non-peripheral tests from mbedmicro/mbed/libraries/tests/mbed
2016-06-03 10:40:54 -05:00
Sam Grove e6eb16ff0a Merge pull request #185 from PrzemekWirkus/gt_client_rtos_mbed
[test porting] mbedmicro/mbed/RTOS-mbed test cases port to mbed-os
2016-06-03 10:38:18 -05:00
Przemek Wirkus b54960866b Add few non-peripheral tests from mbedmicro/mbed/libraries/tests/mbed
Tested on K64F:
```
$ mbedgt -VS -n TESTS-mbedmicro-mbed*
```
```
mbedgt: test suite report:
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
| target       | platform_name | test suite                            | result | elapsed_time (sec) | copy_method |
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-call_before_main | OK     | 10.53              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-cpp              | OK     | 10.64              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-div              | OK     | 10.64              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-heap_and_stack   | OK     | 30.32              | shell       |
+--------------+---------------+---------------------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 4 OK
mbedgt: test case report:
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
| target       | platform_name | test suite                            | test case                             | passed | failed | result | elapsed_time (sec) |
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-call_before_main | tests-mbedmicro-mbed-call_before_main | 1      | 0      | OK     | 10.53              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-cpp              | tests-mbedmicro-mbed-cpp              | 1      | 0      | OK     | 10.64              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-div              | tests-mbedmicro-mbed-div              | 1      | 0      | OK     | 10.64              |
| K64F-GCC_ARM | K64F          | tests-mbedmicro-mbed-heap_and_stack   | tests-mbedmicro-mbed-heap_and_stack   | 1      | 0      | OK     | 30.32              |
+--------------+---------------+---------------------------------------+---------------------------------------+--------+--------+--------+--------------------+
mbedgt: test case results: 4 OK
mbedgt: completed in 62.25 sec
```
2016-06-02 17:11:30 +01:00
Przemek Wirkus 40dbbc72da mbedmicro/mbed RTOS-mbed tests port to greentea-client 2016-06-01 16:44:02 +01:00
Przemek Wirkus a4dcd16b17 mbed-drivers test cases port to mbed-os 2016-06-01 15:33:17 +01:00
Brian Daniels 7dc3159b69 Adding threaded blinky integration test 2016-04-12 17:26:11 -05:00
Brian Daniels 9e46a1c3c7 Adding basic test 2016-04-07 10:45:26 +01:00