Warning, /DQM/Integration/test/README.md is written in an unsupported language. File is not indexed.
0001 # Unit tests of Online DQM clients
0002
0003 There is a dedicated input source for the unit tests: `DQM.Integration.config.unittestinputsource_cfi`.
0004
0005 The input source selects only last 100 events of 1st and 2nd lumisections to make sure that the tests can run fast yet encountering a lumi transition.
0006
0007 The most recent full event data was selected to be used to run the tests. Bellow are the instructions on how to update it:
0008
0009 ``` bash
0010 # Get the workflow number:
0011 runTheMatrix.py -n | grep 2020
0012 # And get the info about the workflow:
0013 runTheMatrix.py -l 138.1 -ne
0014 # Dataset and run number will appear in the output
0015 # /ExpressCosmics/Commissioning2019-Express-v1/FEVT
0016 # 334393
0017 ```
0018
0019 Dataset and run number has to be changed in the default values of the parameters in this file: `DQM/Integration/python/config/unittestinputsource_cfi.py`
0020
0021 ## Running locally:
0022
0023 Running all tests:
0024 ``` bash
0025 voms-proxy-init -voms cms -rfc
0026 scram b runtests
0027
0028 # to run tests in parallel:
0029 scram b -k -j 16 runtests
0030 ```
0031
0032 Running a single client test:
0033 ``` bash
0034 cd DQM/Integration/python/clients
0035 mkdir upload
0036 cmsRun sistrip_dqm_sourceclient-live_cfg.py unitTest=True
0037 ```