Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
e91e03ec
Commit
e91e03ec
authored
Sep 04, 2012
by
Christoph Wissing
Browse files
Prepare OSG check for CVMFS, some cosmetics.
parent
b21e50c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-swinst
View file @
e91e03ec
...
...
@@ -45,17 +45,32 @@ echo "</pre>"
echo
"<h2>Checking software directory for CMS VO</h2>"
if
[
-n
"
$OSG_
APP
"
]
;
then
if
[
-n
"
$OSG_
GRID
"
]
;
then
isOSG
=
1
SW_DIR
=
$OSG_APP
/cmssoft/cms
echo
"<p>Checking variable:
\$
OSG_APP/cmssoft/cms=
$OSG_APP
/cmssoft/cms</p>"
echo
"<p>OSG Middleware</p>"
if
[
-d
$OSG_APP
/cmssoft/cms
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
echo
"<p>Checking variable:
\$
OSG_APP/cmssoft/cms=
$OSG_APP
/cmssoft/cms</p>"
elif
[
-d
$CVMFS
/cms.cern.ch
]
;
then
SW_DIR
=
$CVMFS
/cms.cern.ch
echo
"<p>Checking variable:
\$
CVMFS/cms.cern.ch=
$CVMFS
/cms.cern.ch</p>"
elif
[
-d
/cvmfs/cms.cern.ch
]
;
then
SW_DIR
=
/cvmfs/cms.cern.ch
echo
"<p>Checking fallback location: /cvmfs/cms.cern.ch</p>"
else
echo
"<p>"
echo
"Cannot find CMS software area."
echo
"</p>"
exit
$SAME_ERROR
fi
elif
[
-n
"
$VO_CMS_SW_DIR
"
]
;
then
isEGEE
=
1
echo
"EMI or ARC middleware"
SW_DIR
=
$VO_CMS_SW_DIR
echo
"<p>Checking variable:
\$
VO_CMS_SW_DIR=
$VO_CMS_SW_DIR
</p>"
else
echo
"<p><strong>"
echo
"ERROR: Neither VO_CMS_SW_DIR nor
OSG_APP
defined"
echo
"ERROR: Neither VO_CMS_SW_DIR nor
proper OSG variables
defined"
echo
"</strong></p>"
exit
$SAME_ERROR
fi
...
...
@@ -120,9 +135,9 @@ source $SW_DIR/cmsset_default.sh > /dev/null
echo
"Default SCRAM arch:
$SCRAM_ARCH
"
echo
"</pre>"
archs_defined
=
'slc5_ia32_gcc434 slc5_amd64_gcc434 slc5_amd64_gcc462'
archs_to_test
=
'slc5_amd64_gcc434 slc5_
ia32
_gcc4
34
'
archs_to_test
=
'slc5_amd64_gcc434 slc5_
amd64
_gcc4
62
'
swok
=
0
for
arch
in
$archs_
defined
;
do
for
arch
in
$archs_
to_test
;
do
if
[
$swok
!=
1
]
;
then
export
SCRAM_ARCH
=
$arch
export
BUILD_ARCH
=
$arch
...
...
@@ -220,9 +235,10 @@ do
echo
"<p>OK</p>"
echo
"<p>"
if
[
-d
$CMS_PATH
/
${
arch
}
/cms/cms-common/1.0
]
;
then
echo
"New cms-common RPM already installed"
echo
"Recent cms-common RPM already installed:"
ls
-d
$CMS_PATH
/
${
arch
}
/cms/cms-common/1.0/
*
|
grep
-v
etc
else
echo
"Old cms-common RPM installed"
echo
"Old
style
cms-common RPM installed
.
"
fi
echo
"</p>"
done
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment