1 |
< |
### RPM cms cmssw-addontests 1.0.0 |
1 |
> |
### RPM cms cmssw-validation 1.0.0 |
2 |
|
|
3 |
|
Requires: cmssw SCRAMV1 |
4 |
|
Source: none |
10 |
|
cd $CMSSW_VERSION |
11 |
|
%scram build clean |
12 |
|
eval `%scram runtime -sh` |
13 |
< |
rsync -av $CMSSW_RELEASE_BASE/src/ src/ |
13 |
> |
#rsync -av $CMSSW_RELEASE_BASE/src/ src/ |
14 |
|
|
15 |
|
%build |
16 |
|
cd $CMSSW_VERSION |
17 |
|
eval `%scram runtime -sh` |
18 |
+ |
rm -rf test-addontests |
19 |
|
mkdir test-addontests |
20 |
|
cd test-addontests |
21 |
|
|
27 |
|
PASSED_TESTS=`cat result.log | awk '/tests passed/ { print $1 }'` |
28 |
|
FAILED_TESTS=`cat result.log | awk '/tests passed/ { print $4 }'` |
29 |
|
|
29 |
– |
# If some of the tests failed, return error |
30 |
– |
if [ "$FAILED_TESTS" -ne 0 ]; then |
31 |
– |
exit 1 |
32 |
– |
fi |
33 |
– |
|
30 |
|
# TODO: Add logs to the package or send them directly to the DB. |
31 |
|
%install |
32 |
|
# NOP |