diff options
author | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-04 14:16:20 -0500 |
---|---|---|
committer | Adrian Likins <alikins@grimlock.devel.redhat.com> | 2008-02-04 14:16:20 -0500 |
commit | 9efd48a2183c38776c3d3012b37c7e549351d881 (patch) | |
tree | 30b1d9fc97554feeddf5ab02add0522487381728 /test | |
parent | b568bf4a323df17c11f8c307e82aec25423445c1 (diff) | |
download | third_party-func-9efd48a2183c38776c3d3012b37c7e549351d881.tar.gz third_party-func-9efd48a2183c38776c3d3012b37c7e549351d881.tar.xz third_party-func-9efd48a2183c38776c3d3012b37c7e549351d881.zip |
instead of trying to build the local tree directly, copy
it to a subdir and run from there
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-it.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/test-it.sh b/test/test-it.sh index d700a41..961bb3b 100755 --- a/test/test-it.sh +++ b/test/test-it.sh @@ -78,6 +78,16 @@ check_out_code() } +copy_code_to_buildroot() +{ + + msg "Copying current build dir to $BUILD_PATH" + rm -rf $BUILD_PATH + mkdir -p $BUILD_PATH/func/ + cp -var ../* $BUILD_PATH/func + +} + build_rpm() { @@ -90,7 +100,9 @@ build_rpm() echo "Building $PKG in $BRT" echo "======================================" echo + echo $BUILD_PATH/$PKG pushd $BUILD_PATH/$PKG + echo "BRT" $BRT "PKK" $PKG make clean make rpms if [ $? != 0 ]; then @@ -253,8 +265,10 @@ if [ "$BUILD" == "Y" ] ; then if [ "$BUILD_FROM_FRESH_CHECKOUT" == "Y" ] ; then check_out_code else - # assume we are running from the test dir - BUILD_PATH="`pwd`/../" + # assume we want to build a copy of the current + # source tree, we copy it else where and build + # so we dont 'splode any thing with the build process + copy_code_to_buildroot fi |