IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31006


Ignore:
Timestamp:
Mar 22, 2011, 4:05:11 PM (15 years ago)
Author:
rhenders
Message:

Added unit tests for stack and init batches

Location:
trunk/ippToPsps/unitTests
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/unitTests/README

    r31005 r31006  
    1 Unit tests should be run from this dir, for example, for detections:
     1Unit tests should be run from the relavnt dir, for example, for detections:
    22
    3 ./detectionTest/run.s
     3cd detectionTest
     4./run.sh
     5
     6Or, you can run all the tests from this dir with
     7
     8./runAllTests.sh
     9
  • trunk/ippToPsps/unitTests/detectionTest/ippToPsps_inputFileList

    r31005 r31006  
    1 ./detectionTest/o5463g0468o.230033.cm.123431.smf
     1o5463g0468o.230033.cm.123431.smf
  • trunk/ippToPsps/unitTests/detectionTest/run.sh

    r31005 r31006  
    1 rm ./detectionTest/00230033.FITS; ../src/detectionbatch -input ./detectionTest/ippToPsps_inputFileList -output ./detectionTest/ -D CATDIR /data/ipp004.0/gpc1/catdirs/ThreePi.V1 -config ../config -survey 3PI -results ./detectionTest/results -expid 230033 -expname o5463g0468o -test
     1rm 00230033.FITS; ../../src/detectionbatch -input ippToPsps_inputFileList -output . -D CATDIR /data/ipp004.0/gpc1/catdirs/ThreePi.V1 -config ../../config -survey 3PI -results results -expid 230033 -expname o5463g0468o -test
    22
    33echo "";
    44echo "*******************************************************************************"
    55echo "*"
     6echo "*                        *** Detection batch unit test ***"
     7echo "*"
    68echo "* Diffing new files with 'correct' ones..."
    79echo "*"
    8 diff ./detectionTest/00230033.FITS.CORRECT ./detectionTest/00230033.FITS -s
    9 diff ./detectionTest/results.correct ./detectionTest/results -s
     10diff 00230033.FITS.CORRECT 00230033.FITS -s
     11diff results.correct results -s
    1012echo "*"
    1113echo "* unit test complete"
Note: See TracChangeset for help on using the changeset viewer.