/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondCore/PopCon/test/runPopConExamples_new
49 строк
2 KB
Giulio Eulisse
Snapshot of CMSSW_6_2_0_pre8.
26 июн 2013, 18:12
26 июн 2013, 18:12
214ab73
Код
Авторство
О чём код?
#run popcon example1 # put your firstsince value after xxx mkdir testPopCon pushd testPopCon cp $LOCALRT/src/CondCore/PopCon/test/PopConExample1_template.py PopConExample1_template.py sed -i 's/yyy/3/g' PopConExample1_template.py cat PopConExample1_template.py | sed 's/xxx/3/g' > tmp_PopConExample.py echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/3/g' cmsRun tmp_PopConExample.py rm tmp_PopConExample.py # if you want to proove again... otherwise skip to db inspection # put your firstsince value after xxx cat PopConExample1_template.py | sed 's/xxx/15/g' > tmp_PopConExample.py echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/15/g' cmsRun tmp_PopConExample.py rm tmp_PopConExample.py # if you want to proove again... otherwise skip to db inspection # put your firstsince value after xxx cat PopConExample1_template.py | sed 's/xxx/45/g' > tmp_PopConExample.py echo "populate xxx, xxx+10, xxx+20" | sed 's/xxx/45/g' cmsRun tmp_PopConExample.py rm tmp_PopConExample.py echo "inspect db" cmscond_list_iov -c sqlite_file:pop_test.db -a echo "get iov details" cmscond_list_iov -c sqlite_file:pop_test.db -t Example_tag #note: tag-name, log-name and db-name must be the same as in the cfg file echo "dump log" cmscond_logdb_dump -c sqlite_file:log.db > test_log1.log # moving the EXECTIME information from the log 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 mv test_log2.log test_log1.log cat test_log1.log popd