From e669d10599aa9d02b749e31eb4a6de8e8f9acd11 Mon Sep 17 00:00:00 2001 From: Flavio Santes Date: Mon, 1 Aug 2016 17:50:36 -0500 Subject: [PATCH] samples/static_lib: Add testcase.ini Add testcase.ini file for qemu_x86. We detected an unexpected behavior in sanitycheck before submitting this patch: In testcase.ini, if platform_whitelist contains more than one platform only the last platform will work. So, here we just use qemu_x86. However, we believe this situation is caused by the structure of this sample. See mylib/Makefile. Jira: ZEP-621 Change-Id: I656c1b9a69b93fd9f7b0d98a69f49b9641918a93 Signed-off-by: Flavio Santes --- samples/static_lib/Makefile | 22 +++++++++++++--------- samples/static_lib/prj.conf | 1 + samples/static_lib/testcase.ini | 4 ++++ 3 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 samples/static_lib/prj.conf create mode 100644 samples/static_lib/testcase.ini diff --git a/samples/static_lib/Makefile b/samples/static_lib/Makefile index 5ae528b948f..dbe71bc6eed 100644 --- a/samples/static_lib/Makefile +++ b/samples/static_lib/Makefile @@ -14,25 +14,29 @@ # limitations under the License. # +KERNEL_TYPE = nano +BOARD ?= qemu_x86 +CONF_FILE = prj.conf + MYLIB = mylib/lib/libmylib.a all: - make clean - make mylib - make hello_world + $(MAKE) clean + $(MAKE) mylib + $(MAKE) hello_world hello_world: $(MYLIB) - make -C hello_world + $(MAKE) -C hello_world $(MYLIB): - make -C mylib + $(MAKE) -C mylib run: - make -C hello_world qemu + $(MAKE) -C hello_world qemu pristine: - make -C mylib clean - make -C hello_world pristine + $(MAKE) -C mylib clean + $(MAKE) -C hello_world pristine clean: - make pristine + $(MAKE) pristine diff --git a/samples/static_lib/prj.conf b/samples/static_lib/prj.conf new file mode 100644 index 00000000000..d8f773ce3c9 --- /dev/null +++ b/samples/static_lib/prj.conf @@ -0,0 +1 @@ +# nothing yet diff --git a/samples/static_lib/testcase.ini b/samples/static_lib/testcase.ini new file mode 100644 index 00000000000..a33e3634811 --- /dev/null +++ b/samples/static_lib/testcase.ini @@ -0,0 +1,4 @@ +[test] +tags = static_link +build_only = true +platform_whitelist = qemu_x86