Commit Graph

16 Commits (3dff531e81133efcddce653023daefac77b9722c)

Author SHA1 Message Date
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 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 5bca0ab3d1 Cleaned pyFlakes issues with unused imports 2014-10-21 13:18:22 +01:00
Przemek Wirkus 3850ddc8c1 Host test refactoring: cleaned a bit functionality of host tests. Forced test() function in DefaultTest to be method returning test result 2014-10-21 13:12:32 +01:00
Przemek Wirkus 755565d854 Host test refactoring
Host test refactoring: replaced magic values of test results returned by host test

Prints with stdout.flush() replaced with notify function

Host test refactoring: created separate enum like class for test result strings
2014-10-17 15:14:53 +01:00
Przemek Wirkus 945604e16e RTC test readline timeout increased to 10 seconds. Reason: RTC test is fail on Nucleo boards which don’t have the LSE xtal. This is because there is a timeout in the code of several seconds to wait until the LSE clock has startup. 2014-10-15 17:19:36 +01:00
Przemek Wirkus ea59d77d85 Small improvements to RTC test to check time elapsed and if timestamp is not zero 2014-09-22 10:06:39 +01:00
Przemek Wirkus f92bd88f98 Removed small typo from host test 2014-09-16 14:40:25 +01:00
Przemek Wirkus 8c77115d55 Modified host tests to use serial.realine() function to avoid extra timeouts during tests (test will work faster and will be more reliable) 2014-09-15 17:44:22 +01:00
Przemek Wirkus 41c7771268 Fixed small typu and added print to RTC host test 2014-09-05 11:51:21 +01:00
Przemek Wirkus beed8358f9 Improvements to RTC's host_test test case 2014-09-04 15:30:08 +01:00
Przemek Wirkus 4e3b149f79 Modified STDIO and ECHO so they use rpeamble to initialize communication 2014-09-03 13:33:54 +01:00
Przemek Wirkus 005c3a7b87 Host test: wrapped timeout for MUTs serial port access to handle IO_SERIAL error while accessing serial port 2014-08-13 11:11:51 +01:00
Przemek Wirkus a1c9c941b5 Added serial port wrappers for read/write instead of raw serial port access to access MUT serial port. This will allow to catch more issues with communication with MUT during tests. This will also 'hide' tracebacks from test suite execution. 2014-07-10 14:54:05 +01:00
Przemek Wirkus 0fef3ba498 pyFlakes issues fixed. Simple refactoring 2014-07-10 10:57:51 +01:00
Przemek Wirkus 41c9b8e5e2 Added MBED_16 RTC host test automation (5 reads from RTC) 2014-03-20 15:52:37 +00:00