446N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
446N/A<!--
446N/A ! CDDL HEADER START
446N/A !
446N/A ! The contents of this file are subject to the terms of the
446N/A ! Common Development and Distribution License, Version 1.0 only
446N/A ! (the "License"). You may not use this file except in compliance
446N/A ! with the License.
446N/A !
446N/A ! You can obtain a copy of the license at
446N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
446N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
446N/A ! See the License for the specific language governing permissions
446N/A ! and limitations under the License.
446N/A !
446N/A ! When distributing Covered Code, exclude this CDDL HEADER in each
446N/A ! file and exclude the License file at
446N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
446N/A ! add the following below this CDDL HEADER, with the fields enclosed
873N/A ! by brackets "[]" replaced with your own identifying information:
446N/A ! Portions Copyright [yyyy] [name of copyright owner]
446N/A !
446N/A ! CDDL HEADER END
446N/A !
5061N/A ! Copyright 2006-2010 Sun Microsystems, Inc.
446N/A ! -->
446N/A<stax>
446N/A <defaultcall function="main_backends"/>
3816N/A <function name="main_backends" scope="local">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
946N/A <sequence>
4618N/A
4618N/A <try>
946N/A <block name="'backends'">
946N/A <sequence>
3816N/A
3816N/A <!--- Load the job environment for the test group execution -->
3816N/A <import machine="STAF_LOCAL_HOSTNAME"
3816N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
3816N/A <call function="'loadJobEnvironment'">
3816N/A { 'parent' : STAXParentID }
3816N/A </call>
3816N/A
946N/A <script>
946N/A CurrentTestPath['group']='backends'
946N/A </script>
946N/A <call function="'testGroup_Preamble'"/>
3816N/A
3816N/A <!-- List of backends test suites to run -->
3816N/A <script>
4618N/A suiteList = []
4618N/A suiteList.append('import')
4775N/A suiteList.append('import-tasks')
5061N/A if not IPS_PKG:
5061N/A suiteList.append('export')
4865N/A suiteList.append('export-tasks')
4684N/A suiteList.append('backup')
4704N/A suiteList.append('restore')
4775N/A suiteList.append('backup-tasks')
4775N/A suiteList.append('restore-tasks')
4751N/A suiteList.append('dbparams')
4673N/A </script>
4673N/A
4673N/A <!-- Run the test suites -->
4673N/A <iterate var="_suite" in="suiteList">
4673N/A <sequence>
4673N/A <try>
4673N/A <sequence>
4673N/A <import machine="STAF_LOCAL_HOSTNAME"
4673N/A file="'%s/testcases/backends/%s/%s.xml' % (TESTS_DIR,_suite,_suite)"/>
4673N/A <call function="'main_%s' % _suite" />
4673N/A </sequence>
4673N/A <catch exception="'STAFException.TestSuite.SetupException'">
4673N/A <sequence>
4673N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
4673N/A </sequence>
4673N/A </catch>
4673N/A <catch exception="'STAFException.TestSuite.MainException'">
4673N/A <sequence>
4673N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
4673N/A </sequence>
4673N/A </catch>
4673N/A <catch exception="'STAFException.TestSuite.CleanupException'">
4673N/A <sequence>
4673N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
4673N/A </sequence>
4673N/A </catch>
4673N/A </try>
4673N/A </sequence>
4673N/A </iterate>
4775N/A
946N/A </sequence>
946N/A </block>
4618N/A <catch exception="'STAXException.TestGroupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Execution of Test Group Failed'</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <finally>
4618N/A <!-- Test Group postamble -->
4618N/A <call function="'testGroup_Postamble'"/>
4618N/A </finally>
4618N/A </try>
4618N/A
946N/A </sequence>
446N/A </function>
446N/A</stax>