mbed os with nrf51 internal bandgap enabled to read battery level
Dependents: BLE_file_test BLE_Blink ExternalEncoder
tools/test/config_test/test05/test_data.py@0:f269e3021894, 2016-10-23 (annotated)
- Committer:
- elessair
- Date:
- Sun Oct 23 15:10:02 2016 +0000
- Revision:
- 0:f269e3021894
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | # This tests overriding configuration values based on target labels. |
elessair | 0:f269e3021894 | 2 | # Four targets are defined: |
elessair | 0:f269e3021894 | 3 | # - "base" is the base target, it doesn't define any extra labels |
elessair | 0:f269e3021894 | 4 | # - "b1" inherits from "base" and adds the "b1_label" label |
elessair | 0:f269e3021894 | 5 | # - "b2" inherits from "base" and adds the "b2_label" label |
elessair | 0:f269e3021894 | 6 | # - "both" inherits from both "b1" and "b2", so it inherits both labels |
elessair | 0:f269e3021894 | 7 | |
elessair | 0:f269e3021894 | 8 | expected_results = { |
elessair | 0:f269e3021894 | 9 | "b1": { |
elessair | 0:f269e3021894 | 10 | "desc": "override values based on labels (first label)", |
elessair | 0:f269e3021894 | 11 | "app.app1": "v_app1[b1_label]", |
elessair | 0:f269e3021894 | 12 | "app.app2": "v_app2" |
elessair | 0:f269e3021894 | 13 | }, |
elessair | 0:f269e3021894 | 14 | "b2": { |
elessair | 0:f269e3021894 | 15 | "desc": "override values based on labels (second label)", |
elessair | 0:f269e3021894 | 16 | "app.app1": "v_app1", |
elessair | 0:f269e3021894 | 17 | "app.app2": "v_app2[b2_label]" |
elessair | 0:f269e3021894 | 18 | }, |
elessair | 0:f269e3021894 | 19 | "both": { |
elessair | 0:f269e3021894 | 20 | "desc": "override values based on labels (both labels)", |
elessair | 0:f269e3021894 | 21 | "app.app1": "v_app1[b1_label]", |
elessair | 0:f269e3021894 | 22 | "app.app2": "v_app2[b2_label]" |
elessair | 0:f269e3021894 | 23 | }, |
elessair | 0:f269e3021894 | 24 | "base": { |
elessair | 0:f269e3021894 | 25 | "desc": "override values based on labels (no labels)", |
elessair | 0:f269e3021894 | 26 | "app.app1": "v_app1", |
elessair | 0:f269e3021894 | 27 | "app.app2": "v_app2" |
elessair | 0:f269e3021894 | 28 | } |
elessair | 0:f269e3021894 | 29 | } |