XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


testprods (testprods-1.6) [xmmsas_20050815_1803-6.5.0]

Home Page Home Page Bibliography Home Index

Meta Index / Home Page


Description

This package contains FITS datasets (mostly images or event lists) for use in test harnesses for a number of sas tasks.

To make use of this facility for your own task, do the following:

  1. Make a new subdirectory `mytask_data', or what you will, under testprods.

  2. Move the data files you need to run the test harness of mytask to testprods/mytask_data/.

  3. Add `mytask_data' to the DATADIRS line of testprods/Makefile.

  4. Check that testprods compiles ok, then upload testprods with an increment to the minor version number.

  5. Add lines

    my $data_dir = `saslocate lib/data/mytask_data`;
    chomp($data_dir);
    

    to your perl test harness. (Shell-script preferers can, I am sure, translate.) Your files can now be found in the subdirectory name stored in the variable $data_dir. Alter command lines in the test harness to read the files from there.

  6. Check that this all works then upload your new version of mytask.



XMM-Newton SOC/SSC -- 2005-08-15