]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/workspace_tools/host_tests/__init__.py
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / workspace_tools / host_tests / __init__.py
1 """
2 mbed SDK
3 Copyright (c) 2011-2013 ARM Limited
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16 """
17
18 from host_registry import HostRegistry
19
20 # Host test supervisors
21 from echo import EchoTest
22 from rtc_auto import RTCTest
23 from stdio_auto import StdioTest
24 from hello_auto import HelloTest
25 from detect_auto import DetectPlatformTest
26 from default_auto import DefaultAuto
27 from dev_null_auto import DevNullTest
28 from wait_us_auto import WaitusTest
29 from tcpecho_server_auto import TCPEchoServerTest
30 from udpecho_server_auto import UDPEchoServerTest
31 from tcpecho_client_auto import TCPEchoClientTest
32 from udpecho_client_auto import UDPEchoClientTest
33
34 # Populate registry with supervising objects
35 HOSTREGISTRY = HostRegistry()
36 HOSTREGISTRY.register_host_test("echo", EchoTest())
37 HOSTREGISTRY.register_host_test("default", DefaultAuto())
38 HOSTREGISTRY.register_host_test("rtc_auto", RTCTest())
39 HOSTREGISTRY.register_host_test("hello_auto", HelloTest())
40 HOSTREGISTRY.register_host_test("stdio_auto", StdioTest())
41 HOSTREGISTRY.register_host_test("detect_auto", DetectPlatformTest())
42 HOSTREGISTRY.register_host_test("default_auto", DefaultAuto())
43 HOSTREGISTRY.register_host_test("wait_us_auto", WaitusTest())
44 HOSTREGISTRY.register_host_test("dev_null_auto", DevNullTest())
45 HOSTREGISTRY.register_host_test("tcpecho_server_auto", TCPEchoServerTest())
46 HOSTREGISTRY.register_host_test("udpecho_server_auto", UDPEchoServerTest())
47 HOSTREGISTRY.register_host_test("tcpecho_client_auto", TCPEchoClientTest())
48 HOSTREGISTRY.register_host_test("udpecho_client_auto", UDPEchoClientTest())
49
50 ###############################################################################
51 # Functional interface for test supervisor registry
52 ###############################################################################
53
54
55 def get_host_test(ht_name):
56 return HOSTREGISTRY.get_host_test(ht_name)
57
58 def is_host_test(ht_name):
59 return HOSTREGISTRY.is_host_test(ht_name)
Imprint / Impressum