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/test07/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 build on top of test6 by adding overrides for libs in the application |
dkato | 0:f782d9c66c49 | 2 | |
dkato | 0:f782d9c66c49 | 3 | expected_results = { |
dkato | 0:f782d9c66c49 | 4 | "base": { |
dkato | 0:f782d9c66c49 | 5 | "desc": "override values based on labels with libs (no labels)", |
dkato | 0:f782d9c66c49 | 6 | "app.app1": "v_app1", |
dkato | 0:f782d9c66c49 | 7 | "app.app2": "v_app2", |
dkato | 0:f782d9c66c49 | 8 | "lib1.p1": "v_p1_lib1_app", |
dkato | 0:f782d9c66c49 | 9 | "lib1.p2": "v_p2_lib1", |
dkato | 0:f782d9c66c49 | 10 | "lib1.p3": "v_p3_lib1_app", |
dkato | 0:f782d9c66c49 | 11 | "lib2.p1": "v_p1_lib2_app", |
dkato | 0:f782d9c66c49 | 12 | "lib2.p2": "v_p2_lib2" |
dkato | 0:f782d9c66c49 | 13 | }, |
dkato | 0:f782d9c66c49 | 14 | "b1": { |
dkato | 0:f782d9c66c49 | 15 | "desc": "override values based on labels with libs (first label)", |
dkato | 0:f782d9c66c49 | 16 | "app.app1": "v_app1[b1_label]", |
dkato | 0:f782d9c66c49 | 17 | "app.app2": "v_app2", |
dkato | 0:f782d9c66c49 | 18 | "lib1.p1": "v_p1_lib1_app", |
dkato | 0:f782d9c66c49 | 19 | "lib1.p2": "v_p2_lib1", |
dkato | 0:f782d9c66c49 | 20 | "lib1.p3": "v_p3_lib1_app", |
dkato | 0:f782d9c66c49 | 21 | "lib2.p1": "v_p1_lib2_app", |
dkato | 0:f782d9c66c49 | 22 | "lib2.p2": "v_p2_lib2[b1_label]" |
dkato | 0:f782d9c66c49 | 23 | }, |
dkato | 0:f782d9c66c49 | 24 | "b2": { |
dkato | 0:f782d9c66c49 | 25 | "desc": "override values based on labels with libs (second label)", |
dkato | 0:f782d9c66c49 | 26 | "app.app1": "v_app1", |
dkato | 0:f782d9c66c49 | 27 | "app.app2": "v_app2[b2_label]", |
dkato | 0:f782d9c66c49 | 28 | "lib1.p1": "v_p1_lib1_app", |
dkato | 0:f782d9c66c49 | 29 | "lib1.p2": "v_p2_lib1[b2_label]", |
dkato | 0:f782d9c66c49 | 30 | "lib1.p3": "v_p3_lib1_app", |
dkato | 0:f782d9c66c49 | 31 | "lib2.p1": "v_p1_lib2_app", |
dkato | 0:f782d9c66c49 | 32 | "lib2.p2": "v_p2_lib2[b2_label]" |
dkato | 0:f782d9c66c49 | 33 | }, |
dkato | 0:f782d9c66c49 | 34 | # The values for lib2.p1 and lib2.p2 illustrate how overriding on multiple |
dkato | 0:f782d9c66c49 | 35 | # labels work. In lib2, both lib2.p1 and lib2.p2 are overriden for both |
dkato | 0:f782d9c66c49 | 36 | # labels (b1_label and b2_label). However, since "b2_label" is specified |
dkato | 0:f782d9c66c49 | 37 | # after "b1_label", it sets the final values of the overrides. |
dkato | 0:f782d9c66c49 | 38 | "both": { |
dkato | 0:f782d9c66c49 | 39 | "desc": "override values based on labels with libs (both labels)", |
dkato | 0:f782d9c66c49 | 40 | "app.app1": "v_app1[b1_label]", |
dkato | 0:f782d9c66c49 | 41 | "app.app2": "v_app2[b2_label]", |
dkato | 0:f782d9c66c49 | 42 | "lib1.p1": "v_p1_lib1_app", |
dkato | 0:f782d9c66c49 | 43 | "lib1.p2": "v_p2_lib1[b2_label]", |
dkato | 0:f782d9c66c49 | 44 | "lib1.p3": "v_p3_lib1_app", |
dkato | 0:f782d9c66c49 | 45 | "lib2.p1": "v_p1_lib2_app", |
dkato | 0:f782d9c66c49 | 46 | "lib2.p2": "v_p2_lib2[b2_label]" |
dkato | 0:f782d9c66c49 | 47 | } |
dkato | 0:f782d9c66c49 | 48 | } |