aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index db24222c7..50e1546f4 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -29,7 +29,7 @@ gcrypt)
printf-builtin)
CONFIG="--with-printf-hooks=builtin"
;;
-all)
+all|coverage)
CONFIG="--enable-all --disable-android-dns --disable-android-log
--disable-dumm --disable-kernel-pfroute --disable-keychain
--disable-lock-profiler --disable-padlock
@@ -41,8 +41,12 @@ all)
CONFIG="$CONFIG --disable-aikpub2 --disable-tss-tss2"
# not enabled on the build server
CONFIG="$CONFIG --disable-af-alg"
- # TODO: enable? perhaps via coveralls.io (cpp-coveralls)?
- CONFIG="$CONFIG --disable-coverage"
+ if test "$TEST" != "coverage"; then
+ CONFIG="$CONFIG --disable-coverage"
+ else
+ # not actually required but configure checks for it
+ DEPS="$DEPS lcov"
+ fi
DEPS="$DEPS libcurl4-gnutls-dev libsoup2.4-dev libunbound-dev libldns-dev
libmysqlclient-dev libsqlite3-dev clearsilver-dev libfcgi-dev
libnm-glib-dev libnm-glib-vpn-dev libpcsclite-dev libpam0g-dev