Commit Graph

137 Commits (33b8d291c171114916ce39a90c917e4654e30375)

Author SHA1 Message Date
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
Przemek Wirkus a8506caa1d Refactored few more tests to support autodetection: basic, call_before_main, dev_null, rtc, stdio 2015-01-27 12:51:53 +00:00
Przemek Wirkus 6903b54b9e Refactored generic tests with timer host test supervision
Reactored RTOS tests
2015-01-27 12:10:16 +00:00
Przemek Wirkus 2ab22b1dbe Host test plugins: removed shutil.copy() dependency and added re module import - note this plugin is still unstable so change is just cosmetic 2014-11-17 16:07:18 +00:00
Przemek Wirkus 7e11ffd173 Fixed traceback from host_test_plugin - formating issue with integer 2014-11-17 15:45:10 +00:00
Przemek Wirkus 54c06c8b84 Host test plugins: Ethernet tests (NET_*) refactored to new host test copy paradigm 2014-10-30 15:22:02 +00:00
Przemek Wirkus 7646c51d7e Host test plugins: minor updates 2014-10-30 14:26:52 +00:00
Przemek Wirkus 7cc6a2bf1c Host test plugins: Modified WAIT_US_AUTO host test to take under consideration 10 consecutive timer ticks within deviation 2014-10-29 17:45:08 +00:00
Przemek Wirkus 93a87748a3 Host test plugins: bug-fix: serial_timeout was used as function name and class member. Caused runtime script problem
Host test plugins: Increased test suite timeout on each test execution twice - for now, so tests do not timeout. TODO: exclude coopy and reset procedures from testcase timeout measurement
2014-10-29 17:21:55 +00:00
Przemek Wirkus 3d4e03d0da Host test plugins: added custom serial port configuration, baudrate and timeout. This can now be done before host test will call run() function 2014-10-29 17:00:10 +00:00
Przemek Wirkus 5ef767a880 Host test plugins: Added prints to serial_init() function 2014-10-29 14:34:20 +00:00
Przemek Wirkus c4397b75b7 Host test plugins: moved program cycle sleep time to host_test - this delay is used to give time device to flash copied file 2014-10-29 14:28:02 +00:00
Przemek Wirkus e984b51e49 Host test plugins: removed usused extra_baud parameter from serial port initialization 2014-10-29 14:02:16 +00:00
Przemek Wirkus 7d5d0d116c Host test plugins: Bug-fix: Wrong variable was checked against None while readling line from serial port 2014-10-29 10:55:02 +00:00
Przemek Wirkus b3b6d848b5 Host test plugins: refactored UDP LINK LAYER testcase to use test() method instead of run() 2014-10-28 14:50:47 +00:00
Przemek Wirkus b404b21098 Host test plugins: refactored TCP ECHO SERVER testcase to use test() method instead of run() 2014-10-28 14:44:26 +00:00
Przemek Wirkus 52f0b33e7a Host test plugins: refactored UDP ECHO SERVER testcase to use test() method instead of run() 2014-10-28 14:38:15 +00:00
Przemek Wirkus c0895fdbfc Host test plugins: removed unused self.mbed.reset() call in test constructor. No need for two resets because reset is performed in run() function 2014-10-28 14:01:05 +00:00
Przemek Wirkus 00904b5f24 Host test plugins: refactored TestResults class to HostTestResults name 2014-10-28 11:44:45 +00:00
Przemek Wirkus c0134d66fb Host test plugins: run() function will just print result from test() function directly, not check boolean state from test 2014-10-28 11:40:41 +00:00
Przemek Wirkus b9cee9709e Host test plugins: Default host test aligned and refactored so it can be invoked via run() function 2014-10-28 11:36:46 +00:00
Przemek Wirkus 4f76a567f6 Host test plugins: Added extra line for error printing in mbed copy plugin. For readability reasons 2014-10-28 11:29:56 +00:00
Przemek Wirkus 4d8dfed27f Host test copy functionality migration: copy functionality partially moved to host_test (tested with basic set of tests, not with e.g. NET tests.
Host test copy functionality: TODO: modify rest of host tests to use self.mbed.reset() and self.mbed.copy_image() according to curent test scipt API
2014-10-27 16:38:19 +00:00
Przemek Wirkus a25f5ceaaa Host test copy functionality migration: removed all extra port and disk functionality. It will be added when it is really needed 2014-10-27 15:50:33 +00:00
Przemek Wirkus ae4be96c86 Host test copy functionality migration: added required parameters for host_test.py command line: path to image, copy method 2014-10-27 15:46:15 +00:00
Przemek Wirkus 97c220d56e Host test plugins: rearranged singletest.py script parameters list so now for option -c and -r (copy method and reset method respectively) we will see plugin related options also - changed dynamicaly with plugin loads 2014-10-27 12:42:48 +00:00
Przemek Wirkus 48490022ed Host test plugins: Removed unused / not stable plugins static registration 2014-10-27 11:53:28 +00:00
Przemek Wirkus 9700aff0a6 Host test plugins: Bug-fix, notification about already loaded plugin was printed always in plugin registration 2014-10-27 11:48:30 +00:00
0xc0170 7abbd9c5a8 Merge branch 'host-test-plugin-improvements' of github.com:PrzemekWirkus/mbed into PrzemekWirkus-host-test-plugin-improvements
Conflicts:
	workspace_tools/host_tests/host_test.py
2014-10-27 08:08:52 +00:00
Przemek Wirkus 69cc2fb86a Host test plugins: removed unused pass statement 2014-10-23 17:24:51 +01:00
Przemek Wirkus 2f03b85bfc Host test plugins: Added generic error printing to host test plugin base class 2014-10-23 17:14:18 +01:00
Przemek Wirkus 17f42519f0 Host test plugins: Added MPS2 and Firfox copy methods (both not stable and require further development)
Host test plugins: Added 'stable' attribute to each plugin, by default all plugins are not stable

Moved all MPS2 related functions to MPS2 plugins in host test directory
2014-10-23 16:56:05 +01:00
Przemek Wirkus 6a1bdb588e Host test plugins: added copy pligins, and removed Selenium and eACommander dependency from Test API 2014-10-23 16:30:17 +01:00
Przemek Wirkus efb46ca7de Host test plugins: moved serial port flashing just before plugin reset call 2014-10-22 17:49:54 +01:00
Przemek Wirkus 7591cf5caf Host test plugins: added return values to setup() and execute() interface methods 2014-10-22 16:59:07 +01:00
Przemek Wirkus 3f00c59030 Host test plugins: Added license and fxed one parsing issue 2014-10-22 15:35:36 +01:00