Commit Graph

172 Commits (3dff531e81133efcddce653023daefac77b9722c)

Author SHA1 Message Date
Brian Daniels f4a1aca6a3 removed test serial flush 2015-09-25 11:43:15 -05:00
Brian Daniels e895edd912 Adding serial port check with mbedls if --auto is set 2015-09-25 10:50:38 -05:00
Brian Daniels 2fa3b5fda9 Adding checks so smart copy is only imported if mbedls is available 2015-09-25 10:49:30 -05:00
Brian Daniels 19978dd9a8 Using mbedls for smartcopy 2015-09-25 10:49:28 -05:00
Brian Daniels 1eacabd7c3 Added smart copy plugin 2015-09-25 10:48:08 -05:00
Martin Kojtal 5a6ce99f17 Merge pull request #1347 from bridadan/add-mbedls-checks
Adding checks with mbedls throughout testing process
2015-09-25 15:31:49 +02:00
Martin Kojtal b290644b9c Merge pull request #1338 from PeterConheeney/master
changes for adding IoT Subsystem for Cortex-M target
2015-09-25 12:37:58 +02:00
Brian Daniels 1d946c2160 Adding checks with mbedls throughout testing process 2015-09-23 11:21:11 -05:00
Brian Daniels bb7fb37ed4 Move program_cycle_s into host test copy plugins 2015-09-21 16:41:12 -05:00
Peter Conheeney 24ebe1790e changes for adding IoT Subsystem for Cortex-M target 2015-09-14 12:23:32 +01:00
Przemek Wirkus 2875d4bffa Added 'sync' command after shell copy execution for posix OS 2015-08-14 15:04:48 +01:00
Przemek Wirkus 074809da0f fixed typo capabilitity -> capability 2015-08-14 15:04:39 +01:00
Przemek Wirkus 598654fa4d Changed 'default' flashing method for cli option -c to 'shell' 2015-08-14 15:04:28 +01:00
sarahmarshy 5b8708524b Merge branch 'origin/master' into rpc_commits
Conflicts:
	workspace_tools/host_tests/mbedrpc.py
2015-06-26 13:59:06 -05:00
sarahmarshy e8d01874bf Added support for 3 pins 2015-06-18 16:59:38 -05:00
sarahmarshy 51579eaff7 Simplified new RPC object creation. More pythonic 2015-06-18 16:58:11 -05:00
sarahmarshy 8194725b8b Added support for RPC timer class 2015-06-18 16:51:25 -05:00
sarahmarshy cc12836b52 Added support for new RPC objects with multiple pins. Added baud function for serial RPC. 2015-06-18 15:05:33 -05:00
sarahmarshy 04aca2e39c Added support for dynamic creation of RPC objects 2015-06-18 10:38:58 -05:00
Martin Kojtal 0ce53a7cf8 Merge pull request #1175 from bridadan/serial-nc-test
Added tests that ensure correct handling of setting Serial pins to NC
2015-06-17 09:04:39 +01:00
Martin Kojtal 1dba261867 Merge pull request #1184 from sarahmarshy/mbedrpc_python_update
Changed the way RPC commands are sent over HTTP, spaces must be URL e…
2015-06-16 08:27:30 +02:00
sarahmarshy 8f33cfd27c Changed the way RPC commands are sent over HTTP, spaces must be URL encoded. 2015-06-15 11:19:48 -05:00
Brian Daniels 0ca1389d95 Handling empty strings better 2015-06-12 12:34:38 -05:00
Brian Daniels f2ea9c51c7 Added tests that ensure correct handling of setting Serial pins to NC 2015-06-10 11:04:05 -05:00
Martin Kojtal e775613c6b Merge pull request #1127 from bridadan/wfiTest
Added tests for the WFI instruction
2015-06-03 08:44:34 +01:00
Brian Daniels a417bc4114 Added host test info 2015-06-01 12:16:37 -05:00
Brian Daniels 17335f4935 Fixed syntax error 2015-06-01 12:09:35 -05:00
Brian Daniels 12a708f8b5 Fixed return status of test 2015-05-26 10:24:44 -05:00
sarahmarshy 5df10cce37 Consolidated code with some generic inheritance. Changed the way rpc interfaces are called. Eliminated platform specific pin names. 2015-05-22 16:26:08 -05:00
Brian Daniels 1cb4afc60b Returns IO_FAIL when inital output is incorrect instead of IO_SERIAL 2015-05-22 10:16:05 -05:00
Brian Daniels 0551f6e8b9 Added tests for the WFI instruction 2015-05-21 15:17:17 -05:00
Przemek Wirkus 65bae00f61 Bugfix: copy plugin assumed always that all commands like cp, copy, xcopy are
shell command. In fact copy and xcopy are shell commands under Windows and 'cp'
is always a separate app. not shell command e.g. in Windows.
2015-05-06 16:31:59 +01:00
julbouln 8dab8c4751 Added USBMIDI tests + bugfix MIDI OUT 2015-04-14 20:57:56 +02:00
Martin Kojtal 9f429e66eb Merge pull request #986 from PrzemekWirkus/plugin_pooling
Added timeouts (delays) on serial port and mounting point
2015-03-24 08:45:47 +00:00
Przemek Wirkus a8de31c4be Added timeouts (delays) on serial port and mounting point accesses in host_test and copy plugins to prevent serial/disk io errors when device remounts USB iface of interface chip 2015-03-20 14:11:20 +00:00
Przemek Wirkus bf33d5e19e 1. Host test shell plugin bugfix.
Test suite should report IOERR_COPY when shell copy command fails (fixed).
2. Host test shell plugin update
	How you can specify with option -c value 'shell' and copy plugin will detect
	for you your OS and choose between 'cp' (for 'posix') and 'copy' (for
	Windows).
