How to run LIGO_LW <-> ILWD to XML conversion test of LDASdatabase table data
This is a series of tests that exercises conversion of ILWD to LIGO_LW and vice versa by 2 user commands
for data to be inserted into LDAS database tables:
- ILwd2Lw - converts ilwd file to xml
- Lw2ILwd - converts xml file to ilwd
The LDAS APIs affected by this test are:
- managerAPI: directs processing of the insertion user commands to the ligolwAPI and metadataAPI
and returns the user command status to the user.
- ligolwAPI:
- Converts ILwd file to xml via user command ILwd2Lw or xml to ilwd via Lw2ILwd.
Setup
Choose a directory to install the tests scripts.
Running the test
The test should be run from your local platform, and run in the scripts directory.
cd <scripts directory>
Usage: ilwd2xml.test >& ilwd2xml.log &
Test Verification:
The script does a comparision of the output file (ilwd or xml) against the input specified by -ingestdata option of the user
command Lw2Ilwd or ILwd2Lw;
if there is no mismatch the test passes. Result xmls are copied to subdirectory xmldir.