| | |
| | | </else> |
| | | </if> |
| | | |
| | | <!--- Import required shared xml libraries --> |
| | | <import machine="'%s' % (STAF_LOCAL_HOSTNAME)" |
| | | file="'%s/stafcmd.xml' % (TESTS_FUNCTIONS_DIR)" /> |
| | | |
| | | <!-- Get Directory Server Variables --> |
| | | <call function="'GetVar'"> |
| | | { 'location' : STAF_REMOTE_HOSTNAME, |
| | | 'type' : 'shared', |
| | | 'variable' : 'ServerInfo' } |
| | | </call> |
| | | |
| | | <if expr="RC != 0"> |
| | | <script> |
| | | STAFResult='{}' |
| | | </script> |
| | | </if> |
| | | |
| | | <!-- Build the Servers Information Dictionary --> |
| | | <script> |
| | | |
| | | ServersInfoDict=eval(STAFResult) |
| | | |
| | | ServerVersion='unknown' |
| | | ServerBuildId='unknown' |
| | | ServerJavaVersion='unknown' |
| | | ServerJavaVendor='unknown' |
| | | ServerJVMVersion='unknown' |
| | | ServerJVMVendor='unknown' |
| | | ServerSystemOS='unknown' |
| | | ServerSystemName='unknown' |
| | | ServerSvnRevision='unknown' |
| | | |
| | | if ServersInfoDict.has_key('%s/%s' % (TMPDIR,OPENDSNAME)): |
| | | ServerInfoDict=ServersInfoDict['%s/%s' % (TMPDIR,OPENDSNAME)] |
| | | |
| | | ServerInfoKey='server version' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerVersion=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='server buildid' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerBuildId=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='java version' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerJavaVersion=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='java vendor' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerJavaVendor=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='jvm version' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerJVMVersion=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='jvm vendor' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerJVMVendor=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='system os' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerSystemOS=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='system name' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerSystemName=ServerInfoDict[ServerInfoKey] |
| | | |
| | | ServerInfoKey='svn revision' |
| | | if ServerInfoDict.has_key(ServerInfoKey): |
| | | ServerSvnRevision=ServerInfoDict[ServerInfoKey] |
| | | |
| | | else: |
| | | ServerInfoDict='No key found (%s/%s)' % (TMPDIR,OPENDSNAME) |
| | | |
| | | </script> |
| | | |
| | | <message>'Server= %s' % ServerInfoDict </message> |
| | | |
| | | <stafcmd name="'STAF Command: Log Query All'"> |
| | | <location>'%s' % STAF_LOCAL_HOSTNAME </location> |
| | | <service>'log'</service> |
| | |
| | | xmlfh.write('<qa>\n') |
| | | xmlfh.write(' <functional-tests>\n') |
| | | xmlfh.write(' <identification>\n') |
| | | xmlfh.write(' <version>\n') |
| | | xmlfh.write(' %s\n' % ServerVersion) |
| | | xmlfh.write(' </version>\n') |
| | | xmlfh.write(' <buildid>\n') |
| | | xmlfh.write(' %s\n' % ServerBuildId) |
| | | xmlfh.write(' </buildid>\n') |
| | | xmlfh.write(' <revision>\n') |
| | | xmlfh.write(' %s\n' % ServerSvnRevision) |
| | | xmlfh.write(' </revision>\n') |
| | | xmlfh.write(' <platform>\n') |
| | | xmlfh.write(' %s\n' % TEST_OS_STRING) |
| | | xmlfh.write(' %s\n' % ServerSystemOS) |
| | | xmlfh.write(' </platform>\n') |
| | | xmlfh.write(' <hardware>\n') |
| | | xmlfh.write(' %s\n' % TEST_HW_STRING) |
| | | xmlfh.write(' </hardware>\n') |
| | | xmlfh.write(' <jvm>\n') |
| | | xmlfh.write(' %s\n' % TEST_JVM_STRING) |
| | | xmlfh.write(' </jvm>\n') |
| | | xmlfh.write(' <jvm-version>\n') |
| | | xmlfh.write(' %s\n' % ServerJVMVersion) |
| | | xmlfh.write(' </jvm-version>\n') |
| | | xmlfh.write(' <jvm-vendor>\n') |
| | | xmlfh.write(' %s\n' % ServerJVMVendor) |
| | | xmlfh.write(' </jvm-vendor>\n') |
| | | xmlfh.write(' </identification>\n') |
| | | xmlfh.write(' <results>\n') |
| | | </script> |