-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Kip,
once set up, the script works fine. My cronjob entry reads
1 3 * * Sun cd /local/users/tg/coot_deb; /bin/bash
/local/users/tg/coot_deb/wrap-build-it python
and the mentioned scripts reads
#!/bin/bash
OS=$(uname)
HOST=$(hostname)
export LC_ALL=C
if [ -z $CCP4 ]; then
. /xtal/misc/xtal-setup.sh
fi
if [ -z $CCP4 ]; then
echo "$CCP4 not set - exiting"
exit
else
echo "CCP4 is $CCP4"
fi
rm -fr /local/users/tg/coot_deb/wheezy/autobuild/building/${HOST}*
WBDIR=/local/users/tg/coot_deb
AUTOBUILD_BUILD=/local/users/tg/coot_deb/wheezy/autobuild/building
AUTOBUILD_INSTALL=/local/users/tg/coot_deb/wheezy/autobuild/${OS}-${HOST}
AUTOBUILD_INSTALLED=/local/users/tg/coot_deb/wheezy/autobuild/${OS}-${HOST}
LOGS=$HOME/public_html/coot_deb/wheezy/build-logs/${OS}-${HOST}
NIGHTLY_DEST_DIR=$HOME/public_html/coot_deb/wheezy/binaries/nightlies/pre-release
STABLE_DEST_DIR=$HOME/public_html/coot_deb/wheezy/binaries/stable
run_tests=true
if wget http://coot.googlecode.com/svn/trunk/build-it-gtk2-simple -O
${WBDIR}/build-it-gtk2-simple ; then
. build-it-gtk2-simple
fi
Best,
Tim
On 05/13/2013 09:05 PM, Kip Guja wrote:
> Hi Paul and Bernhard,
>
> Thanks so much for your help -- with the greg data available, both
> tests are now passed!
>
> Note: you also need to set run_tests=true in addition to
> downloading the greg data, untarring it in ~/
>
> I could be mistaken, but it seems that setting COOT_TEST_DATA_DIR
> doesn't work and it looks for the greg data in ~/ no matter what (I
> also noticed that the variable COOT_TEST_DATA_DIR is not found
> anywhere in build-it-gtk2-simple)?
>
> Not a big deal, but it would be nice to be able to implement this
> all in a wrapper script that could be run from any directory, for
> example:
>
> -------------------------------------------build-coot-and-test-it.sh------------------------------------------------------------
>
>
#!/bin/bash
> [ ! -f build-it-gtk2-simple ] && wget
> http://coot.googlecode.com/svn/trunk/build-it-gtk2-simple
> OS=`uname` HOST=`hostname`
> AUTOBUILD_BUILD=`pwd`/autobuild/building
> AUTOBUILD_INSTALL=`pwd`/autobuild/${OS}-${HOST}
> AUTOBUILD_INSTALLED=`pwd`/autobuild/${OS}-${HOST}
> LOGS=`pwd`/build-logs/${OS}-${HOST}
> NIGHTLY_DEST_DIR=`pwd`/binaries/nightlies/pre-release
> STABLE_DEST_DIR=`pwd`/binaries/stable [ ! -f greg-data.tar.gz ] &&
> wget http://lmb.bioch.ox.ac.uk/coot/devel/greg-data.tar.gz [ ! -d
> data ] && tar xfz greg-data.tar.gz
> COOT_TEST_DATA_DIR=`pwd`/data/greg-data run_tests=true .
> ./build-it-gtk2-simple python | tee build.log
> -------------------------------------------------------------------------------------------------------------------------------------------
>
> Currently, this works but only if executed in ~/
>
> Anyway, thanks again for your help!
>
> Best wishes, Kip
>
>
>
> On Mon, May 13, 2013 at 4:40 AM, Paul Emsley
> <[email protected]>wrote:
>
>> On 11/05/13 22:00, Kip Guja wrote:
>>
>>> Hi All,
>>>
>>> I am trying to build revision 4630 (on Fedora 17 64-bit) from
>>> sources using the autobuild script -- coot building seems to
>>> pass (and the binary seems to run perfectly fine on my machine)
>>> but the logs show that it is failing the first test. I am
>>> running Fedora 17 64-bit
>>>
>>> Any and all advice on how to proceed would be greatly
>>> appreciated!
>>>
>>>
>> At a guess, the test data are missing. You can get them from here
>> (for the moment):
>>
>> http://lmb.bioch.ox.ac.uk/**coot/devel/greg-data.tar.gz<http://lmb.bioch.ox.ac.uk/coot/devel/greg-data.tar.gz>
>>
>>
>>
Unextract them into ~/data/greg-data or in a directory defined in the
>> environment variable COOT_TEST_DATA_DIR. Then build your coot.
>>
>> Paul.
>>
>>
>
- --
Dr Tim Gruene
Institut fuer anorganische Chemie
Tammannstr. 4
D-37077 Goettingen
GPG Key ID = A46BEE1A
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iD8DBQFRkTsHUxlJ7aRr7hoRAmqHAKCB+Z1Si93mcOVGEZfaYTQVWTsYOQCgvPPN
lunXsnHP3RuHMCswlGBIEqI=
=0fK5
-----END PGP SIGNATURE-----