2454N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2887N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
2454N/A<!--
2454N/A ! CDDL HEADER START
2454N/A !
2454N/A ! The contents of this file are subject to the terms of the
2454N/A ! Common Development and Distribution License, Version 1.0 only
2454N/A ! (the "License"). You may not use this file except in compliance
2454N/A ! with the License.
2454N/A !
2454N/A ! You can obtain a copy of the license at
2454N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
2454N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2454N/A ! See the License for the specific language governing permissions
2454N/A ! and limitations under the License.
2454N/A !
2454N/A ! When distributing Covered Code, include this CDDL HEADER in each
2454N/A ! file and include the License file at
2454N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2454N/A ! add the following below this CDDL HEADER, with the fields enclosed
2454N/A ! by brackets "[]" replaced with your own identifying information:
2454N/A ! Portions Copyright [yyyy] [name of copyright owner]
2454N/A !
2454N/A ! CDDL HEADER END
2454N/A !
4618N/A ! Copyright 2007-2009 Sun Microsystems, Inc.
2454N/A ! -->
3188N/A
3188N/A
3188N/A<!--
3188N/A Place group-specific test information here.
3188N/A #@TestGroupName Plugins
3188N/A #@TestGroupPurpose Test the directory server Pluggins
3188N/A-->
2454N/A<stax>
4618N/A <defaultcall function="main_plugins" />
2454N/A <function name="main_plugins">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
4618N/A
2454N/A <sequence>
4618N/A <try>
4618N/A <block name="'plugins'">
4618N/A <sequence>
4618N/A <!--- Load the job environment for the test group execution -->
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/environment.xml' % TESTS_FUNCTIONS_DIR" />
4618N/A <call function="'loadJobEnvironment'">
4618N/A { 'parent' : STAXParentID }
4618N/A </call>
4618N/A <script>
4618N/A CurrentTestPath['group']='plugins'
4618N/A _group=CurrentTestPath['group']
4618N/A </script>
4618N/A <call function="'testGroup_Preamble'" />
4618N/A <script>
4618N/A suiteList = []
4618N/A suiteList.append('7bit')
4618N/A suiteList.append('uniqueness')
4618N/A suiteList.append('lastmod')
4618N/A suiteList.append('entryUUID')
4618N/A suiteList.append('refint')
4618N/A </script>
4618N/A
4618N/A <!-- Run the test suites -->
4618N/A <iterate var="_suite" in="suiteList">
4618N/A <sequence>
4618N/A <try>
4618N/A <sequence>
4618N/A <import machine="STAF_LOCAL_HOSTNAME"
4618N/A file="'%s/testcases/%s/%s_%s.xml' % (TESTS_DIR,_group,_group,_suite)"/>
4618N/A <call function="'%s_%s' % (_group,_suite)" />
4618N/A </sequence>
4618N/A <catch exception="'STAFException.TestSuite.SetupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Setup of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.MainException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Main part of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A <catch exception="'STAFException.TestSuite.CleanupException'">
4618N/A <sequence>
4618N/A <message log="1" level="'fatal'">'Cleanup of test suite %s failed.' % _suite</message>
4618N/A </sequence>
4618N/A </catch>
4618N/A </try>
4618N/A </sequence>
4618N/A </iterate>
4618N/A
4618N/A </sequence>
4618N/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>
2454N/A </sequence>
2454N/A </function>
4618N/A</stax>