ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/cmssw-validation.spec
(Generate patch)

Comparing COMP/CMSDIST/cmssw-validation.spec (file contents):
Revision 1.1 by davidlt, Fri Jan 27 09:09:22 2012 UTC vs.
Revision 1.4 by eulisse, Mon Jan 30 17:37:26 2012 UTC

# Line 1 | Line 1
1 < ### RPM cms cmssw-addontests 1.0.0
2 <
1 > ### RPM cms cmssw-validation 1.0.0
2   Requires: cmssw SCRAMV1
3   Source: none
4  
# Line 10 | Line 9 | Source: none
9   cd $CMSSW_VERSION
10   %scram build clean
11   eval `%scram runtime -sh`
12 < rsync -av $CMSSW_RELEASE_BASE/src/ src/
12 > #rsync -av $CMSSW_RELEASE_BASE/src/ src/
13  
14   %build
15   cd $CMSSW_VERSION
16   eval `%scram runtime -sh`
17 < mkdir test-addontests
18 < cd test-addontests
19 <
20 < BEGIN_TT=`date +%s`
21 < addOnTests.py -j %compiling_processes &> result.log
22 < END_TT=`date +%s`
23 < DIFF_TT=$((END_TT - BEGIN_TT))
24 <
25 < PASSED_TESTS=`cat result.log | awk '/tests passed/ { print $1 }'`
26 < FAILED_TESTS=`cat result.log | awk '/tests passed/ { print $4 }'`
28 <
29 < # If some of the tests failed, return error
30 < if [ "$FAILED_TESTS" -ne 0 ]; then
31 <  exit 1
32 < fi
17 > rm -rf %i/test-addontests %i/test-runTheMatrix
18 > mkdir -p %i/test-addontests %i/test-runTheMatrix
19 > pushd %i/test-addontests
20 >  time addOnTests.py -j %compiling_processes &> result.log
21 > popd
22 >
23 > # Do runTheMatrix.py (let's start with -s)
24 > pushd %i/test-runTheMatrix
25 >  time runTheMatrix.py -s
26 > popd
27  
28   # TODO: Add logs to the package or send them directly to the DB.
29   %install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines