Hi,
I have been using Liquibase for about a year now, but this is the first time I’ve tried to build it. I am also new to svn, so that doesn’t help. I am a fairly old hand at ant and java.
I’m building and running tests, and I’m encountering some failures and errors.
I grabbed what I think is the 1.9.x branch using this command:
svn co http://liquibase.jira.com/svn/CORE/branches/1_9 liquibase_BR_1_9
Then I navigated into the liquibase_BR_1_9/core/src directory and built using this command:
ant
Then I built and ran the tests using this command:
ant test
With the results that I got 1 failure and 7 errors.
liquibase.LiquibaseTest failed with
- junit.framework.AssertionFailedError: expected:<14> but was:<15>
at liquibase.LiquibaseTest.getImplementedDatabases(LiquibaseTest.java:76)
liquibase.change.AddColumnChangeTest is erroring out in the sybaseNull, sybaseNotNull, and sybaseConstraintsNull tests.
-
[junit] Testcase: sybaseNull(liquibase.change.AddColumnChangeTest): Caused an ERROR
[junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NULL>
[junit] at liquibase.change.AddColumnChangeTest.sybaseNull(AddColumnChangeTest.java:218)
[junit]
[junit]
[junit] Testcase: sybaseNotNull(liquibase.change.AddColumnChangeTest): Caused an ERROR
[junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NOT NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NOT NULL>
[junit] at liquibase.change.AddColumnChangeTest.sybaseNotNull(AddColumnChangeTest.java:237)
[junit]
[junit]
[junit] Testcase: sybaseConstraintsNull(liquibase.change.AddColumnChangeTest): Caused an ERROR
[junit] null expected:<...TER TABLE [TAB] ADD [NEWCOL] TYP NULL> but was:<...TER TABLE [TAB] ADD [[NEWCOL]] TYP NULL>
[junit] at liquibase.change.AddColumnChangeTest.sybaseConstraintsNull(AddColumnChangeTest.java:257)
liquibase.change.ModifyColumnChangeTest is erroring out in the generateStatement and generateFullStatementForMysql tests.
-
[junit] Testcase: generateStatement(liquibase.change.ModifyColumnChangeTest): Caused an ERROR
[junit] null expected:<..._NAME MODIFY ( NAME [integer](3) )> but was:<..._NAME MODIFY ( NAME [INT](3) )>
[junit] at liquibase.change.ModifyColumnChangeTest.generateStatement(ModifyColumnChangeTest.java:44)
[junit]
[junit]
[junit] Testcase: generateFullStatementForMysql(liquibase.change.ModifyColumnChangeTest): Caused an ERROR
[junit] null expected:<...NAME` MODIFY `NAME` [integer](3) NOT NULL DEFAULT...> but was:<...NAME` MODIFY `NAME` [INT](3) NOT NULL DEFAULT...>
[junit] at liquibase.change.ModifyColumnChangeTest.generateFullStatementForMysql(ModifyColumnChangeTest.java:85)
liquibase.database.H2DatabaseTest errors out in the escapeTableName_noSchema and escapeTableName_withSchema tests.
-
[junit] Testcase: escapeTableName_noSchema(liquibase.database.H2DatabaseTest): Caused an ERROR
[junit] null expected:<[`tableName`]> but was:<Name]>
[junit] at liquibase.database.H2DatabaseTest.escapeTableName_noSchema(H2DatabaseTest.java:73)
[junit]
[junit]
[junit] Testcase: escapeTableName_withSchema(liquibase.database.H2DatabaseTest): Caused an ERROR
[junit] null expected:<[`schemaName`.`tableName`]> but was:<[schemaName.tableName]>
[junit] at liquibase.database.H2DatabaseTest.escapeTableName_withSchema(H2DatabaseTest.java:79)
JAVA_HOME points to JDK 1.5 (I usually build with JDK 6 but Liquibase seems to want 1.5.)
Ant is 1.7.0.
I’m building on cygwin under Windows XP.
Do these test cases currently pass for other people? If so, then it’s something in my environment that I need to fix, or maybe I’m grabbing the code wrong or building it wrong. But looking at the first one, I’m not so sure it’s me. I thought it might be leftovers from a previous version of Liquibase, but I’ve cleared out my CLASSPATH.
Is the official daily build junit results posted online somewhere?
thanks for any help,
shoover