logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Testing OSGi
Date Fri, 13 Sep 2013 01:03:09 GMT
Hi All:

After seeing how much of a pain OSGi seems to be, I've finally gotten sick
of hearing about it and got to create some simple tests tonight.

This should be a good starting point to getting CORE and API-1.2 to work in
OSGi. API seems fine to load, start and stop at least.

All that the current tests try to do is load, start and stop each bundle:
API. API-1.2 and CORE.

You can run the tests from Maven or Eclipse (the only IDE I tried). To see
the failures make sure follow these directions and remove @Ignore
annotations.

To test OSGi, you must first create the jars:

mvn install -DskipTests
mvn package -DskipTests

Next, you can run the tests as usual, which will pick up the jar files to
use as OSGi bundles from the various target directories:

mvn test

log:

commit -m "OSGi tests for API, API-1.2 and CORE, using Apache Felix and
Eclipse Equinox as embedded OSGi containers. Note that all tests except the
API tests are @Ignore due to reported bugs." -N (27 paths specified)
    Sending        C:/vcs/svn/apache/log4j2/trunk/BUILDING.txt
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/pom.xml
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/osgi
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/osgi/equinox
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/osgi/equinox/EquinoxLoadApi12BundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/osgi/felix
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-1.2-api/src/test/java/org/apache/log4j/osgi/felix/FelixLoadApi12BundleTest.java
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-api
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-api/pom.xml
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/AbstractLoadBundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/BundleTestInfo.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/equinox
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/equinox/AbstractEquinoxLoadBundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/equinox/EquinoxLoadApiBundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/felix
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/felix/AbstractFelixLoadBundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-api/src/test/java/org/apache/logging/log4j/osgi/felix/FelixLoadApiBundleTest.java
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-core
    Sending        C:/vcs/svn/apache/log4j2/trunk/log4j-core/pom.xml
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/osgi
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/osgi/equinox
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/osgi/equinox/EquinoxLoadCoreBundleTest.java
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/osgi/felix
    Adding
C:/vcs/svn/apache/log4j2/trunk/log4j-core/src/test/java/org/apache/logging/log4j/core/osgi/felix/FelixLoadCoreBundleTest.java
    Sending        C:/vcs/svn/apache/log4j2/trunk/pom.xml
    Transmitting file data ...
    Committed revision 1522753.

Gary

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
View raw message