forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw-validation2.spec
44 lines (39 loc) · 1.45 KB
/
cmssw-validation2.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
### RPM cms cmssw-validation 1.0.0
Requires: cmssw SCRAMV1
BuildRequires: local-cern-siteconf
%define name1 1937
%define moduleName LogParser
%define url HTMLFiles/
Source: svn://svn.cern.ch/reps/CMSIntBld/tags/LogParser/parser?scheme=svn+ssh&revision=%{name1}&module=%{moduleName}&output=/%{moduleName}.tar.gz
# Template spec file for implementing IB tasks.
# Execute your test (runTheMatrix.py in this case) and copy all of what
# you want to expose to the user into %cmsroot/WEB/$CMSSW_VERSION/
# This will be automatically uploaded to the repository in the WEB area.
%define scram $SCRAMV1_ROOT/bin/scram --arch %cmsplatf
%prep
%setup -n %{moduleName}
cd ..
%scram project CMSSW $CMSSW_VERSION
cd $CMSSW_VERSION
%scram build clean
eval `%scram runtime -sh`
%build
cd ..
cd $CMSSW_VERSION
UPLOAD_AREA=%cmsroot/WEB/ib-results/$CMSSW_VERSION/%cmsplatf
TEST_AREA=%i/workarea
eval `%scram runtime -sh`
rm -rf $TEST_AREA
mkdir -p $TEST_AREA
mkdir -p $UPLOAD_AREA
WORKFLOWS=`runTheMatrix.py -n | grep -e '^[0-9]\+[.]' | cut -f1 -d\ | tail -n 100 | head -n 100 | tr '\n' , | sed -e 's/,$//'`
pushd $TEST_AREA
time runTheMatrix.py -l $WORKFLOWS -j %compiling_processes 2>&1 >$UPLOAD_AREA/result1.log
popd
rm -rf $TEST_AREA
#python %{moduleName}/parseLogs.py -f %i/test-runTheMatrix/runall-report-step123-.log -d %{url}dbname.db -o %{url}tables.html -v $CMSSW_VERSION &> parseLog.log
# TODO: Add logs to the package or send them directly to the DB.
%install
# NOP
%post
# NOP