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

Revision:
0:f782d9c66c49
diff -r 000000000000 -r f782d9c66c49 tools/test/config_test/test05/test_data.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/test/config_test/test05/test_data.py	Fri Feb 02 05:42:23 2018 +0000
@@ -0,0 +1,29 @@
+# This tests overriding configuration values based on target labels.
+# Four targets are defined:
+#    - "base" is the base target, it doesn't define any extra labels
+#    - "b1" inherits from "base" and adds the "b1_label" label
+#    - "b2" inherits from "base" and adds the "b2_label" label
+#    - "both" inherits from both "b1" and "b2", so it inherits both labels
+
+expected_results = {
+    "b1": {
+        "desc": "override values based on labels (first label)",
+        "app.app1": "v_app1[b1_label]",
+        "app.app2": "v_app2"
+    },
+    "b2": {
+        "desc": "override values based on labels (second label)",
+        "app.app1": "v_app1",
+        "app.app2": "v_app2[b2_label]"
+    },
+    "both": {
+        "desc": "override values based on labels (both labels)",
+        "app.app1": "v_app1[b1_label]",
+        "app.app2": "v_app2[b2_label]"
+    },
+    "base": {
+        "desc": "override values based on labels (no labels)",
+        "app.app1": "v_app1",
+        "app.app2": "v_app2"
+    }
+}