Warning, /CondCore/PopCon/test/runPopConExamples_new is written in an unsupported language. File is not indexed.
0001 #run popcon example1
0002 # put your firstsince value after xxx
0003 mkdir testPopCon
0004 pushd testPopCon
0005
0006 cp $LOCALRT/src/CondCore/PopCon/test/PopConExample1_template.py PopConExample1_template.py
0007 sed -i 's/yyy/3/g' PopConExample1_template.py
0008
0009 cat PopConExample1_template.py | sed 's/xxx/3/g' > tmp_PopConExample.py
0010
0011 echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/3/g'
0012 cmsRun tmp_PopConExample.py
0013 rm tmp_PopConExample.py
0014
0015 # if you want to proove again... otherwise skip to db inspection
0016 # put your firstsince value after xxx
0017
0018 cat PopConExample1_template.py | sed 's/xxx/15/g' > tmp_PopConExample.py
0019
0020 echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/15/g'
0021 cmsRun tmp_PopConExample.py
0022
0023 rm tmp_PopConExample.py
0024
0025 # if you want to proove again... otherwise skip to db inspection
0026 # put your firstsince value after xxx
0027
0028 cat PopConExample1_template.py | sed 's/xxx/45/g' > tmp_PopConExample.py
0029
0030 echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/45/g'
0031 cmsRun tmp_PopConExample.py
0032 rm tmp_PopConExample.py
0033
0034 echo "inspect db"
0035 cmscond_list_iov -c sqlite_file:pop_test.db -a
0036 echo "get iov details"
0037 cmscond_list_iov -c sqlite_file:pop_test.db -t Example_tag
0038
0039 #note: tag-name, log-name and db-name must be the same as in the cfg file
0040
0041 echo "dump log"
0042 cmscond_logdb_dump -c sqlite_file:log.db > test_log1.log
0043
0044 # moving the EXECTIME information from the log
0045 cat test_log1.log | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9][0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9][0-9]:[0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9][0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9][0-9]:[0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9]:[0-9][0-9]//g' | sed 's/EXECTIME (string) : 20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]-[0-9]:[0-9]:[0-9]//g' > test_log2.log
0046
0047 mv test_log2.log test_log1.log
0048 cat test_log1.log
0049 popd
0050