Dependents:   sensomed

Committer:
switches
Date:
Tue Nov 08 18:27:11 2016 +0000
Revision:
0:0e018d759a2a
Initial commit

Who changed what in which revision?

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