Choose a directory to install the tests scripts.
metadata.test
- main driver scriptgetMetaData.tcl
- getMetaData user cmd test driverputMetaData.tcl
- putMetaData user cmd test driverget_refs.sql
- extract unique Ids for generation of ilwdsxrefs.tcl
- generates include files (.h) based on the data insertedilwdValidate.tcl
- compares ilwds in ilwd and xml formats createplot.tcl
- parses metadata log to generate insertion rate filesdbstats.tcl
- compares current results with previousanalyseInsert.tcl
- extracts insertion logs and invokes post processing via createplot.tcl and dbstats.tcl.
coinc_snglilwd.cc multi_burstilwd.cc sngl_mimeilwd.cc
commonilwd.cc multi_inspiralilwd.cc sngl_ringdownilwd.cc
filter_paramsilwd.cc process_paramsilwd.cc sngl_transdatailwd.cc
filterilwd.cc processilwd.cc sngl_unmodeled_vilwd.cc
frameset_chanlistilwd.cc runlistilwd.cc sngl_unmodeledilwd.cc
frameset_locilwd.cc segment_definerilwd.cc summ_commentilwd.cc
frameset_writerilwd.cc segmentilwd.cc summ_csdilwd.cc
framesetilwd.cc sngl_burstilwd.cc summ_mimeilwd.cc
gds_triggerilwd.cc sngl_datasourceilwd.cc summ_spectrumilwd.cc
sngl_dperiodicilwd.cc summ_statisticsilwd.cc
sngl_inspiralilwd.cc summ_valueilwd.cc Makefile
Note: gcc compiler environment must be present for ilwd source code to be compiled into executables.
Environment variable SSH_AUTH_SOCK is required to allow execution of scripts on dataserver to retrieve logs. To set this, on the ldas gateway, find out the name of the ldas agent by running the ldas utility ldasagent. Then setenv SSH_AUTH_SOCK to the output of ldasagent if an agent exists. Then login to metaserver; verify that the environment variable is set before running the test.
Note: At all the sites, the required script files are installed at /ldas_usr/ldas/test/database.
cd /ldas_usr/ldas/test/database
Usage: metadata.test [options] >& metadatatest.log &
| Option | Description |
|---|---|
<dsname>
| database name for the test |
<dims set>
| set of ilwd dimensions, comma separated e.g. 1,10,100,1000 |
<previous result directory>
| relative location of directory of previous result for comparision e.g. results-1107 |
<validate [ 0 | 1 ]>
| boolean flag to indicate if validation should be done on data inserted; if so a getMetaData command is issued to retrieve the data and validation invoked. |
no options
| shows the required arguments. |
The database is cleared out. The tables are divided into 4 levels according to their dependency on previous tables. Insertions for table data at each level are completed before the next level. After one level is inserted, scripts are ran to extract inserted information to generate include files (.h) . The next level ilwds are generated by compiling the source code with the include files and running the executables to output ilwds that reference inserted data. If the ilwds do not compile properly, most likely the include files are not being generated properly; it is best to terminate the test and examine why the database extraction did not result in the correct include files.
If validate option is 1, a query is made to extract data from each of the tables into xml. The result xml is compared against the original ilwd to verify that all input data in the ilwd is the same as in the database. Since the IBM DB2 does not support unsigned integers, there will a mismatch for ilwd types INT_2U, INT_4U and INT_8U. The validation reports are directed to stdout.
There is a line per table: e.g. Test passed for table sngl_datasource.
and the end result: All tables passed.
The logs generated during insertion phase are extracted from ldas logs and parsed to generate output files correlating ilwd dims to insertion cputime, walltime and insertion rate in number of rows/sec. The rates are already computed by the metadataAPI and recorded in the logs. 3 files are output:
The current insertion file output (.txt file) is used to compare against results from 3 previous releases to see if the rates are within 10% standard deviation; if so this implies a no change in rate and the test passes. If not, the test fails. There are 3 output file from the comparision: