DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
Using the OSGi
...
Complaince Tests
The OSGi Alliance now provides access to Apache committers to its TCKCompliance Tests (CT). This page describes how to use run Felix subprojects against the TCKCT.
OSGi
...
CT Overview
The TCK CT is delivered as two JAR files, one for the core TCK CT and one for the compendium TCKCT. Each JAR file is comprised of several other JAR files, which are the actual compliance tests. Typically, there is one JAR per specification, except for the OSGi framework.
The TCK CT uses BND as its testing harness, which in turn uses the OSGi R4.2 framework launching and embedding API to configure, launch, and install test bundles. Each test JAR file has an associated BND file which supplies the configuration BND needs to run the associated tests.
Modifying the BND files
Modifying the BND files is fairly straightforward, if not tedious. A typical BND file looks like this:
...
The following two examples show how to edit these files for the Felix framework and Felix bundle subprojects.
Testing the Felix framework
The Felix framework is tested against the core TCKCT. The first thing to do is extract the core TCK CT JAR file, which includes test suites for:
...
Reports for the tests suites are generated in the reports/ subdirectory and are named after the appropriate test suite.
Testing a Felix bundle
The core TCK CT tests the framework implementation and its related services. The compendium TCK CT tests the various non-framework-related specifications, which are implemented as bundles. For the most part, testing a bundle is similar to testing the framework.
Extract the compendium TCK CT JAR file to access the individual test suites. Since most compendium service specification test suites require security, it is necessary to use a framework implementation that supports security to run these tests, such as Equinox. Since the BND files already mention Equinox on their -runpath setting, it is not necessary to edit them to use it, although it is necessary to supply an Equinox JAR file and drop it into the jar/ subdirectory.
...
Where <bnd-file> specifies one or more BND files associated with the desired test suites. Reports for the tests suites are generated in the reports/ subdirectory and are named after the appropriate test suite.
Feedback
For any questions or feedback, subscribe to the Felix developers mailing list by sending a message to dev-subscribe@felix.apache.org; after subscribing, email questions or feedback to dev@felix.apache.org.