From 9f6a096205c98610a9fd0b7c0ebc4dff5de453f7 Mon Sep 17 00:00:00 2001 From: Jimmy Brisson Date: Tue, 15 Jan 2019 17:15:36 -0600 Subject: [PATCH] Add test case for requires from a library --- tools/test/config/requires_from_lib/lib1/mbed_lib.json | 7 +++++++ tools/test/config/requires_from_lib/lib2/mbed_lib.json | 9 +++++++++ tools/test/config/requires_from_lib/lib3/mbed_lib.json | 6 ++++++ tools/test/config/requires_from_lib/mbed_app.json | 10 ++++++++++ tools/test/config/requires_from_lib/targets.json | 9 +++++++++ tools/test/config/requires_from_lib/test_data.json | 7 +++++++ 6 files changed, 48 insertions(+) create mode 100644 tools/test/config/requires_from_lib/lib1/mbed_lib.json create mode 100644 tools/test/config/requires_from_lib/lib2/mbed_lib.json create mode 100644 tools/test/config/requires_from_lib/lib3/mbed_lib.json create mode 100644 tools/test/config/requires_from_lib/mbed_app.json create mode 100644 tools/test/config/requires_from_lib/targets.json create mode 100644 tools/test/config/requires_from_lib/test_data.json diff --git a/tools/test/config/requires_from_lib/lib1/mbed_lib.json b/tools/test/config/requires_from_lib/lib1/mbed_lib.json new file mode 100644 index 0000000000..5c446db1cc --- /dev/null +++ b/tools/test/config/requires_from_lib/lib1/mbed_lib.json @@ -0,0 +1,7 @@ +{ + "name": "lib1", + "requires": ["lib2"], + "config": { + "test": "BAD" + } +} diff --git a/tools/test/config/requires_from_lib/lib2/mbed_lib.json b/tools/test/config/requires_from_lib/lib2/mbed_lib.json new file mode 100644 index 0000000000..17a5a00cc1 --- /dev/null +++ b/tools/test/config/requires_from_lib/lib2/mbed_lib.json @@ -0,0 +1,9 @@ +{ + "name": "lib2", + "requires": ["lib3"], + "config": { + "test": { + "value": "BAD" + } + } +} diff --git a/tools/test/config/requires_from_lib/lib3/mbed_lib.json b/tools/test/config/requires_from_lib/lib3/mbed_lib.json new file mode 100644 index 0000000000..415c5b3bd4 --- /dev/null +++ b/tools/test/config/requires_from_lib/lib3/mbed_lib.json @@ -0,0 +1,6 @@ +{ + "name": "lib3", + "config": { + "test": "BAD" + } +} diff --git a/tools/test/config/requires_from_lib/mbed_app.json b/tools/test/config/requires_from_lib/mbed_app.json new file mode 100644 index 0000000000..91a039d65a --- /dev/null +++ b/tools/test/config/requires_from_lib/mbed_app.json @@ -0,0 +1,10 @@ +{ + "requires" : ["lib1"], + "target_overrides": { + "test_target": { + "lib3.test": "GOOD", + "lib2.test": "GOOD", + "lib1.test": "GOOD" + } + } +} diff --git a/tools/test/config/requires_from_lib/targets.json b/tools/test/config/requires_from_lib/targets.json new file mode 100644 index 0000000000..a4909c3530 --- /dev/null +++ b/tools/test/config/requires_from_lib/targets.json @@ -0,0 +1,9 @@ +{ + "test_target": { + "supported_toolchains": ["GCC_ARM"], + "core": "Cortex-M0", + "extra_labels": [], + "features": [], + "default_lib": "std" + } +} diff --git a/tools/test/config/requires_from_lib/test_data.json b/tools/test/config/requires_from_lib/test_data.json new file mode 100644 index 0000000000..58a5b197af --- /dev/null +++ b/tools/test/config/requires_from_lib/test_data.json @@ -0,0 +1,7 @@ +{ + "test_target": { + "lib3.test": "GOOD", + "lib2.test": "GOOD", + "lib1.test": "GOOD" + } +}