Hi David,

I have read the doc at
http://felix.apache.org/documentation/development/using-the-osgi-compliance-tests.html.
Since I can not access https://svn.apache.org/repos/tck/osgi-cts(need ASF
TCK account), I still use the OSGI CT from (
https://www.osgi.org/members/Release6/HomePage Final CT
<https://www.osgi.org/members/hudson/job/build.core/470/artifact/osgi.ct/generated/osgi.ct.core.jar>
 link.

I also download the framework 4.4.1 jar fom
http://apache.communilink.net//felix/org.apache.felix.framework-4.4.1.jar.

The CT layout is:

deven@deven-t420:~/work/jigsaw-build-osgitest/felix-test/osgi.ct.core$ tree
-L 1
.
├── about.html
├── bin
├── cnf
├── generated
├── jar
├── META-INF
├── NOTICE
├── org.osgi.test.cases.condpermadmin.bnd
├── org.osgi.test.cases.framework.bnd
├── org.osgi.test.cases.framework.launch.bnd
├── org.osgi.test.cases.framework.launch.secure.bnd
├── org.osgi.test.cases.framework.secure.bnd
├── org.osgi.test.cases.permissionadmin.bnd
├── org.osgi.test.cases.tracker.bnd
├── org.osgi.test.cases.url.bnd
├── property-resources
├── reports
├── runtests
└── shared.inc

Purely run "source runtests", the test will complete normally. For
simplicity,  I try to determine the problem by command "java -jar
jar/bnd.jar runtests --title osgi.ct org.osgi.test.cases.framework.bnd"
Run this command, the test also completes normally.

After I put org.apache.felix.framework-4.4.1.jar into my osgi.ct.core/jar
folder and modify the shared.inc

from

-runpath = \
    jar/org.eclipse.osgi-3.10.0.jar;version=file, \

jar/com.springsource.junit-3.8.2.jar;version=file;export="junit.framework;version=3.8"

-runtrace = true

to

-runpath = \
    jar/org.apache.felix.framework-4.4.1.jar;version=file, \

jar/com.springsource.junit-3.8.2.jar;version=file;export="junit.framework;version=3.8"

-runtrace = true

just use org.apache.felix.framework-4.4.1.jar to replace
org.eclipse.osgi-3.10.0.jar, and then  issue "java -jar jar/bnd.jar
runtests --title osgi.ct org.osgi.test.cases.framework.bnd", the test still
hangs at:

# starting activator aQute.junit.Activator@24662466
# framework=org.apache.felix.framework [0]
# registered launcher with arguments for syncing
# will call main
# running in main thread
# test cases null
# automatic testing of all bundles with Test-Cases header
# using
/home/deven/work/jigsaw-build-osgitest/felix-test/osgi.ct.core/reports/tmp,
needed creation false
# adding Bundle Listener for getting test bundle events
# starting queue


Other env infomation are:

uname -a: Linux deven-t420 3.13.0-43-generic #72~precise1-Ubuntu SMP Tue
Dec 9 12:14:42 UTC 2014 i686 i686 i386 GNU/Linux


Java version: tested with both Oracle and IBM JDK

IBM version info:

IBM J9 VM (build 2.8, JRE 1.8.0 Linux x86-32 20141007_216147 (JIT enabled,
AOT enabled)
J9VM - R28_jvm.28_20141007_0202_B216147
JIT  - tr.r14.java_20140929_74106
GC   - R28_jvm.28_20141007_0202_B216147
J9CL - 20141007_216147)
JCL - 20141001_01 based on Oracle jdk8u25-b17

Oracle version info:

java version "1.8.0_40-ea"
Java(TM) SE Runtime Environment (build 1.8.0_40-ea-b07)
Java HotSpot(TM) Server VM (build 25.40-b11, mixed mode)


If you have run the felix with OSGI CT successfully, I doubt if the problem
is we use different OSGI CT. Therefore, I think my first step to
investigate this problem is using the same CT as you to test again. Is
there any way I can get the CT from
https://svn.apache.org/repos/tck/osgi-cts ?

Thanks a lot!


2014-11-21 5:44 GMT+08:00 David Bosschaert <[email protected]>:

> Hi Deven,
>
> I have updated
>
> http://felix.apache.org/documentation/development/using-the-osgi-compliance-tests.html
> to describe how to run the Core R5 and Core R6 tests with the Felix
> framework. I've also added the Core R6 CT to
> https://svn.apache.org/repos/tck/osgi-cts in case you're looking for
> it.
>
> I didn't have time to describe running the security tests in detail
> yet, so that's still a TODO.
>
> Hope this helps,
>
> David
>
> On 11 November 2014 16:28, David Bosschaert <[email protected]>
> wrote:
> > Hi Deven,
> >
> > I will try to update that page a little bit soon.
> >
> > In short, you probably want to run the tests with the latest Felix
> > 4.4.1, not 2.0.2. This fully passes the Core R5 CT, see here for the
> > results of the tests that I ran for that release:
> > http://people.apache.org/~davidb/felix_osgi_r5/
> >
> > There are some extra steps required to run the security tests, I will
> > dig those up too.
> >
> > Cheers,
> >
> > David
> >
> > On 10 November 2014 21:41, deven you <[email protected]> wrote:
> >> Hi All,
> >>
> >> I am working on  testing apache felix with OSGI CT.
> >>
> >>
> >> At present, I find the documentation about how to run felix within OSGI
> CT
> >> is not clear. After searched from google I got this link:
> >>
> http://felix.apache.org/documentation/development/using-the-osgi-compliance-tests.html
> >> .
> >>
> >>
> >> In the link, it mentioned to use org.apache.felix.framework-2.0.2.jar to
> >> test felix framework however. I don't see any doc about the framework
> jar
> >> file and I only searched the download place to download the latest
> >> org.apache.felix.framework-4.4.1.jar.
> >>
> >>
> >> I also find that the link mentioned OSGI CT has separate  compendium CT
> but
> >> I see it's in the osgi.ct.core in the latest version (
> >> https://www.osgi.org/members/Release6/HomePage Final CT
> >> <
> https://www.osgi.org/members/hudson/job/build.core/470/artifact/osgi.ct/generated/osgi.ct.core.jar
> >
> >> link
> >> ) there is only osgi.ct.core test so I am wonder if this link is quite
> old
> >> to catch the current status of OSGI CT. I also find it's hard to get doc
> >> about the org.apache.felix.eventadmin-1.0.0.jar and
> >> org.apache.felix.framework.security-1.0.0.jar for Felix bundle test
> >> mentioned in the osgi-compliance-test.
> >>
> >> Inspite of all questions above, I download the
> >> org.apache.felix.framework-2.0.2.jar and place it into the
> >> osgi.ct.core/jar folder
> >> and lanuch the source runtests . With both Oracle Oracle JDK 7/8, the
> test
> >> always hang with below messages:
> >>
> >> # automatic testing of all bundles with Test-Cases header
> >>
> >> # using
> >>
> /home/jenkins/workspace/openjdk.jdk9.jigsaw.osgi-ct.felix.test.linux.x86_64/reports/tmp,
> >> needed creation false
> >>
> >> # adding Bundle Listener for getting test bundle events
> >>
> >> # starting queue
> >>
> >> Could anyone help me to solve all the questions and the hang problem to
> run
> >> apache felix test with OSGI CT?
> >>
> >> Thanks a lot!
>

Reply via email to