Skip to Content.
Sympa Menu

grouper-dev - RE: [grouper-dev] reporting HEAD ant test failure

Subject: Grouper Developers Forum

List archive

RE: [grouper-dev] reporting HEAD ant test failure


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Tom Zeller <>, Grouper Dev <>
  • Subject: RE: [grouper-dev] reporting HEAD ant test failure
  • Date: Thu, 1 May 2008 03:09:47 -0400
  • Accept-language: en-US
  • Acceptlanguage: en-US

The short answer is I believe this is fixed, please try it again.

 

Thanks,

Chris

 

The long answer is the stdin from ant is not straightforward, here is what I learned:

 

1.       Stdin from java ant tasks work fine, and from what I read, it is ant 1.6+ which is what we recommend if java is forked which in general it is

2.       If you do stdin from two java ant tasks in the same build, the second one requires you to type your answer several times, so right now everything is carefully assembled so that you don’t have to answer twice

3.       Stdin doesn’t work from junit tasks

4.       If there is a junit that depends on db.init (ant.test), then the user will be prompted, and set a system property to allow the junit db changes

5.       If not (ant.test.run), then prompt the user from java before the junit task and set a system property in junit to not prompt the user again

6.       Also, I added a db prompt to the xml.import ant task

 

 

From: [mailto:] On Behalf Of Tom Zeller
Sent: Wednesday, April 30, 2008 6:25 PM
To: Grouper Dev
Subject: [grouper-dev] reporting HEAD ant test failure

 

On my mac using HEAD, I think the db-clobbering prevention is causing ant test to fail, probably evidenced by 'OK, exiting' while running SuiteDefault...or is it just me ?

 

$ ant test

...

 

schemaexport:

     [java] (note, you can whitelist or blacklist db urls and users in the grouper.properties)

     [java] Are you sure you want to delete/recreate all tables in db user 'sa', db url 'jdbc:hsqldb:/Users/tzeller/grouper/dist/run/grouper;create=true'? (y|n): 

 

y

 

db.init:

 

test:

     [echo] 

     [echo] *** results can be found in /Users/tzeller/grouper/dist/test ***

     [echo] 

    [junit] Running edu.internet2.middleware.grouper.SuiteDefault

    [junit] (note, you can whitelist or blacklist db urls and users in the grouper.properties)

    [junit] Are you sure you want to delete all grouper data in db user 'sa', db url 'jdbc:hsqldb:/Users/tzeller/grouper/dist/run/grouper;create=true'? (y|n): 

    [junit] OK, exiting

    [junit] Running edu.internet2.middleware.grouper.SuiteDefault

    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec

 

BUILD FAILED

/Users/tzeller/grouper/build.xml:651: Test edu.internet2.middleware.grouper.SuiteDefault failed (crashed)

 

<error message="Forked Java VM exited abnormally. Please note the time in the report does not reflect

 the time until the VM exit." type="junit.framework.AssertionFailedError">junit.framework.AssertionFailed

Error: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time unt

il the VM exit.

</error>

 




Archive powered by MHonArc 2.6.16.

Top of Page