2015-03-12 15:41:46 +00:00
Martin Kojtal 8895e91be3 Merge pull request #929 from PrzemekWirkus/mbed_assert_3
Test suite - mbed assert detection
2015-02-26 08:53:35 +00:00
Przemek Wirkus dfa9599ded Added mbed assertion detection
Test suite will detect mbed assertion print and end test execution with MBED_ASSERT error
2015-02-24 13:46:45 +00:00
Mihail Stoyanov 0d4c158505 A minor routine to take care of parasite symbols that may be left over in the serial read buffer. This happens when a program output wasn't terminated with new line. This also does not affect the test results. 2015-02-20 02:30:01 +02:00
Przemek Wirkus 78cc959f50 In response to: IOTSFW-325
1. Removed globaly initialized data inside class test() function
2. Removed global variables initialization dependency. Any cause some Python
   implementations and configurations to fail in runtime
3. Added info about Echo port #7 rationale.
4. Testsed with K64F and network tests:

Test summary:
+--------+--------+---------+----------------------------+--------------------+
| Result | Target | Test ID | Test Description           | Elapsed Time (sec) |
+--------+--------+---------+----------------------------+--------------------+
| OK     | K64F   | NET_1   | TCP client hello world     |        3.26        |
| OK     | K64F   | NET_13  | TCP client echo loop       |        2.05        |
| OK     | K64F   | NET_2   | NIST Internet Time Service |        3.43        |
| OK     | K64F   | NET_3   | TCP echo server            |        1.54        |
| OK     | K64F   | NET_4   | TCP echo client            |        1.54        |
| OK     | K64F   | NET_5   | UDP echo server            |        1.46        |
| OK     | K64F   | NET_6   | UDP echo client            |        1.6         |
| OK     | K64F   | NET_7   | HTTP client hello world    |        3.4         |
| OK     | K64F   | NET_8   | NTP client                 |        2.39        |
+--------+--------+---------+----------------------------+--------------------+
Result: 9 OK

Completed in 122.18 sec
2015-02-19 11:36:44 +00:00
Przemek Wirkus 7596acd726 Fixed RTC host test (0 sec scenario):
Boolean value used to calclate single RTC test PASS / FAIL was not used to
calculate overall result.

==== ISSUE ====
The test suite treats the RTC test as successful, but test itself reports
failures. Which one is correct – does it fail or does it pass? See below:

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 4.02 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.03 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{success}}
{{end}}
Test::Output::Finish
TargetTest::ARM_MPS2_M4::ARM::MBED_16::RTC [OK] in 30.37 of 40 sec

==== FIX ====

HOST: Run test...
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 0.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL
MBED: [0] [1970-01-01 00:00:00 AM]
HOST: [0] [1970-01-01 00:00:00 AM] received time +0 sec after 1.04 sec... FAIL

{{failure}}
{{end}}
2015-02-18 10:19:58 +00:00
Przemek Wirkus f40ec7a294 Added autodetection fior tests including MMA8451Q accelerometer 2015-01-30 13:51:41 +00:00
Przemek Wirkus 34b55c81eb Simple indent inside Python module init 2015-01-30 10:35:58 +00:00
Przemek Wirkus 035714e409 Added NET_4, NET_6 and NET_13 tests to autodetection pool 2015-01-30 09:57:36 +00:00
Przemek Wirkus f81509c933 Refactored UDP echo server 2015-01-28 16:43:40 +00:00
Przemek Wirkus 111b55784e Refactored TCP echo server 2015-01-28 16:29:36 +00:00
Przemek Wirkus f1f2505adc Refactored host_test.py script to filter for TargetIds in auto-detection flow 2015-01-28 10:35:08 +00:00
Przemek Wirkus c6134eb6a2 Refactored C++ test and added '+' sign as recognized character in auto-test description 2015-01-28 09:08:58 +00:00
Przemek Wirkus dcce4d7cde Refactored detection test to use new autodetection of host test 2015-01-27 13:24:11 +00:00
Przemek Wirkus d610f0b08a Refactored echo at 115200 test for new model of test autodetection 2015-01-27 13:17:36 +00:00