-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to run OSGi TCK #1803
Comments
From osgi/osgi#548:
Also: I have added a TCK to the Microsoft JDBC driver here that shows how to do the maven setup: |
According to https://github.com/osgi/osgi/blob/main/CONTRIBUTING.md#run--debug-a-tck, I can run a test using:
|
Here's how I managed to relatively easily run TCK tests. Build what's needed:
Then the goal is to be able to use
For example, I've replaced Virgo&Gemini with Pax Web by adding to
After changing the above, I could run:
Finally, when being in
My
To debug the tests, I've copied
Finally to get fresh OSGi TCK jars in
(or any other TCK lib). pom, jar, source-jar is copied to Maven local repo. |
Also, to make changes to Pax Web and Pax URL easier, I've replaced some libs in
|
Is it feasible to add the TCK run to CI?
From: Grzegorz Grzybek ***@***.***>
Date: Wednesday, April 5, 2023 at 6:40 AM
To: ops4j/org.ops4j.pax.web ***@***.***>
Cc: Subscribed ***@***.***>
Subject: Re: [ops4j/org.ops4j.pax.web] Attempt to run OSGi TCK (Issue #1803)
Also, to make changes to Pax Web and Pax URL easier, I've replaced some libs in osgi.tck/generated/osgi.tck.cmpn/jar with symbolic links:
$ ls -l *pax*
…-rw-r--r--. 1 ggrzybek ggrzybek 809830 04-03 15:14 org.ops4j.pax.logging.pax-logging-api-2.2.2.jar
-rw-r--r--. 1 ggrzybek ggrzybek 2160942 04-03 15:14 org.ops4j.pax.logging.pax-logging-log4j2-2.2.2.jar
-rw-r--r--. 1 ggrzybek ggrzybek 9744 04-03 15:14 org.ops4j.pax.swissbox.bnd-1.8.5.jar
-rw-r--r--. 1 ggrzybek ggrzybek 4009 04-03 15:14 org.ops4j.pax.swissbox.property-1.8.5.jar
-rw-r--r--. 1 ggrzybek ggrzybek 9641 04-03 15:14 org.ops4j.pax.url.commons-2.6.12.jar
lrwxrwxrwx. 1 ggrzybek ggrzybek 90 04-05 10:33 org.ops4j.pax.url.war-2.6.12.jar -> /data/sources/github.com/ops4j/org.ops4j.pax.url/pax-url-war/target/pax-url-war-2.6.12.jar
lrwxrwxrwx. 1 ggrzybek ggrzybek 94 04-05 10:28 org.ops4j.pax.web.pax-web-api-8.0.18.jar -> /data/sources/github.com/ops4j/org.ops4j.pax.web-8.0/pax-web-api/target/pax-web-api-8.0.18.jar
-rw-r--r--. 1 ggrzybek ggrzybek 3013 04-03 15:14 org.ops4j.pax.web.pax-web-compatibility-el2-8.0.18.jar
lrwxrwxrwx. 1 ggrzybek ggrzybek 112 04-05 10:30 org.ops4j.pax.web.pax-web-extender-war-8.0.18.jar -> /data/sources/github.com/ops4j/org.ops4j.pax.web-8.0/pax-web-extender-war/target/pax-web-extender-war-8.0.18.jar
-rw-r--r--. 1 ggrzybek ggrzybek 1026193 04-03 15:14 org.ops4j.pax.web.pax-web-jsp-8.0.18.jar
-rw-r--r--. 1 ggrzybek ggrzybek 160674 04-03 15:14 org.ops4j.pax.web.pax-web-runtime-8.0.18.jar
lrwxrwxrwx. 1 ggrzybek ggrzybek 94 04-05 10:30 org.ops4j.pax.web.pax-web-spi-8.0.18.jar -> /data/sources/github.com/ops4j/org.ops4j.pax.web-8.0/pax-web-spi/target/pax-web-spi-8.0.18.jar
lrwxrwxrwx. 1 ggrzybek ggrzybek 100 04-05 10:31 org.ops4j.pax.web.pax-web-tomcat-8.0.18.jar -> /data/sources/github.com/ops4j/org.ops4j.pax.web-8.0/pax-web-tomcat/target/pax-web-tomcat-8.0.18.jar
-rw-r--r--. 1 ggrzybek ggrzybek 552160 04-03 15:14 org.ops4j.pax.web.pax-web-tomcat-common-8.0.18.jar
—
Reply to this email directly, view it on GitHub<#1803 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAD5A5ZSQXKJPEKV4BCMNYTW7VKZFANCNFSM6AAAAAASLG3LZY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sure! I plan to use something similar to https://github.com/microsoft/mssql-jdbc/pull/2066/files |
(cherry picked from commit 0a963c8)
(cherry picked from commit 43d7387)
Whiteboard (CMPN 8.1) tests: https://github.com/osgi/osgi/tree/main/org.osgi.test.cases.servlet
Official test project: https://github.com/osgi/osgi-test
Helper library: https://github.com/laeubisoft/osgi-test-framework
The text was updated successfully, but these errors were encountered: