Skip to content

Commit

Permalink
Merge pull request #2 from sot/py3
Browse files Browse the repository at this point in the history
Updates for Skare py3 and py2-3 branches
  • Loading branch information
taldcroft authored Jan 9, 2017
2 parents 6e3f0f3 + 0dd2919 commit 3bca8c5
Show file tree
Hide file tree
Showing 37 changed files with 102 additions and 26 deletions.
3 changes: 2 additions & 1 deletion get_version_id
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh

ska_version
echo `ska_version` | sed 's/-.*//'

3 changes: 3 additions & 0 deletions get_version_id_full
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

ska_version
5 changes: 5 additions & 0 deletions packages/Chandra.Maneuver/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
allows=['test_inject_errors',
'test_inject_array_errors'])
2 changes: 2 additions & 0 deletions packages/Chandra.Maneuver/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
4 changes: 4 additions & 0 deletions packages/Chandra.Time/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
allows=['mxDateTime'])
2 changes: 2 additions & 0 deletions packages/Chandra.Time/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
3 changes: 3 additions & 0 deletions packages/Chandra.cmd_states/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/Chandra.cmd_states/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
2 changes: 2 additions & 0 deletions packages/Ska.DBI/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
4 changes: 0 additions & 4 deletions packages/Ska.DBI/test_unit_git.sh

This file was deleted.

2 changes: 2 additions & 0 deletions packages/Ska.Numpy/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
5 changes: 0 additions & 5 deletions packages/Ska.Numpy/test_unit_git.sh

This file was deleted.

4 changes: 4 additions & 0 deletions packages/Ska.Shell/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
allows=[r'test_[a-z]+_error'])
2 changes: 2 additions & 0 deletions packages/Ska.Shell/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
5 changes: 4 additions & 1 deletion packages/Ska.engarchive/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
check_files('test_*.log', ['warning', 'error'],
allows=['WARNING.+because colnames',
'WARNING.+made new file',
'WARNING.+Unexpected null file'])
8 changes: 4 additions & 4 deletions packages/Ska.engarchive/test_regress_long.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/usr/bin/git clone ${TESTR_PACKAGES_REPO}/eng_archive
cd eng_archive
git checkout create-faster
git checkout master
cp update_archive.py add_derived.py archfiles_def.sql ../
cd ../
mkdir data
Expand All @@ -12,7 +12,6 @@ START="2016:100"
STOP="2016:105"

export ENG_ARCHIVE=$PWD
export PYTHONPATH=/home/aldcroft/git/eng_archive/local/lib/python2.7/site-packages

# Create full resolution data
echo "Creating archive for normal full resolution MSIDs..."
Expand All @@ -29,10 +28,11 @@ export ENG_ARCHIVE=${PWD}:/proj/sot/ska/data/eng_archive
# Add acispow derived parameters
CONTENTS="$CONTENTS --content=dp_acispow"

# Update stats
# Update stats. --max-lookback-time is about 14 years. Do not set so large
# that the start will be before 2000:001.
#
echo "Creating archive stats..."
./update_archive.py --no-full $CONTENTS --max-lookback-time 1e20
./update_archive.py --no-full --data-root=$PWD $CONTENTS --max-lookback-time=5000

# Compare newly created values to flight
echo "Comparing newly created values to flight"
Expand Down
2 changes: 2 additions & 0 deletions packages/Ska.ftp/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
4 changes: 0 additions & 4 deletions packages/Ska.ftp/test_unit_git.sh

This file was deleted.

3 changes: 3 additions & 0 deletions packages/Ska.tdb/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/Ska.tdb/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
3 changes: 3 additions & 0 deletions packages/agasc/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/agasc/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
3 changes: 3 additions & 0 deletions packages/cxotime/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/cxotime/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
4 changes: 4 additions & 0 deletions packages/dea_check/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
allows=['99% quantile value of', 'in output at out'])
11 changes: 11 additions & 0 deletions packages/dea_check/post_regress.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from testr.packages import make_regress_files

regress_files = ['out/index.rst',
'out/run.dat',
'out/states.dat',
'out/temperatures.dat']

clean = {'out/index.rst': [(r'^Run time.*', '')],
'out/run.dat': [(r'#.*py run at.*', '')]}

make_regress_files(regress_files, clean=clean)
4 changes: 4 additions & 0 deletions packages/dea_check/test_regress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python /proj/sot/ska/share/dea/dea_check.py \
--outdir=out \
--oflsdir=/data/mpcrit1/mplogs/2013/FEB0413/oflsa \
--run-start=2013:031
6 changes: 5 additions & 1 deletion packages/kadi/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
check_files('test_*.log', ['warning', 'error'],
allows=['/kadi/settings.py:\d\d: UserWarning:',
'warnings.warn\(message\)',
'Unable to change file mode',
'Coarse OBC'])
2 changes: 1 addition & 1 deletion packages/kadi/test_regress_long.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ STOP='2015:030'
./update_cmds --start=$START --stop=$STOP

# Write event and commands data using test database
./write_events_cmds.py --start=$START --stop=$START --data-root=events_cmds
./write_events_cmds.py --start=$START --stop=$STOP --data-root=events_cmds
2 changes: 2 additions & 0 deletions packages/kadi/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
5 changes: 0 additions & 5 deletions packages/kadi/test_unit_git.sh

This file was deleted.

3 changes: 3 additions & 0 deletions packages/maude/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/maude/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
5 changes: 5 additions & 0 deletions packages/mica/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'],
allows=['did not parse as fits unit',
'specified but multiple tables'])
2 changes: 2 additions & 0 deletions packages/mica/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()
3 changes: 3 additions & 0 deletions packages/pyyaks/post_check_logs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from testr.packages import check_files

check_files('test_*.log', ['warning', 'error'])
2 changes: 2 additions & 0 deletions packages/pyyaks/test_unit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import testr
testr.testr()

0 comments on commit 3bca8c5

Please sign in to comment.