aboutsummaryrefslogtreecommitdiffstats
path: root/coverage/bin
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-07-06 17:07:19 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2018-07-08 21:27:48 +0200
commitc98c0d913e3720e61f42d1fabc56a12a73a612ae (patch)
tree9482a8cbf222359d08288b24638b63a354867a27 /coverage/bin
parent42b655f3cbd208fe31f634d9249f24f9cc712237 (diff)
coverage: Improve testing
- Add test of bindings v2 - Distinguish between clean and cleanall - More valgrind ouput Change-Id: If929756d9d35ddb959b46f7330cbf318301d532e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'coverage/bin')
-rw-r--r--coverage/bin/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/coverage/bin/Makefile b/coverage/bin/Makefile
index 2f2a9ee1..19bf254a 100644
--- a/coverage/bin/Makefile
+++ b/coverage/bin/Makefile
@@ -4,7 +4,7 @@
heredir = .
basedir = ../..
-targets = afb-daemon-cov afb-client hi3.so hello.so salut.so salam.so shalom.so demat.so bug.so
+targets = afb-daemon-cov afb-client hi3.so hello.so salut.so salam.so shalom.so demat.so bug.so hellov2.so
binaries: $(targets)
@@ -34,6 +34,7 @@ afb_daemon_defs = '-DAFB_VERSION="cov"' -DAGL_DEVEL -DWITH_MONITORING_OPTION '-D
afb_client_srcs = $(srcdir)/main-afb-client-demo.c $(afb_clib_src)
afb_client_defs = '-DAFB_VERSION="cov"' '-DBINDING_INSTALL_DIR="fake"'
+hello2_src = $(samdir)/hello2.c
hello3_src = $(samdir)/hello3.c
hi_src = $(samdir)/hi3.c
binding_flags = -shared -fPIC -Wl,--version-script=$(samdir)/export.map
@@ -70,6 +71,10 @@ demat.so: $(hello3_src)
@echo creation of $@
@gcc -o $@ $(hello3_src) '-DAPINAME="demat"' $(binding_flags) $(cflags)
+hellov2.so: $(hello2_src)
+ @echo creation of $@
+ @gcc -o $@ $(hello2_src) '-DAPINAME="hello-v2"' $(binding_flags) $(cflags)
+
bug.so: bug.c
@echo creation of $@
@gcc -o $@ bug.c $(binding_flags) $(cflags)