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/test06/test_data.py

Committer:
dkato
Date:
2018-02-02
Revision:
0:f782d9c66c49

File content as of revision 0:f782d9c66c49:

# This build on top of test5 by adding a few libraries with their own configurations
# and overrides. The same targets are used for building and testing (base, b1, b2, both)

expected_results = {
   "base": {
        "desc": "override values based on labels with libs (no labels)",
        "app.app1": "v_app1",
        "app.app2": "v_app2",
        "lib1.p1": "v_p1_lib1",
        "lib1.p2": "v_p2_lib1",
        "lib1.p3": "v_p3_lib1",
        "lib2.p1": "v_p1_lib2",
        "lib2.p2": "v_p2_lib2"
    },
    "b1": {
        "desc": "override values based on labels with libs (first label)",
        "app.app1": "v_app1[b1_label]",
        "app.app2": "v_app2",
        "lib1.p1": "v_p1_lib1[b1_label]",
        "lib1.p2": "v_p2_lib1",
        "lib1.p3": "v_p3_lib1",
        "lib2.p1": "v_p1_lib2[b1_label]",
        "lib2.p2": "v_p2_lib2[b1_label]"
    },
    "b2": {
        "desc": "override values based on labels with libs (second label)",
        "app.app1": "v_app1",
        "app.app2": "v_app2[b2_label]",
        "lib1.p1": "v_p1_lib1",
        "lib1.p2": "v_p2_lib1[b2_label]",
        "lib1.p3": "v_p3_lib1",
        "lib2.p1": "v_p1_lib2[b2_label]",
        "lib2.p2": "v_p2_lib2[b2_label]"
    },
    # The values for lib2.p1 and lib2.p2 illustrate how overriding on multiple
    # labels work. In lib2, both lib2.p1 and lib2.p2 are overriden for both
    # labels (b1_label and b2_label). However, since "b2_label" is specified
    # after "b1_label", it sets the final values of the overrides.
    "both": {
        "desc": "override values based on labels with libs (both labels)",
        "app.app1": "v_app1[b1_label]",
        "app.app2": "v_app2[b2_label]",
        "lib1.p1": "v_p1_lib1[b1_label]",
        "lib1.p2": "v_p2_lib1[b2_label]",
        "lib1.p3": "v_p3_lib1",
        "lib2.p1": "v_p1_lib2[b2_label]",
        "lib2.p2": "v_p2_lib2[b2_label]"
    },
}