mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Committer:
dkato
Date:
Fri Feb 02 05:42:23 2018 +0000
Revision:
0:f782d9c66c49
mbed-os for GR-LYCHEE

Who changed what in which revision?

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