You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (Created) (JIRA)" <ji...@apache.org> on 2012/03/19 12:27:37 UTC

[jira] [Created] (DERBY-5664) Include driver tests in jdbcapi suite

Include driver tests in jdbcapi suite
-------------------------------------

                 Key: DERBY-5664
                 URL: https://issues.apache.org/jira/browse/DERBY-5664
             Project: Derby
          Issue Type: Improvement
          Components: Test
    Affects Versions: 10.9.0.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen


The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5664.
---------------------------------------

          Resolution: Fixed
    Issue & fix info:   (was: Patch Available)

Committed revision 1306452.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff, d5664-2a-junit-core.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5664.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.9.0.0

Committed revision 1303693.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5664:
--------------------------------------

    Attachment: d5664-1b-shutdown.diff

The 1a patch was only tested with a small part of jdbcapi, and when running the full suite some problems showed up. The spawned test processes access the default test database, which  is already booted in the main test process, and the spawned processes failed because attempts to double-boot the database were detected.

Attaching an updated patch that adds a decorator that shuts down the database engine in the main test process before spawning new test processes. With this change, suites.All ran successfully in my environment.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Mike Matrigali (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13237385#comment-13237385 ] 

Mike Matrigali commented on DERBY-5664:
---------------------------------------

It looks like this change is not working at least so far on ibm16, linux.  see DERBY-5670
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5664:
--------------------------------------

    Issue & fix info: Patch Available
    
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff, d5664-2a-junit-core.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5664:
--------------------------------------

    Attachment: d5664-1a-jdbcapi-suite.diff

Attaching a patch that adds the above mentioned tests to the jdbcapi suite. The tests must be run in separate JVMs in order to test that the drivers are auto-loaded on startup, and the patch handles this by spawning processes for each of the tests.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5664-1a-jdbcapi-suite.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Reopened] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen reopened DERBY-5664:
---------------------------------------


Reopening as the junit-all target in build.xml now runs the different variants of AutoloadTest twice (first explicitly, and then implicitly via the jdbcapi suite). It suffices to run them once.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5664) Include driver tests in jdbcapi suite

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5664:
--------------------------------------

    Attachment: d5664-2a-junit-core.diff

Attaching d5664-2a-junit-core.diff which removes AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest from the junit-core target.

I ran junit-all (which includes junit-core) successfully and verified that the four tests did no longer appear in their own top-level report files, but instead appeared in the report from the jdbcapi suite.
                
> Include driver tests in jdbcapi suite
> -------------------------------------
>
>                 Key: DERBY-5664
>                 URL: https://issues.apache.org/jira/browse/DERBY-5664
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.9.0.0
>
>         Attachments: d5664-1a-jdbcapi-suite.diff, d5664-1b-shutdown.diff, d5664-2a-junit-core.diff
>
>
> The tests AutoloadTest, JDBCDriversEmbeddedTest, JDBCDriversClientTest and JDBCDriversAllTest are in the junit-all ant target but not in suites.All. We should make them part of the jdbcapi suite so that they are picked up by suites.All too.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira