Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-03 01:57:57

0001 #!/bin/bash
0002 set -e
0003 set -x
0004 
0005 if [[ -z ${LOCAL_TEST_DIR} ]]; then
0006     LOCAL_TEST_DIR=.
0007 fi
0008 
0009 cd $LOCAL_TEST_DIR
0010 
0011 DBFILE="sequences.db"
0012 if [[ -n $1 && -n $2 ]]; then
0013   SECTION="--limit $1 --offset $2"
0014   DBFILE="sequences$2.db"
0015   THREADS="--threads 1"
0016 fi
0017 
0018 INFILE=""
0019 if [[ -n $3 ]] ; then
0020   INFILE="--infile $3"
0021 fi
0022 
0023 cmsswSequenceInfo.py --runTheMatrix --steps DQM,VALIDATION $INFILE $SECTION --dbfile "$DBFILE" $THREADS
0024 sqlite3 "$DBFILE"  > "legacymodules-${DBFILE}.txt" <<SQL
0025 SELECT edmfamily, edmbase, classname, instancename, step, seqname, wfid 
0026 FROM plugin 
0027 NATURAL JOIN module 
0028 INNER JOIN sequencemodule ON module.id == moduleid 
0029 INNER JOIN sequence ON sequence.id = sequenceid 
0030 NATURAL JOIN workflow 
0031 WHERE edmfamily is null;
0032 SQL
0033 
0034 # There are lots of legacy producers and filters, so we check only for analyzers for now.
0035 if grep EDAnalyzer "legacymodules-${DBFILE}.txt" ; then
0036   echo "There are legacy modules! See list above."
0037   exit 1
0038 else
0039   exit 0
0040 fi