3622N/A<?xml version="1.0" encoding="UTF-8" standalone="no"?>
3622N/A<!DOCTYPE stax SYSTEM "/shared/stax.dtd">
3622N/A<!--
3622N/A ! CDDL HEADER START
3622N/A !
3622N/A ! The contents of this file are subject to the terms of the
3622N/A ! Common Development and Distribution License, Version 1.0 only
3622N/A ! (the "License"). You may not use this file except in compliance
3622N/A ! with the License.
3622N/A !
3622N/A ! You can obtain a copy of the license at
3622N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
3622N/A ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
3622N/A ! See the License for the specific language governing permissions
3622N/A ! and limitations under the License.
3622N/A !
3622N/A ! When distributing Covered Code, exclude this CDDL HEADER in each
3622N/A ! file and exclude the License file at
3622N/A ! trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
3622N/A ! add the following below this CDDL HEADER, with the fields enclosed
3622N/A ! by brackets "[]" replaced with your own identifying information:
3622N/A ! Portions Copyright [yyyy] [name of copyright owner]
3622N/A !
3622N/A ! CDDL HEADER END
3622N/A !
3622N/A ! Copyright 2007-2008 Sun Microsystems, Inc.
3622N/A ! -->
3622N/A<stax>
3622N/A
3622N/A <defaultcall function="main_i18n"/>
3622N/A
3622N/A <function name="main_i18n">
3816N/A <function-list-args>
3816N/A <function-required-arg name="STAXParentID"/>
3816N/A </function-list-args>
3622N/A
3622N/A <sequence>
3622N/A
3622N/A <block name="'i18n'">
3622N/A
3622N/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>
3716N/A
3716N/A <!--
3716N/A #@TestGroupName i18n
3716N/A #@TestGroupPurpose To test the i18n capability of the product.
3716N/A -->
3622N/A
3622N/A <script>
3622N/A CurrentTestPath['group']='i18n'
3622N/A </script>
3622N/A
3622N/A <call function="'testGroup_Preamble'"/>
3622N/A
3716N/A <message>
3716N/A 'Setting up LANG and LC_ALL environment variables'
3716N/A </message>
3716N/A
3716N/A <call function="'GetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : 'STAF/Env/LC_ALL'
3716N/A }
3716N/A </call>
3716N/A <script>
3716N/A lc_all=STAFResult
3716N/A </script>
3716N/A
3716N/A <call function="'GetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : 'STAF/Env/LANG'
3716N/A }
3716N/A </call>
3716N/A <script>
3716N/A lang=STAFResult
3716N/A </script>
3716N/A
3716N/A <call function="'SetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : 'STAF/Env/LC_ALL=en_US.ISO8859-1'
3716N/A }
3716N/A </call>
3716N/A
3716N/A <call function="'SetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : 'STAF/Env/LANG=en_US.ISO8859-1'
3716N/A }
3716N/A </call>
3716N/A
3716N/A <call function="'GetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : 'STAF/Env/LANG'
3716N/A }
3716N/A </call>
3716N/A <script>
3716N/A Newlang=STAFResult
3716N/A </script>
3716N/A
3716N/A <message>
3716N/A 'LANG is now set to %s ' % Newlang
3716N/A </message>
3716N/A
3622N/A <import machine="STAF_LOCAL_HOSTNAME"
3622N/A file="'%s/testcases/i18n/i18n_setup.xml' % (TESTS_DIR)"/>
3622N/A <call function="'i18n_setup'" />
3622N/A
3622N/A <import machine="STAF_LOCAL_HOSTNAME"
3622N/A file="'%s/testcases/i18n/i18n_8bit_createbackend.xml'
3622N/A % (TESTS_DIR)"/>
3622N/A <call function="'main_8bit_createbackend'" />
3622N/A
3622N/A <import machine="STAF_LOCAL_HOSTNAME"
3622N/A file="'%s/testcases/i18n/i18n_8bit_schemaExtension.xml'
3622N/A % (TESTS_DIR)"/>
3622N/A <call function="'main_8bit_schemaExtension'" />
4865N/A
4865N/A <if expr="not is_windows_platform(STAF_REMOTE_HOSTNAME)">
4865N/A <sequence>
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/testcases/i18n/i18n_8bit_authentication.xml'
4865N/A % (TESTS_DIR)"/>
4865N/A <call function="'main_8bit_authentication'" />
4865N/A
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/testcases/i18n/i18n_8bit_dataComparison.xml'
4865N/A % (TESTS_DIR)"/>
4865N/A <call function="'main_8bit_dataComparison'" />
4865N/A
4865N/A <import machine="STAF_LOCAL_HOSTNAME"
4865N/A file="'%s/testcases/i18n/i18n_8bit_LDAPcmds.xml'
4865N/A % (TESTS_DIR)"/>
4865N/A <call function="'main_8bit_LDAPcmds'" />
4865N/A </sequence>
4865N/A </if>
4865N/A
3786N/A <import machine="STAF_LOCAL_HOSTNAME"
3622N/A file="'%s/testcases/i18n/i18n_cleanup.xml' % (TESTS_DIR)"/>
3622N/A <call function="'i18n_cleanup'" />
3622N/A
3716N/A
3716N/A <message>
3716N/A 'Restoring LANG and LC_ALL environment variables'
3716N/A </message>
3716N/A
3716N/A <call function="'SetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : lc_all
3716N/A }
3716N/A </call>
3716N/A
3716N/A <call function="'SetVar'">
3716N/A {
3716N/A 'location' : STAF_REMOTE_HOSTNAME ,
3716N/A 'type' : 'system' ,
3716N/A 'variable' : lang
3716N/A }
3716N/A </call>
3716N/A
3716N/A
3622N/A <call function="'testGroup_Postamble'"/>
3622N/A
3622N/A </sequence>
3622N/A
3622N/A </block>
3622N/A
3622N/A </sequence>
3622N/A
3622N/A </function>
3622N/A
3622N/A</stax>