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
tools/test/config_test/test05/test_data.py@0:f782d9c66c49, 2018-02-02 (annotated)
- 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?
User | Revision | Line number | New contents of line |
---|---|---|---|
dkato | 0:f782d9c66c49 | 1 | # This tests overriding configuration values based on target labels. |
dkato | 0:f782d9c66c49 | 2 | # Four targets are defined: |
dkato | 0:f782d9c66c49 | 3 | # - "base" is the base target, it doesn't define any extra labels |
dkato | 0:f782d9c66c49 | 4 | # - "b1" inherits from "base" and adds the "b1_label" label |
dkato | 0:f782d9c66c49 | 5 | # - "b2" inherits from "base" and adds the "b2_label" label |
dkato | 0:f782d9c66c49 | 6 | # - "both" inherits from both "b1" and "b2", so it inherits both labels |
dkato | 0:f782d9c66c49 | 7 | |
dkato | 0:f782d9c66c49 | 8 | expected_results = { |
dkato | 0:f782d9c66c49 | 9 | "b1": { |
dkato | 0:f782d9c66c49 | 10 | "desc": "override values based on labels (first label)", |
dkato | 0:f782d9c66c49 | 11 | "app.app1": "v_app1[b1_label]", |
dkato | 0:f782d9c66c49 | 12 | "app.app2": "v_app2" |
dkato | 0:f782d9c66c49 | 13 | }, |
dkato | 0:f782d9c66c49 | 14 | "b2": { |
dkato | 0:f782d9c66c49 | 15 | "desc": "override values based on labels (second label)", |
dkato | 0:f782d9c66c49 | 16 | "app.app1": "v_app1", |
dkato | 0:f782d9c66c49 | 17 | "app.app2": "v_app2[b2_label]" |
dkato | 0:f782d9c66c49 | 18 | }, |
dkato | 0:f782d9c66c49 | 19 | "both": { |
dkato | 0:f782d9c66c49 | 20 | "desc": "override values based on labels (both labels)", |
dkato | 0:f782d9c66c49 | 21 | "app.app1": "v_app1[b1_label]", |
dkato | 0:f782d9c66c49 | 22 | "app.app2": "v_app2[b2_label]" |
dkato | 0:f782d9c66c49 | 23 | }, |
dkato | 0:f782d9c66c49 | 24 | "base": { |
dkato | 0:f782d9c66c49 | 25 | "desc": "override values based on labels (no labels)", |
dkato | 0:f782d9c66c49 | 26 | "app.app1": "v_app1", |
dkato | 0:f782d9c66c49 | 27 | "app.app2": "v_app2" |
dkato | 0:f782d9c66c49 | 28 | } |
dkato | 0:f782d9c66c49 | 29 | } |