Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 77291 invoked from network); 17 Apr 2006 20:38:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Apr 2006 20:38:19 -0000 Received: (qmail 94361 invoked by uid 500); 17 Apr 2006 20:38:18 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 94328 invoked by uid 500); 17 Apr 2006 20:38:18 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 94318 invoked by uid 99); 17 Apr 2006 20:38:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 13:38:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 13:38:17 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C413E7142C5 for ; Mon, 17 Apr 2006 20:37:19 +0000 (GMT) Message-ID: <16159686.1145306239800.JavaMail.jira@brutus> Date: Mon, 17 Apr 2006 20:37:19 +0000 (GMT+00:00) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-658) test harness improvements required for running on non-ASCII systems In-Reply-To: <362406202.1130466176898.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-658?page=comments#action_12374806 ] Andrew McIntyre commented on DERBY-658: --------------------------------------- Committed 10.2 patch revision 394770 and 10.1 patch with revision 394771. > test harness improvements required for running on non-ASCII systems > ------------------------------------------------------------------- > > Key: DERBY-658 > URL: http://issues.apache.org/jira/browse/DERBY-658 > Project: Derby > Type: Bug > Components: Test > Versions: 10.1.1.0 > Environment: all but especially testing should be done on zOS > Reporter: Myrna van Lunteren > Assignee: Myrna van Lunteren > Priority: Minor > Fix For: 10.1.3.0 > Attachments: DERBY-658_101_20060407_1.diff, DERBY-658_101_20060407_1.stat, DERBY-658_101_20060413.diff, DERBY-658_101_20060413.stat, DERBY-658_102_20060307_1.diff, DERBY-658_102_20060307_1.stat, DERBY-658_102_20060413.diff, DERBY-658_102_20060413.stat, run_resource.patch.txt > > The current functionTests test harness needs adjustment for running on non-ASCII systems like zOS. > Currently, when using derbyTesting.jar built for instance on a windows or linux system on zOS the tests do not run, because the properties and runall files cannot be understood. > Until now, testers on zOS had to unjar derbyTesting.jar, then run native2ascii -Cp 1047 -reverse on all appropriate files (.sql, .txt, .out, .properties, .runall, .asc, .exclude, etc). > This is a labor intensive and error prone process. Furthermore, it causes test failures such as reported with DERBY-575, because tests may assume a certain file to be a specific length, which no longer holds true after the native2ascii conversion. > The test harness should get modified to always read the files in the same encoding. > Note however, that the comparison of actual .out and the master should still result in files readable on the local system, to enable a human to evaluate failures and results. At the same time, this raises the concern that someone might check-in an update to the master with an incorrect encoding. > To resolve the main issue, I propose the following: > - Set the default encoding in the harness. > - for each test > 1) determine if the test encoding is set. We can probably use ij.ui.codeset - otherwise a new property is needed. > Note that this means that .properties, .runall and .exclude files are always read in fixed/default encoding. > 2) read the master/sql files in in the default/fixed encoding unless the encoding property is set for a test > 3) Write the output out in the local encoding (the way is done currently) unless the encoding property is set (if set, write out in that encoding) > 4) Change the code that creates tmpmstr to always apply instead of only for networkserver. tmpmstr files will be created in the local encoding. > 5) Have FileCompare read tmpmstr in in the local encoding for the comparison. > 6) either document that test development/adjustment need to be at least be verified on an ascii system, or add another property that causes a copy of the actual output to be created in the default/fixed encoding. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira