takashi kadono / Mbed OS Nucleo_446

Dependencies:   ssd1331

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers test_cmdline.py Source File

test_cmdline.py

00001 """
00002 Copyright 2018 ARM Limited
00003 Licensed under the Apache License, Version 2.0 (the "License");
00004 you may not use this file except in compliance with the License.
00005 You may obtain a copy of the License at
00006 
00007     http://www.apache.org/licenses/LICENSE-2.0
00008 
00009 Unless required by applicable law or agreed to in writing, software
00010 distributed under the License is distributed on an "AS IS" BASIS,
00011 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00012 See the License for the specific language governing permissions and
00013 limitations under the License.
00014 """
00015 
00016 from icetea_lib.bench import Bench
00017 
00018 
00019 class Testcase(Bench):
00020     def __init__(self):
00021         Bench.__init__(self,
00022                        name="test_cmdline",
00023                        title="Smoke test for command line interface",
00024                        status="released",
00025                        purpose="Verify Command Line Interface",
00026                        component=["cmdline"],
00027                        type="smoke",
00028                        requirements={
00029                            "duts": {
00030                                '*': {
00031                                    "count": 1,
00032                                    "type": "hardware",
00033                                    "application": {
00034                                        "name": "TEST_APPS-device-exampleapp"
00035                                    }
00036                                },
00037                                "1": {"nick": "dut1"},
00038                            }
00039                        }
00040                        )
00041 
00042     def setup(self):
00043         pass
00044 
00045     def case(self):
00046         self.command("dut1", "echo hello world")
00047         self.command("dut1", "help")
00048 
00049     def teardown(self):
00050         pass