mbed-os

Fork of mbed-os by erkin yucel

Committer:
xuaner
Date:
Thu Jul 20 14:26:57 2017 +0000
Revision:
1:3deb71413561
Parent:
0:f269e3021894
mbed_os

Who changed what in which revision?

UserRevisionLine numberNew 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 }