Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90653 invoked from network); 6 Oct 2005 18:03:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 18:03:48 -0000 Received: (qmail 14687 invoked by uid 500); 6 Oct 2005 18:03:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 14648 invoked by uid 500); 6 Oct 2005 18:03:47 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 14637 invoked by uid 99); 6 Oct 2005 18:03:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 11:03:47 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of m.v.lunteren@gmail.com designates 64.233.162.201 as permitted sender) Received: from [64.233.162.201] (HELO zproxy.gmail.com) (64.233.162.201) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 11:03:51 -0700 Received: by zproxy.gmail.com with SMTP id 12so264683nzp for ; Thu, 06 Oct 2005 11:03:26 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=LWvZd/KWnDanrjal4bqFeSFOj+YoB9WhoGHW16aKtSZC0GHyTZpQSXged1hr6FAOmukZxR9UASj+oAIzOmTPSb4zWIw69/rVJzifA6o1zKrm8M3yXS0lNyeISydamk2jE+p59/P1Xe61g8weJrwY/lETMq1+HF7iBAz2BCVcMNE= Received: by 10.36.250.40 with SMTP id x40mr562614nzh; Thu, 06 Oct 2005 11:03:26 -0700 (PDT) Received: by 10.36.13.20 with HTTP; Thu, 6 Oct 2005 11:03:25 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2005 11:03:25 -0700 From: Myrna van Lunteren Reply-To: Myrna van Lunteren To: derbydev Subject: proposed modification current test harness MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19643_8166849.1128621805999" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_19643_8166849.1128621805999 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, As a result of a comment by Dan in reference to DERBY-575, http://mail-archives.apache.org/mod_mbox/db-derby-dev/200509.mbox/%3c339246= 018.1127141188732.JavaMail.jira@ajax.apache.org%3e I am proposing the following modification to the current test harness: - any read of .properties files and the like will be in original encoding effectively, this means to add 'ISO-8859-1' in a number of places where a InputStreamReader is used in the test harness classes. - the .out file will be copied into the local encoding and this will be use= d in the diff. I suggest giving this copied master file extension .tmpmstr - which is wha= t happens with networkserver tests. Code may need to be added to remove the copied master if the test passes. This approach has the following benefit: - on a non-ASCII system like zOS the tests can still be run without requiring all text files to be converted first, but the generated ouptput and .diff can still be looked at and compared with expected output by a human - the expected output is right there to compare with for a human investigating a failure, even when you're running with jars. Note that networkserver already copies the expected output. - I am also wondering if this might get around harness bug DERBY-244. I'd like to find out if anyone is opposed to this idea. I know we'd like to get JUnit tests going, but I think this is still a worthwhile change. Thx, Myrna ------=_Part_19643_8166849.1128621805999 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
 
As a result of a comment by Dan in reference to DERBY-575,
I am proposing the following modification to the current test harness:=
 
- any read of .properties files and the like will be in original encod= ing
    effectively, this means to add 'ISO-8859-1' in a nu= mber of places where a InputStreamReader is used in the test harness c= lasses.
- the .out file will be copied into the local encoding and this will b= e used in the diff.
    I suggest giving this copied master file exten= sion .tmpmstr - which is what happens with networkserver tests.
    Code may need to be added to re= move the copied master if the test passes.
 
This approach has the following benefit:
    - on a non-ASCII system like zOS the tests can= still be run without requiring all text files to be converted first, but t= he generated ouptput and .diff can still be looked at and compared wit= h expected output by a human=20
    - the expected output is right there to compare wit= h for a human investigating a failure, even when you're running with jars. = Note that networkserver already copies the expected output.
    - I am also wondering if this might get around harn= ess bug DERBY-244.
 
I'd like to find out if anyone is opposed to this idea.
I know we'd like to get JUnit tests going, but I think this is still a= worthwhile change.
 
Thx,
Myrna
 
------=_Part_19643_8166849.1128621805999--