Guidelines for the functional validation of the Framework module.
Test cases
Test cases provided for the Framework Module are located in the testcases directory of the OSGi Runtime Validator.
Project files
The following TEE project files are available in the tee/sa/projects directory of the OSGi Runtime Validator or of the osgi part of the target image are related to the functional validation of the Framework module:
If you want to use this test project make sure that you have retrieved all OSGi Alliance test cases described in the TEE project file and copied them to the testcases directory.
Start scripts
To setup the environment for running the test cases via tee there are:
Call the server command with tee option to activate the settings these files provide.
To start the TEE on the target image, execute the following instructions:
server tee
Additional details to the general procedure for validation
This section provides additional directions for executing functional validation over the OSGi framework.
When validating the framework state it is required that all services for validated bundles also be validated. To specify a set of optional services, or skip service validation altogether a new attribute for the bundle tag: match.service.count was introduced. If set to true, the validator will check if the number of services registered by the bundle is the same as the number of services described in the validation XML. If set to true, and there are no services described for the bundle, the validation will pass only if the bundle does not register any services. Default value is false.