From 6f5915807393ba9276781bae961a5f4310335398 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Thu, 7 Nov 2019 10:41:20 +0100 Subject: coverage: Fix regression The coverage test was broken. This restores it. Also add a simple build script that covers most of the code by default. Bug-AGL: SPEC-2974 Change-Id: I4fc5a0ba54195738405460a04f985bb67b81b5df Signed-off-by: Jose Bollo --- coverage/scripts/00-trace.sh | 2 +- coverage/scripts/run-test.sh | 60 +++++++++++++++++++++++++++++++++++++++++--- mkbuild.sh | 35 ++++++++++++++++++++++++++ 3 files changed, 92 insertions(+), 5 deletions(-) create mode 100755 mkbuild.sh diff --git a/coverage/scripts/00-trace.sh b/coverage/scripts/00-trace.sh index 247be611..1838094b 100755 --- a/coverage/scripts/00-trace.sh +++ b/coverage/scripts/00-trace.sh @@ -1,6 +1,6 @@ #!/bin/sh -$R/bin/afb-client -k $WSURL </dev/null; shift; } +[ "$1" = "--force" ] && { rm -r * 2>/dev/null; shift; } + +cmake \ + -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=~/.local \ + -DAGL_DEVEL=ON \ + -DWITH_SUPERVISOR=ON \ + -DWITH_DBUS_TRANSPARENCY=ON \ + -DWITH_LEGACY_BINDING_V1=ON \ + -DWITH_LEGACY_BINDING_V2=ON \ + -DWITH_LEGACY_BINDING_VDYN=ON \ + -DWITH_DYNAMIC_BINDING=ON \ + -DWITH_SIG_MONITOR_DUMPSTACK=ON \ + -DWITH_SIG_MONITOR_SIGNALS=ON \ + -DWITH_SIG_MONITOR_FOR_CALL=ON \ + -DWITH_SIG_MONITOR_TIMERS=ON \ + -DWITH_AFB_HOOK=ON \ + -DWITH_AFB_TRACE=ON \ + -DINCLUDE_MONITORING=ON \ + -DINCLUDE_SUPERVISOR=ON \ + -DINCLUDE_DBUS_TRANSPARENCY=ON \ + -DINCLUDE_LEGACY_BINDING_V1=ON \ + -DINCLUDE_LEGACY_BINDING_VDYN=ON \ + .. + +make -j "$@" + -- cgit 1.2.3-korg