]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/workspace_tools/host_tests/__init__.py
3 Copyright (c) 2011-2013 ARM Limited
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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
18 from host_registry
import HostRegistry
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
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())
50 ###############################################################################
51 # Functional interface for test supervisor registry
52 ###############################################################################
55 def get_host_test(ht_name
):
56 return HOSTREGISTRY
.get_host_test(ht_name
)
58 def is_host_test(ht_name
):
59 return HOSTREGISTRY
.is_host_test(ht_name
)