From ea226b882df1c395556fa156c21d6e0828d82462 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 14 Jun 2016 12:52:54 +0200 Subject: [PATCH] To run tpkg tests directly from clean git repo --- src/test/tpkg/setup-env.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/tpkg/setup-env.sh b/src/test/tpkg/setup-env.sh index 8a23fc71..ad43c879 100755 --- a/src/test/tpkg/setup-env.sh +++ b/src/test/tpkg/setup-env.sh @@ -7,6 +7,10 @@ export BUILDDIR=`pwd` export BUILDROOT=`(cd "${BUILDDIR}/../../.."; pwd)` export LIBTOOL="${BUILDROOT}/libtool" +if [ ! -f "${SRCROOT}/src/test/jsmn/jsmn.c" ] +then + (cd "${SRCROOT}"; git submodule update --init) +fi if [ ! -f "${SRCROOT}/libtool" ] then (cd "${SRCROOT}"; libtoolize -fic)