mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Christophe Sovant
14.30.2008 d80597d462cd581df12ac8d5c9b01e8b98999e90
Fix compilation problem for SNMP tests
5 files modified
34 ■■■■■ changed files
opends/tests/functional-tests/testcases/snmp/snmp_trap_defaultconf.xml 1 ●●●● patch | view | raw | blame | history
opends/tests/shared/functions/snmp.xml 4 ●●●● patch | view | raw | blame | history
opends/tests/shared/functions/stafcmd.xml 6 ●●●● patch | view | raw | blame | history
opends/tests/shared/functions/topology.xml 10 ●●●● patch | view | raw | blame | history
opends/tests/shared/functions/utils.xml 13 ●●●● patch | view | raw | blame | history
opends/tests/functional-tests/testcases/snmp/snmp_trap_defaultconf.xml
@@ -81,6 +81,7 @@
                  <call function="'SNMPTrapListener'">
                    {
                    'location'          : STAF_REMOTE_HOSTNAME ,
                    'snmpHost'          : DIRECTORY_INSTANCE_HOST ,
                    'snmpTrapPort'      : SNMP_TRAP_PORT ,
                    'snmpTrapCommunity' : 'OpenDS' ,
opends/tests/shared/functions/snmp.xml
@@ -392,10 +392,10 @@
        { 
        'location' : location ,
        'type'     : 'STRING',
        'name'     : 'STAF/Env/LD_LIBRARY_PATH'
        'name'     : 'STAF/Env/STAF_DIR'
        }
      </call>                                                       
      <script>jstaf_jarfile = '%s/JSTAF.jar' % STAFResult</script>
      <script>jstaf_jarfile = '%s/lib/JSTAF.jar' % STAFResult</script>
      
      <!-- Build the command -->
      <script>
opends/tests/shared/functions/stafcmd.xml
@@ -784,7 +784,7 @@
  </function>
  
  <!-- Send event -->
  <function name="SendEvent">
  <function name="SendEvent" scope="local">
    <function-prolog>
      Send event.
    </function-prolog>
@@ -817,7 +817,7 @@
  </function> 
  <!-- Wait event -->
  <function name="WaitEvent">
  <function name="WaitEvent" scope="local">
    <function-prolog>
      Wait event.
    </function-prolog>
@@ -850,7 +850,7 @@
  </function>
  
  <!-- Delete event -->
  <function name="DeleteEvent">
  <function name="DeleteEvent" scope="local">
    <function-prolog>
      Delete event.
    </function-prolog>
opends/tests/shared/functions/topology.xml
@@ -281,7 +281,7 @@
            'extension'  : 'class'
            }
          </call>
          <if expr="STAXResult != ''">
          <if expr="len(STAXResult) == 0">
            <sequence>
              <!---   Compile ldap java files on controler host -->
              <message>
@@ -334,7 +334,7 @@
            'attribute' : 'TYPE'
            }
          </call>
          <!-- 'SNMP_OPENDS_JARFILE' exists so we can continue -->
          <!-- 'SNMP_OPENDMK_LIBDIR' exists so we can continue with SNMP -->
          <if expr="RC != 48">
            <sequence>          
              <!---   Check if snmp java files are already compiled -->
@@ -345,7 +345,7 @@
                'extension'  : 'class'
                }
              </call>
              <if expr="STAXResult != ''">
              <if expr="len(STAXResult) == 0">
                <sequence>
                  <!--- Install DS Copy zip file -->
                  <message>
@@ -375,10 +375,10 @@
                    { 
                    'location' : STAXServiceMachine,
                    'type'     : 'STRING',
                    'name'     : 'STAF/Env/LD_LIBRARY_PATH'
                    'name'     : 'STAF/Env/STAF_DIR'
                    }
                  </call>                                                       
                  <script>jstaf_jarfile = '%s/JSTAF.jar' % STAFResult</script>
                  <script>jstaf_jarfile = '%s/lib/JSTAF.jar' % STAFResult</script>
                  
                  <!---   Compile snmp java files on controler host -->
                  <message>
opends/tests/shared/functions/utils.xml
@@ -2014,7 +2014,16 @@
    </function-map-args>
    
    <sequence>
      <call function="'ResolveVar'" >
        {
        'location' : location ,
        'type'     : 'STRING',
        'name'     : 'STAF/Env/JAVA_HOME'
        }
      </call>
      <script>local_java_home = '%s' % STAFResult</script>
      <!-- Build the command -->
      <script>
        if classpath:
          cp = 'CLASSPATH=%s:.' % classpath
@@ -2025,7 +2034,7 @@
          cp = cp.replace(':', ';')
          
        if location == STAXServiceMachine:
          cmd = 'javac'
          cmd = '%s/bin/javac' % local_java_home
          env = ['%s' % cp]        
        else:
          cmd = '%s/bin/javac' % JAVA_HOME