Rtos API example

Embed: (wiki syntax)

« Back to documentation index

config_test Namespace Reference

config_test Namespace Reference

Functions

def compare_config
def data_path
def is_test
def test_config
def test_init_app_config
def test_init_no_app_config
def test_init_no_app_config_with_dir
def test_init_override_app_config

Detailed Description

mbed SDK
Copyright (c) 2011-2017 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Function Documentation

def config_test::compare_config (   cfg,
  expected 
)
Compare the output of config against a dictionary of known good results

:param cfg: the configuration to check
:param expected: what to expect in that config

Definition at line 30 of file config_test.py.

def config_test::data_path (   path )
The expected data file for a particular test

:param path: the path to the test

Definition at line 47 of file config_test.py.

def config_test::is_test (   path )
Does a directory represent a test?

:param path: the path to the test

Definition at line 54 of file config_test.py.

def config_test::test_config (   name )
Run a particular configuration test

:param name: test name (same as directory name)

Definition at line 65 of file config_test.py.

def config_test::test_init_app_config (   target )
Test that the initialisation correctly uses app_config

:param target: The target to use

Definition at line 96 of file config_test.py.

def config_test::test_init_no_app_config (   target )
Test that the initialisation works without app config

:param target: The target to use

Definition at line 116 of file config_test.py.

def config_test::test_init_no_app_config_with_dir (   target )
Test that the initialisation works without app config and with a
specified top level directory

:param target: The target to use

Definition at line 132 of file config_test.py.

def config_test::test_init_override_app_config (   target )
Test that the initialisation uses app_config instead of top_level_dir
when both are specified

:param target: The target to use

Definition at line 157 of file config_test.py.