mirror of https://github.com/ARMmbed/mbed-os.git
Input file format description added
parent
fb3bf48a2a
commit
c67fecd174
|
@ -16,26 +16,55 @@ limitations under the License.
|
||||||
|
|
||||||
Author: Przemyslaw Wirkus <Przemyslaw.wirkus@arm.com>
|
Author: Przemyslaw Wirkus <Przemyslaw.wirkus@arm.com>
|
||||||
|
|
||||||
Usage:
|
-------------------------------------------------------------------------------
|
||||||
1. Update your private_settings.py with all MUTs you can possibly connect.
|
|
||||||
Make sure mcu / port / serial names are concretely inputed.
|
|
||||||
2. Update test_spec dictionary in __main__ section.
|
|
||||||
|
|
||||||
Example 1:
|
Usage: singletest.py [options]
|
||||||
In below example only LPC11U24 will be tested
|
|
||||||
and test will be prepared using only uARM toolchain. Note that other
|
|
||||||
targets are just commented.
|
|
||||||
Uncomment or add your own targets at will.
|
|
||||||
|
|
||||||
test_spec = {
|
This script allows you to run mbed defined test cases for particular MCU(s)
|
||||||
"targets": {
|
and corresponding toolchain(s).
|
||||||
# "KL25Z": ["ARM", "GCC_ARM"],
|
|
||||||
# "LPC1768": ["ARM", "GCC_ARM", "GCC_CR", "GCC_CS", "IAR"],
|
Options:
|
||||||
"LPC11U24": ["uARM"]
|
-h, --help show this help message and exit
|
||||||
# "NRF51822": ["ARM"]
|
-i FILE, --tests=FILE
|
||||||
# "NUCLEO_F103RB": ["ARM"]
|
Points to file with test specification
|
||||||
}
|
-M FILE, --MUTS=FILE Points to file with MUTs specification (overwrites
|
||||||
|
settings.py and private_settings.py)
|
||||||
|
-g, --goanna-for-tests
|
||||||
|
Run Goanna static analyse tool for tests
|
||||||
|
-G, --goanna-for-sdk Run Goanna static analyse tool for mbed SDK
|
||||||
|
-s, --suppress-summary
|
||||||
|
Suppresses display of wellformatted table with test
|
||||||
|
results
|
||||||
|
-v, --verbose Verbose mode (pronts some extra information)
|
||||||
|
|
||||||
|
Example: singletest.py -i test_spec.json -M muts_all.json
|
||||||
|
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
File format example: test_spec.json
|
||||||
|
|
||||||
|
{
|
||||||
|
"targets": {
|
||||||
|
"KL46Z": ["ARM", "GCC_ARM"],
|
||||||
|
"LPC1768": ["ARM", "GCC_ARM", "GCC_CR", "GCC_CS", "IAR"],
|
||||||
|
"LPC11U24": ["uARM"],
|
||||||
|
"NRF51822": ["ARM"]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
File format example: muts_all.json
|
||||||
|
|
||||||
|
{
|
||||||
|
"1" : {"mcu": "LPC1768",
|
||||||
|
"port":"COM4", "disk":"J:\\",
|
||||||
|
"peripherals": ["TMP102", "digital_loop", "port_loop", "analog_loop", "SD"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"2" : {"mcu": "KL25Z",
|
||||||
|
"port":"COM7", "disk":"G:\\",
|
||||||
|
"peripherals": ["digital_loop", "port_loop", "analog_loop"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue