db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu" <sean.xx....@gmail.com>
Subject [testing]-run a test in different mode leads to different result
Date Wed, 18 Oct 2006 05:52:17 GMT
After running the suite of derbyall, i want to recur each single test from
the derbyall_fail.txt
But when i run it in different test mode, like
spesifying the -Dframework=DerbynetClient, it will produce different
results.
It may fail in one mode while pass in another mode.

So my question is how could i konw which mode is the request one?


Run this test in an embedded environment, it will pass:
<<<<<<<<<<<<<<<<<
root$ java -Dverbose=true
org.apache.derbyTesting.functionTests.harness.RunTestlang/triggerGeneral.sql

derby.infolog.append=true
derby.locks.waitTimeout=4
console.encoding:UTF-8 file.encoding:UTF-8 derby.ui.codeset: null
*** Start: triggerGeneral jdk1.4.2 subset 2006-10-18 13:38:18 ***
Appending to derby_tests.policy
About to execute: diff.exec( outName =
/home/qbit/harmony/workspace/derby/result/test/triggerGeneral.out,outDir =
/home/qbit/harmony/workspace/derby/result/test,pwDiff =
java.io.PrintWriter@7e607e60,testOutName = triggerGeneral,frameworkMaster =
,jvmName = jdk15,iminor = 4,useprocess = false,systemdiff = false,canondir =
null,canonpath = null)

MasterFileName = master/triggerGeneral.out
*** End: triggerGeneral jdk1.4.2 subset 2006-10-18 13:38:55 ***
>>>>>>>>>>>>>>>>>

Run this test in a server environment, it will fail:
<<<<<<<<<<<<<<<<<
java -Dverbose=true -Dframework=DerbyNetClient
org.apache.derbyTesting.functionTests.harness.RunTestlang/triggerGeneral.sql

derby.infolog.append=true
derby.locks.waitTimeout=4
console.encoding:UTF-8 file.encoding:UTF-8 derby.ui.codeset: null
*** Start: triggerGeneral jdk1.4.2 subset DerbyNetClient 2006-10-18 13:40:29
***
Appending to derby_tests.policy
Initialize for framework: DerbyNetClient
java -Duser.language=en -Duser.country=US -
Dderby.system.home=/home/qbit/harmony/workspace/derby/result/test/DerbyNetClient/triggerGeneral-
Djava.security.manager -
Djava.security.policy=/home/qbit/harmony/workspace/derby/result/test/derby_tests.policy-
DderbyTesting.codeclasses=file:/home/qbit/harmony/workspace/derby/classes/ -
DderbyTesting.codedir=/home/qbit/harmony/workspace/derby/classes -
DderbyTesting.serverhost=localhost -DderbyTesting.clienthost=localhost
org.apache.derby.drda.NetworkServerControl start
Appending to derby_tests.policy
Attempt to shutdown framework: DerbyNetClient
About to execute: diff.exec( outName =
/home/qbit/harmony/workspace/derby/result/test/DerbyNetClient/triggerGeneral.out,outDir
= /home/qbit/harmony/workspace/derby/result/test/DerbyNetClient,pwDiff =
java.io.PrintWriter@28c828c8,testOutName = triggerGeneral,frameworkMaster =
DerbyNetClient,jvmName = jdk15,iminor = 4,useprocess = false,systemdiff =
false,canondir = null,canonpath = null)

MasterFileName = master/triggerGeneral.out
0a1
> ERROR 08001: java.net.ConnectException : Error connecting to server
xxxFILTERED_HOSTNAMExxx on port 1527 with message
xxxFILTERED_HOSTNAMExxx/127.0.0.1:1527 - Connection refused.
6 del
< 0 rows inserted/updated/deleted
6a7
> IJ ERROR: Unable to establish connection
9 del
< 0 rows inserted/updated/deleted
9a10
> IJ ERROR: Unable to establish connection
11 del
< ERROR 42Y55: 'DROP TABLE' cannot be performed on 'X' because it does not
exist.
11a12
..
..
..
< ij(USER1)> drop schema ippo restrict;
1305 del
< 0 rows inserted/updated/deleted
1306 del
< ij(USER1)>
1306 add
> ij>
Test Failed.
*** End: triggerGeneral jdk1.4.2 subset DerbyNetClient 2006-10-18 13:40:40
***
>>>>>>>>>>>>>>>>>>>>>>>>

BTW, i sitll confuse with the diff result. Could anyone do me a favor?

-- 
Sean Qiu

Mime
View raw message