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
e43ba596
Commit
e43ba596
authored
Sep 12, 2012
by
Andrea Sciaba
Browse files
New OSG sw discovery
parent
19326b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
SiteTests/testjob/tests/CE-cms-env
View file @
e43ba596
...
...
@@ -46,16 +46,26 @@ echo
# Software area definition and existence
isEGEE
=
0
if
[
-n
"
$OSG_APP
"
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
if
[
-n
"
$OSG_GRID
"
]
;
then
[
-f
$OSG_GRID
/setup.sh
]
&&
source
$OSG_GRID
/setup.sh
if
[
-d
$OSG_APP
/cmssoft/cms
]
;
then
SW_DIR
=
$OSG_APP
/cmssoft/cms
elif
[
-d
$CVMFS
/cms.cern.ch
]
;
then
SW_DIR
=
$CVMFS
/cms.cern.ch
elif
[
-d
/cvmfs/cms.cern.ch
]
;
then
SW_DIR
=
/cvmfs/cms.cern.ch
else
echo
"ERROR: Cannot find CMS software in OSG node"
echo
"summary: SW_DIR_UNDEF"
exit
$SAME_ERROR
fi
echo
"SwArea:
$SW_DIR
"
elif
[
-n
"
$VO_CMS_SW_DIR
"
]
;
then
isEGEE
=
1
SW_DIR
=
$VO_CMS_SW_DIR
echo
"SwArea:
$SW_DIR
"
else
echo
"ERROR: Neither VO_CMS_SW_DIR nor OSG_
APP
defined"
echo
"ERROR: Neither VO_CMS_SW_DIR nor OSG_
GRID
defined"
echo
"summary: SW_DIR_UNDEF"
exit
$SAME_ERROR
fi
...
...
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