1. Hibernate tests - source http://www.hibernate.org/6.html

Run build.xml with Ant under JDK 1.2 or later (JKD 1.4 required for
Hibernate 3.x, though stubs for some third-party libraries can be created to
compile and run Hibernate 3.x under JDK 1.3). From the
hibernate-x.x.xdirectory (or
Hibernate2/3 CVS directory), type

  - ant - build the hibernate.jar
  - ant junitreport - run tests using HSQL and report to test_output
  - ant dist - build the distribution (only for full CVS checkout)
  - ant clean - clean up

To run the tests against some other database, first edit
src/hibernate.properties. Then run

ant -Djdbc.driver=<jdbc driver classpath> junitreport

You may need to add junit.jar to your $ANT_HOME/lib directory if it is not
there already, or alternatively remove the $ANT_HOME/lib/ant-junit.jar file.
For Hibernate3, repeat the steps above, but also copy lib/antlr.jar or
remove the $ANT_HOME/lib/ant-antlr.jar file. These steps are necessary
because Ant ships with plugin stub libraries in its classpath, so Ant
plugins for JUnit or Antlr can't be used without copying or removing files
(arguably a dysfunctional distribution). If you don't have Ant installed on
your machine or don't want to mess with the default Ant installation then,
on Windows, just run build.bat to use the bundled Ant libraries.

On 1/31/07, Guillaume Smet <[EMAIL PROTECTED]> wrote:

Hi Denis,

On 1/30/07, Denis Garyachy <[EMAIL PROTECTED]> wrote:
> I have attached results of several unit-tests that Hibernate provides.
> I 've attached sequoia configuration files also.
> Can you advice why tests fail?

Can you point me to an howto run Hibernate unit test on a db? I'd like
to run the same tests with a PostgreSQL backend for Sequoia.

I took a look at one of the tests (CollectionTest) and the main
problem is the use of bracketed identifiers [Users] instead of the
standard quoted identifiers. The problem is related to something we
fixed last week for MySQL (which uses backticks instead of quotes).
Emmanuel, your refactoring is finally useful :).

I submitted a JIRA issue and a patch which should at least fix this
test (and perhaps others if they have the same problem):
https://forge.continuent.org/jira/browse/SEQUOIA-908 .

Denis, do you have the ability to build Sequoia from source and test this
patch?

It could be also interesting to validate the patch against the jdbc
url parsing (I'll try to work on it this evening).

--
Guillaume

_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia




--
Best regards,
Denis Garyachy.
_______________________________________________
Sequoia mailing list
[email protected]
https://forge.continuent.org/mailman/listinfo/sequoia

Reply via email to