Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
def | test_basic_regions |
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_basic_regions | ( | target, | |
overrides | |||
) |
Test that the region lists are sane with various configurations
Definition at line 184 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 117 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 133 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 158 of file config_test.py.
Generated on Tue Jul 12 2022 18:19:08 by
