Hi Paul,

Yes -- sorry about that, my mistake.  To be clear, the script does work and my 
coot passes all the tests now.

Thank you again for your time and help (and sorry for being a pain)!

Best wishes,
Kip


On May 13, 2013, at 6:59 PM, Paul Emsley wrote:

> On 13/05/13 20:05, 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 ~/
>> 
>> 
> 
> COOT_TEST_DATA_DIR is mentioned in the setup scripts of the test suites 
> (python-tests and greg-tests).
> 
> My shell scripting is not all it could be, but don't you need to export 
> COOT_TEST_DATA_DIR to make it an environment variable?
> 
> Paul.
> 
> 

Reply via email to