1 |
< |
### RPM cms cmssw-addontests 1.0.0 |
2 |
< |
|
3 |
< |
Requires: cmssw SCRAMV1 |
1 |
> |
### RPM cms cmssw-validation 1.0.0 |
2 |
> |
Requires: cmssw SCRAMV1 local-cern-siteconf |
3 |
|
Source: none |
4 |
|
|
5 |
|
%define scram $SCRAMV1_ROOT/bin/scram --arch %cmsplatf |
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 |