summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 15:11:53 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 15:11:53 -0500
commit4889403cec6879962e9f03e711fc8ecb158fc24c (patch)
tree1aac00d0c688a8d552c425972477e69e6b80dfbc /test
parent7e232e4a72a68ddcfa21cc44c705d8b6cc0092a4 (diff)
downloadthird_party-func-4889403cec6879962e9f03e711fc8ecb158fc24c.tar.gz
third_party-func-4889403cec6879962e9f03e711fc8ecb158fc24c.tar.xz
third_party-func-4889403cec6879962e9f03e711fc8ecb158fc24c.zip
add support for clone the local developers version of the repo to test
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-it.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/test-it.sh b/test/test-it.sh
index a0bfccb..ee04bb6 100755
--- a/test/test-it.sh
+++ b/test/test-it.sh
@@ -23,6 +23,9 @@ BUILD=Y
# do we do a fresh pull from git to build
BUILD_FROM_FRESH_CHECKOUT=N
+# do we use the master repo, or clone localy
+# you really need to change both of these
+CLONE_LOCAL_REPO=Y
# do we build/uninstall via rpms?
INSTALL_VIA_RPMS=N
@@ -72,7 +75,15 @@ check_out_code()
rm -rf $BUILD_PATH
mkdir -p $BUILD_PATH
pushd $BUILD_PATH
- git clone git://git.fedorahosted.org/func.git
+
+ GIT_REPO="git://git.fedorahosted.org/func.git"
+ if [ "$CLONE_LOCAL_REPO" == "Y" ] ; then
+ msg "Building from a checkout of the local git repo"
+ git clone $BASE_DIR
+ else
+ msg "Building from a checkout from $GIT_REPO"
+ git clone $GIT_REPO
+ fi
echo $?
popd
}