From 5d946df8b873e726fa3990f81809942785fcbdd2 Mon Sep 17 00:00:00 2001 From: Donald Woods Date: Tue, 14 Dec 2010 14:29:37 +0000 Subject: [PATCH] OPENJPA-1786 Upgrade to latest JPA 2.0 TCK (05-Dec-2010) git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.1.x@1049109 13f79535-47bb-0310-9956-ffa450edef68 --- openjpa-integration/tck/pom.xml | 9 +- openjpa-integration/tck/tck2-20091209.xml | 411 ++++++++++++++++++ .../tck/{tck2.xml => tck2-20101205.xml} | 11 +- 3 files changed, 425 insertions(+), 6 deletions(-) create mode 100644 openjpa-integration/tck/tck2-20091209.xml rename openjpa-integration/tck/{tck2.xml => tck2-20101205.xml} (98%) diff --git a/openjpa-integration/tck/pom.xml b/openjpa-integration/tck/pom.xml index b10747b4c..cee863f14 100644 --- a/openjpa-integration/tck/pom.xml +++ b/openjpa-integration/tck/pom.xml @@ -37,6 +37,10 @@ For JPA 2.0 - -Ptck2-profile + For the JPA 2.0 TCK, the default level used will be the latest available, + but you can also test against prior levels by setting: + -Dtck2.level=20091209 + To run a specific package of tests, use the "jpatck.pkg.dir" system property to specify the parent directory of the tests you want to run. E.g.: @@ -79,6 +83,7 @@ DefaultLevel=WARN + 20101205 @@ -132,7 +137,7 @@ - + @@ -179,7 +184,7 @@ - + diff --git a/openjpa-integration/tck/tck2-20091209.xml b/openjpa-integration/tck/tck2-20091209.xml new file mode 100644 index 000000000..321fb2ebb --- /dev/null +++ b/openjpa-integration/tck/tck2-20091209.xml @@ -0,0 +1,411 @@ + + + + + + + + + + + + + + The TCK file specified in the "tck.zip" system property (${tck.zip}) does not exist. This file must be downloaded separately in order to be able to run the JPA 2.0 TCK + + + + The TCK config file specified in the "tck_config.zip" system property (${tck_config.zip}) does not exist. This file must be downloaded separately in order to be able to run the JPA 2.0 TCK + + + + The TCK patches file specified in the "tck_patches.zip" system property (${tck_patches.zip}) does not exist. This file must be downloaded separately in order to be able to run the JPA 2.0 TCK + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +javax.persistence.provider: org.apache.openjpa.persistence.PersistenceProviderImpl +openjpa.ConnectionDriverName: ${db.driver} +openjpa.ConnectionURL: ${db.url} +openjpa.ConnectionUserName: ${db.username} +openjpa.ConnectionPassword: ${db.password} +openjpa.FetchBatchSize: -1 +openjpa.Compatibility: StrictIdentityValues=true +openjpa.Sequence: time +openjpa.Log: ${openjpa.Log} +openjpa.jdbc.DBDictionary: StoreCharsAsNumbers=true +openjpa.jdbc.SchemaFactory: native(ForeignKeys=true) +openjpa.jdbc.SynchronizeMappings: buildSchema(ForeignKeys=true) + + + + + + + + +######################################################################### +## OpenJPA specific properties follow +######################################################################### + +jpa.home=${tck.dir} +work.dir=${tck.work} +report.dir=${tck.reports} +jpa.classes=${cp.property} +# jpa.classes includes Derby, so only set database.classes for other DBs +database.classes= +# different properties needed for pluggability bucket +openjpa.properties=${openjpa.properties} +toplink.properties=${toplink.properties} +# Need to specify java.* classes, both in Windows/UNIX locations as well as Mac. +# This includes a few different possible locations; only one of them needs to +# actually work for a given environment. +sigTestClasspath=${JAVA_HOME}/lib/rt.jar${path.separator}${JAVA_HOME}/jre/lib/rt.jar${path.separator}${JAVA_HOME}/../Classes/classes.jar${path.separator}$${jpa.classes} +persistence.unit.properties.file.full.path=${provider.properties} +database.user=${db.username} +database.passwd=${db.password} +database.url=${db.url} +database.driver=${db.driver} +databaseName=${db.name} + + + + + Update directory paths if running on Windows + + + + + + + + + + + + + + + + + + + + AGENT: ${agent}${agent.properties} + + + + + + + + + + + + + + + Logging JPA 2.0 TCK output to ${tck.log} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + TCK Results - Passed: ${count.passed}, Failed: ${count.failed} + + + + + + + Running Sun JPA 2.0 TCK - w/o Pluggability tests + Init must have been called before running this target! + + + + + + The OPENJPA_CLASSPATH was not provided and needs to point to the required OpenJPA and Derby runtime jars. + + + + + + + +## exclude pluggability tests for normal OpenJPA runs +com/sun/ts/tests/pluggability/contracts/Client.java#createContainerEntityManagerFactory_from_standalone +com/sun/ts/tests/pluggability/contracts/Client.java#getManagedClassNames_from_standalone +com/sun/ts/tests/pluggability/contracts/Client.java#getPersistenceProviderClassName_from_standalone +com/sun/ts/tests/pluggability/contracts/Client.java#getPersistenceUnitName_from_standalone +com/sun/ts/tests/pluggability/contracts/Client.java#getTransactionType_from_standalone + + + + + + + + Calling TCK initdb.xml + + TCK initdb.xml returned result=${tsant.result} + + + Calling TCK build.xml + + TCK build.xml returned result=${tsant.result} + + + + + + + + + + + Running Sun JPA 2.0 TCK - only Pluggability tests + Init must have been called before running this target! + + + + + + The TOPLINK_CLASSPATH was not provided and needs to point to the required Toplink, OpenJPA and Derby runtime jars. + + + + + + + + + + + + Calling TCK initdb.xml + + TCK initdb.xml returned result=${tsant.result} + + + Calling TCK build.xml + + TCK build.xml returned result=${tsant.result} + + + + + + + + + + + Gathering test artifacts for Sun JPA 2.0 TCK + + + + + + + + + + + + + Results archive at: ${tck.results.archive} + + + + + + + + Test Results (${results.name}): FAILED ${count.failed} tests! + + Test Results (${results.name}): PASSED! + + + + diff --git a/openjpa-integration/tck/tck2.xml b/openjpa-integration/tck/tck2-20101205.xml similarity index 98% rename from openjpa-integration/tck/tck2.xml rename to openjpa-integration/tck/tck2-20101205.xml index c54d10836..c93b5d436 100644 --- a/openjpa-integration/tck/tck2.xml +++ b/openjpa-integration/tck/tck2-20101205.xml @@ -22,9 +22,8 @@ This ANT build file is used to run the JPA 2.0 TCK. It assumes that you have the TCK, config and patches zip files located at: - ${user.home}/.m2/privaterepos/jpatck-2.0_15-Jun-2010.zip - ${user.home}/.m2/privaterepos/jpatck-2.0_15-Jun-2010_config.zip - ${user.home}/.m2/privaterepos/jpatck-2.0_15-Jun-2010_patches.zip + ${user.home}/.m2/privaterepos/jpatck-2.0_05-Dec-2010.zip + ${user.home}/.m2/privaterepos/jpatck-2.0_05-Dec-2010_config.zip If you have that file in a different location, it can be specified with the "tck.zip" and "tck_patches.zip" system property. @@ -55,7 +54,7 @@ then extracts them. --> - + The TCK file specified in the "tck.zip" system property (${tck.zip}) does not exist. This file must be downloaded separately in order to be able to run the JPA 2.0 TCK @@ -64,14 +63,18 @@ The TCK config file specified in the "tck_config.zip" system property (${tck_config.zip}) does not exist. This file must be downloaded separately in order to be able to run the JPA 2.0 TCK + +