Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
30d01f18
Commit
30d01f18
authored
May 20, 2010
by
wangw
Browse files
add check for SL5
parent
d7e5ce0f
Changes
1
Show whitespace changes
Inline
Side-by-side
SiteTests/FroNtier/tests/CE-cms-frontier
View file @
30d01f18
...
...
@@ -24,6 +24,39 @@ if [ $result != 0 ]
exit
$SAME_ERROR
fi
#
# check for SL5
#
libc25
=
1
if
!
[
-f
$SW_DIR
/common/cmsos
]
;
then
echo
"
$SW_DIR
/common/cmsos not found - force to SL5"
slVersion
=
"slc5"
else
osVersion
=
`
$SW_DIR
/common/cmsos
`
echo
"osVersion from
\$
SW_DIR/common/cmsos ="
$osVersion
cmsarch
=
`
$SW_DIR
/common/cmsarch
`
echo
"scram_arch from
\$
SW_DIR/common/cmsarch="
$cmsarch
slVersion
=
`
echo
$cmsarch
|cut
-d
'_'
-f1
`
fi
echo
"slVersion="
$slVersion
if
!
[
-f
/lib/libc-2.5.so
]
;
then
echo
"libc 2.5 not found, not an SL5 node"
libc25
=
0
fi
if
!
[
$slVersion
==
"slc5"
]
;
then
echo
"<h3> not an SL5 machine </h3>"
exit
$SAME_NOTICE
fi
if
[
$libc25
==
"0"
]
;
then
echo
"<h2>ohibo' ! SL5 but no libc-2.5</h2>"
echo
"osVersion/slVersion ="
$osVersion
$slVersion
echo
"ls -l /lib/libc*"
ls
-l
/lib/libc
*
exit
$SAME_INFO
fi
# Execute main test script
echo
"<h3>Executing the FroNtier test</h3>"
echo
"<pre>"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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