]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Allow running test suite on installed openconnect
authorMike Miller <mtmiller@debian.org>
Thu, 10 Jan 2019 20:09:36 +0000 (12:09 -0800)
committerMike Miller <mtmiller@debian.org>
Thu, 10 Jan 2019 20:09:36 +0000 (12:09 -0800)
Support 'make check OPENCONNECT=/usr/sbin/openconnect' to run the test
suite as a CI test against the already-installed copy of openconnect.

Signed-off-by: Mike Miller <mtmiller@debian.org>
tests/common.sh

index 7161804e60e21c73183cd4234f61cc52494f94b5..c761492d32803b58f26e7d5bd1b1a4486583c3af 100644 (file)
@@ -32,7 +32,7 @@ mkdir -p $SOCKDIR
 export SOCKET_WRAPPER_DIR=$SOCKDIR
 export SOCKET_WRAPPER_DEFAULT_IFACE=2
 ADDRESS=127.0.0.$SOCKET_WRAPPER_DEFAULT_IFACE
-OPENCONNECT="${top_builddir}/openconnect"
+OPENCONNECT="${OPENCONNECT:-${top_builddir}/openconnect}"
 
 certdir="${srcdir}/certs"
 confdir="${srcdir}/configs"