summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdkext/files
diff options
context:
space:
mode:
authorAníbal Limón <limon.anibal@gmail.com>2016-01-31 10:02:03 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 16:06:23 +0000
commit92d0cc582c5504ba6cdc2e82eb234b99debb7690 (patch)
treebd53fb73b63749721c6cdafd907ccbcf05583e1a /meta/lib/oeqa/sdkext/files
parenta619ea293acfdf5700030c27056312bc4b898e97 (diff)
downloadpoky-92d0cc582c5504ba6cdc2e82eb234b99debb7690.tar.gz
oeqa/sdkext: Add devtool basic tests for eSDK.
Add simple myapp application is a C app that prints hello world and exit. Add devtool test for that this app to the workspace, build and reset it. (From OE-Core rev: 2ec513c00ab2ae0f7df631d32f8f248446c90184) Signed-off-by: Aníbal Limón <limon.anibal@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdkext/files')
-rw-r--r--meta/lib/oeqa/sdkext/files/myapp/Makefile10
-rw-r--r--meta/lib/oeqa/sdkext/files/myapp/myapp.c9
2 files changed, 19 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdkext/files/myapp/Makefile b/meta/lib/oeqa/sdkext/files/myapp/Makefile
new file mode 100644
index 0000000000..abd91bea68
--- /dev/null
+++ b/meta/lib/oeqa/sdkext/files/myapp/Makefile
@@ -0,0 +1,10 @@
1all: myapp
2
3myapp: myapp.o
4 $(CC) $(LDFLAGS) $< -o $@
5
6myapp.o: myapp.c
7 $(CC) $(CFLAGS) -c $< -o $@
8
9clean:
10 rm -rf myapp.o myapp
diff --git a/meta/lib/oeqa/sdkext/files/myapp/myapp.c b/meta/lib/oeqa/sdkext/files/myapp/myapp.c
new file mode 100644
index 0000000000..f0b63f03f3
--- /dev/null
+++ b/meta/lib/oeqa/sdkext/files/myapp/myapp.c
@@ -0,0 +1,9 @@
1#include <stdio.h>
2
3int
4main(int argc, char *argv[])
5{
6 printf("Hello world\n");
7
8 return 0;
9}