| 1 |
#! /bin/csh -x |
| 2 |
|
| 3 |
# Check out, build, and test a specific version of pysynphot against |
| 4 |
# the syn_pysyn test suite. |
| 5 |
set root = /data/gaudete1/dg2/pysyn_version_compare/ |
| 6 |
setenv PYSYN_CDBS /eng/ssb/syn_pysyn/cdbs_pinned/ |
| 7 |
setenv crrefer $PYSYN_CDBS |
| 8 |
|
| 9 |
if $1 == '' then |
| 10 |
echo "You must specify a revision" |
| 11 |
exit |
| 12 |
else |
| 13 |
set revset = $1 |
| 14 |
setenv PYSYN_BUILDDIR $root/install/$revset |
| 15 |
endif |
| 16 |
#make directory |
| 17 |
mkdir $revset |
| 18 |
mkdir install/$revset |
| 19 |
|
| 20 |
# set path: stick pyssg on the end so we don't lose nose |
| 21 |
setenv PYTHONPATH ${PYSYN_BUILDDIR}/lib/python/:${root}/${revset}/pysynphot/commissioning/:/usr/stsci/pyssgdev/2.5.1:/usr/stsci/pyssg/2.5.1/ |
| 22 |
|
| 23 |
#check out |
| 24 |
cd $revset |
| 25 |
svn checkout https://www.stsci.edu/svn/ssb/astrolib/trunk/pysynphot@{$revset} |
| 26 |
|
| 27 |
#build |
| 28 |
cd pysynphot |
| 29 |
python setup.py install --home=$PYSYN_BUILDDIR |
| 30 |
# |
| 31 |
# |
| 32 |
# take the path stuff OUT of runset |
| 33 |
cd commissioning |
| 34 |
grep -v codeplace runset.csh > runset_clean.csh |
| 35 |
chmod +x runset_clean.csh |
| 36 |
# |
| 37 |
# Now run the tests |
| 38 |
runset_clean.csh $root/syn_pysyn/ >& ${root}runset_clean_r$revset.log & |