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


testprods (testprods-1.52) [xmmsas_20230412_1735-21.0.0]


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/ . The data files are preferably compressed, especially if they are big in size. Note all the data files should have right readable/writable/executable permissions; in particular no executable permission should be given (otherwise compiling or uploading can fail).

  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 -- 2023-04-16