Clone of official tools
host_tests/__init__.py@47:21ae3e5a7128, 2021-02-04 (annotated)
- Committer:
- Anders Blomdell
- Date:
- Thu Feb 04 17:17:13 2021 +0100
- Revision:
- 47:21ae3e5a7128
- Parent:
- 43:2a7da56ebd24
Add a few normpath calls
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
screamer | 0:66f3b5499f7f | 1 | """ |
screamer | 0:66f3b5499f7f | 2 | mbed SDK |
screamer | 0:66f3b5499f7f | 3 | Copyright (c) 2011-2013 ARM Limited |
screamer | 0:66f3b5499f7f | 4 | |
screamer | 0:66f3b5499f7f | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
screamer | 0:66f3b5499f7f | 6 | you may not use this file except in compliance with the License. |
screamer | 0:66f3b5499f7f | 7 | You may obtain a copy of the License at |
screamer | 0:66f3b5499f7f | 8 | |
screamer | 0:66f3b5499f7f | 9 | http://www.apache.org/licenses/LICENSE-2.0 |
screamer | 0:66f3b5499f7f | 10 | |
screamer | 0:66f3b5499f7f | 11 | Unless required by applicable law or agreed to in writing, software |
screamer | 0:66f3b5499f7f | 12 | distributed under the License is distributed on an "AS IS" BASIS, |
screamer | 0:66f3b5499f7f | 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
screamer | 0:66f3b5499f7f | 14 | See the License for the specific language governing permissions and |
screamer | 0:66f3b5499f7f | 15 | limitations under the License. |
screamer | 0:66f3b5499f7f | 16 | """ |
screamer | 0:66f3b5499f7f | 17 | |
theotherjimmy |
43:2a7da56ebd24 | 18 | from .host_registry import HostRegistry |
screamer | 0:66f3b5499f7f | 19 | |
screamer | 0:66f3b5499f7f | 20 | # Host test supervisors |
theotherjimmy |
43:2a7da56ebd24 | 21 | from .echo import EchoTest |
theotherjimmy |
43:2a7da56ebd24 | 22 | from .rtc_auto import RTCTest |
theotherjimmy |
43:2a7da56ebd24 | 23 | from .stdio_auto import StdioTest |
theotherjimmy |
43:2a7da56ebd24 | 24 | from .hello_auto import HelloTest |
theotherjimmy |
43:2a7da56ebd24 | 25 | from .detect_auto import DetectPlatformTest |
theotherjimmy |
43:2a7da56ebd24 | 26 | from .default_auto import DefaultAuto |
theotherjimmy |
43:2a7da56ebd24 | 27 | from .dev_null_auto import DevNullTest |
theotherjimmy |
43:2a7da56ebd24 | 28 | from .wait_us_auto import WaitusTest |
theotherjimmy |
43:2a7da56ebd24 | 29 | from .tcpecho_server_auto import TCPEchoServerTest |
theotherjimmy |
43:2a7da56ebd24 | 30 | from .udpecho_server_auto import UDPEchoServerTest |
theotherjimmy |
43:2a7da56ebd24 | 31 | from .tcpecho_client_auto import TCPEchoClientTest |
theotherjimmy |
43:2a7da56ebd24 | 32 | from .udpecho_client_auto import UDPEchoClientTest |
theotherjimmy |
43:2a7da56ebd24 | 33 | from .wfi_auto import WFITest |
theotherjimmy |
43:2a7da56ebd24 | 34 | from .serial_nc_rx_auto import SerialNCRXTest |
theotherjimmy |
43:2a7da56ebd24 | 35 | from .serial_nc_tx_auto import SerialNCTXTest |
theotherjimmy |
43:2a7da56ebd24 | 36 | from .serial_complete_auto import SerialCompleteTest |
screamer | 0:66f3b5499f7f | 37 | |
screamer | 0:66f3b5499f7f | 38 | # Populate registry with supervising objects |
screamer | 0:66f3b5499f7f | 39 | HOSTREGISTRY = HostRegistry() |
screamer | 0:66f3b5499f7f | 40 | HOSTREGISTRY.register_host_test("echo", EchoTest()) |
screamer | 0:66f3b5499f7f | 41 | HOSTREGISTRY.register_host_test("default", DefaultAuto()) |
screamer | 0:66f3b5499f7f | 42 | HOSTREGISTRY.register_host_test("rtc_auto", RTCTest()) |
screamer | 0:66f3b5499f7f | 43 | HOSTREGISTRY.register_host_test("hello_auto", HelloTest()) |
screamer | 0:66f3b5499f7f | 44 | HOSTREGISTRY.register_host_test("stdio_auto", StdioTest()) |
screamer | 0:66f3b5499f7f | 45 | HOSTREGISTRY.register_host_test("detect_auto", DetectPlatformTest()) |
screamer | 0:66f3b5499f7f | 46 | HOSTREGISTRY.register_host_test("default_auto", DefaultAuto()) |
screamer | 0:66f3b5499f7f | 47 | HOSTREGISTRY.register_host_test("wait_us_auto", WaitusTest()) |
screamer | 0:66f3b5499f7f | 48 | HOSTREGISTRY.register_host_test("dev_null_auto", DevNullTest()) |
screamer | 0:66f3b5499f7f | 49 | HOSTREGISTRY.register_host_test("tcpecho_server_auto", TCPEchoServerTest()) |
screamer | 0:66f3b5499f7f | 50 | HOSTREGISTRY.register_host_test("udpecho_server_auto", UDPEchoServerTest()) |
screamer | 0:66f3b5499f7f | 51 | HOSTREGISTRY.register_host_test("tcpecho_client_auto", TCPEchoClientTest()) |
screamer | 0:66f3b5499f7f | 52 | HOSTREGISTRY.register_host_test("udpecho_client_auto", UDPEchoClientTest()) |
screamer | 0:66f3b5499f7f | 53 | HOSTREGISTRY.register_host_test("wfi_auto", WFITest()) |
screamer | 0:66f3b5499f7f | 54 | HOSTREGISTRY.register_host_test("serial_nc_rx_auto", SerialNCRXTest()) |
screamer | 0:66f3b5499f7f | 55 | HOSTREGISTRY.register_host_test("serial_nc_tx_auto", SerialNCTXTest()) |
screamer | 13:ab47a20b66f0 | 56 | HOSTREGISTRY.register_host_test("serial_complete_auto", SerialCompleteTest()) |
screamer | 0:66f3b5499f7f | 57 | |
screamer | 0:66f3b5499f7f | 58 | ############################################################################### |
screamer | 0:66f3b5499f7f | 59 | # Functional interface for test supervisor registry |
screamer | 0:66f3b5499f7f | 60 | ############################################################################### |
screamer | 0:66f3b5499f7f | 61 | |
screamer | 0:66f3b5499f7f | 62 | |
screamer | 0:66f3b5499f7f | 63 | def get_host_test(ht_name): |
screamer | 0:66f3b5499f7f | 64 | return HOSTREGISTRY.get_host_test(ht_name) |
screamer | 0:66f3b5499f7f | 65 | |
screamer | 0:66f3b5499f7f | 66 | def is_host_test(ht_name): |
screamer | 0:66f3b5499f7f | 67 | return HOSTREGISTRY.is_host_test(ht_name) |