ARMmbed / icetea

DEPRECATED mbed test framework
Apache License 2.0
6 stars 7 forks source link

Refactored with new name #2

Closed YifeiZuo01 closed 7 years ago

YifeiZuo01 commented 7 years ago

Status

READY

Description

This branch refactored the clitest with new name "mbed test".

Tested cmd: --list --listsuite --suite --tcdir --tc --suitedir --type --version --repeat --color

Todos

YifeiZuo01 commented 7 years ago
YifeiZuo01 commented 7 years ago

@jonikula could you try to test?

jonikula commented 7 years ago

Running command mbedtest --tc test_cmdline --tcdir examples --bin test/dut/dummyDut results in the following error: Traceback (most recent call last): File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 763, in run result = self.__initialize() File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 196, in __initialize env_cfg = self.__readEnvironmentConfigurations() File "/home/jodi/codebase/repos/nanomesh-applications/mbed-clitest/mbed_clitest/bench.py", line 249, in __readEnvironmentConfigurations if self.args.iface: AttributeError: 'Namespace' object has no attribute 'iface'

YifeiZuo01 commented 7 years ago

@jonikula Did you notice /mbed-clitest/mbed_clitest/bench.py , it was interesting to be using clitest. I am not sure if we have some module which installed similar to python library which already exits, and when you install mbedtest, it won't be overwritten.

jonikula commented 7 years ago

True, that's interesting. I wonder what happens there...

jonikula commented 7 years ago

Running directly from mbedtest.py seems to work ok.

YifeiZuo01 commented 7 years ago

yep, mbedtest.py works and you need --type. I need to check all the documentation.

jupe commented 7 years ago

ready to merge @YifeiZuo01 ? You mention about some problems, what was it?

YifeiZuo01 commented 7 years ago

yep, this is failed unittest in docker. The reason is access control failed. A file should have written access can be write.

Process runs okay in docker, HW isn't tested as that docker has problem to connect dut.

YifeiZuo01 commented 7 years ago

any update? @jonikula some files have Todos here and there, maybe they doesn't hurt.

jonikula commented 7 years ago

I tried out some basic tests again with process and hardware. Seems to work.