Clone of official tools
test/config_test/test05/test_data.py@9:2d27d77ada5c, 2016-06-14 (annotated)
- Committer:
- Screamer@Y5070-M.virtuoso
- Date:
- Tue Jun 14 11:07:30 2016 +0100
- Revision:
- 9:2d27d77ada5c
Updated tools based on latest live tools code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 1 | # This tests overriding configuration values based on target labels. |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 2 | # Four targets are defined: |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 3 | # - "base" is the base target, it doesn't define any extra labels |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 4 | # - "b1" inherits from "base" and adds the "b1_label" label |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 5 | # - "b2" inherits from "base" and adds the "b2_label" label |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 6 | # - "both" inherits from both "b1" and "b2", so it inherits both labels |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 7 | |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 8 | expected_results = { |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 9 | "b1": { |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 10 | "desc": "override values based on labels (first label)", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 11 | "app.app1": "v_app1[b1_label]", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 12 | "app.app2": "v_app2" |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 13 | }, |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 14 | "b2": { |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 15 | "desc": "override values based on labels (second label)", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 16 | "app.app1": "v_app1", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 17 | "app.app2": "v_app2[b2_label]" |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 18 | }, |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 19 | "both": { |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 20 | "desc": "override values based on labels (both labels)", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 21 | "app.app1": "v_app1[b1_label]", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 22 | "app.app2": "v_app2[b2_label]" |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 23 | }, |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 24 | "base": { |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 25 | "desc": "override values based on labels (no labels)", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 26 | "app.app1": "v_app1", |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 27 | "app.app2": "v_app2" |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 28 | } |
Screamer@Y5070-M.virtuoso | 9:2d27d77ada5c | 29 | } |