diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-07-20 15:42:41 -0400 |
commit | de413e7ae293f2b919e2e75369c1ecb8a0c83975 (patch) | |
tree | 143ea097ea9e740c48b62335d468e9b0543be7b3 /bin/tests_dev27.sh | |
download | astroconda-control-de413e7ae293f2b919e2e75369c1ecb8a0c83975.tar.gz |
Initial commit
Diffstat (limited to 'bin/tests_dev27.sh')
-rwxr-xr-x | bin/tests_dev27.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/bin/tests_dev27.sh b/bin/tests_dev27.sh new file mode 100755 index 0000000..a1cd0b9 --- /dev/null +++ b/bin/tests_dev27.sh @@ -0,0 +1,36 @@ +#!/bin/bash +source /eng/ssb/auto/astroconda/include/midnight_special.sh +source /eng/ssb/auto/astroconda/include/pre-common.sh + +# Set context (used here and in post-common.sh) +name=conda +context=dev +repo=http://ssb.stsci.edu/conda-dev + +# Activate environment +source activate rt_${context}27 + +# Update environment +conda update -q -y --override-channels -c defaults -c $repo --all + +source /eng/ssb/auto/astroconda/include/post-common.sh + +# Assign tests to run +tests=( + $test_from/astrolib + $test_from/stsci_python + $test_from/betadrizzle + $test_from/axe + $test_from/hstcal + $test_from/stsdas +) + +# Nuke existing logs, run the tests, import the tests +set -x + +[[ -d $LOGDIR ]] && [[ $LOGDIR != ^/$ ]] && rm -f "$LOGDIR/*" +pushd $LOGDIR + time pdkrun --parallel=${CPU_COUNT} -r "${tests[@]}" +popd +cat ${PDK_LOG}* | ssh iraf@ssb "irafdev ; pdk import -" + |