public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
* got JNI; but only just :-)
@ 2008-04-12 20:53 Andrew Cagney
  2008-04-12 21:01 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2008-04-12 20:53 UTC (permalink / raw)
  To: frysk

FYI,

I've just pushed changes to frysk's build system that add the ability to 
build JNI code vis:

- automatically generate required jni headers
- compile */jni/*.cxx files into a separate shared object

while at the same time continuing to build the existing CNI code.  By 
being able to build/run both side-by-side we'll hopefully help to ease 
the migration pain.

In the frysk-sys directory, I've also added stub C++ JNI functions (they 
just throw an exception) for all the required native methods.  You can 
invoke TestRunner, but using JNI and these stub-functions, with the 
script JniRunner vis:

$ ./JniRunner
Exception in thread "main" java.lang.RuntimeException: 
../../frysk/frysk-sys/frysk/config/jni/Config.cxx:Java_frysk_config_Config_createBuildConfig 
not implemented
        at frysk.config.Config.createBuildConfig(Native Method)
        at JniRunner.main(JniRunner.java:57)

(Did I mention that all the JNI functions were stubs and just threw 
exceptions? :-)

Next I'm going to work my way through frysk.config, frysk.rsl, and 
frysk.sys.

The lib/* libraries are an opportunity waiting to happen :-)

Andrew

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: got JNI; but only just :-)
  2008-04-12 20:53 got JNI; but only just :-) Andrew Cagney
@ 2008-04-12 21:01 ` Mark Wielaard
  2008-04-14 13:26   ` Andrew Cagney
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2008-04-12 21:01 UTC (permalink / raw)
  To: Andrew Cagney; +Cc: frysk

On Fri, 2008-04-11 at 17:32 -0400, Andrew Cagney wrote:
> I've just pushed changes to frysk's build system that add the ability to 
> build JNI code vis:
> 
> - automatically generate required jni headers
> - compile */jni/*.cxx files into a separate shared object
> 
> while at the same time continuing to build the existing CNI code.  By 
> being able to build/run both side-by-side we'll hopefully help to ease 
> the migration pain.

Nice, but something broke all the TestTypeFactory tests:

Running test_char_var(frysk.debuginfo.TestTypeFactory) ...execve: No such file
or directory
FAIL
  junit.framework.AssertionFailedError: event loop run explictly stopped (run to
blocked exec)

I tried to git bi-sect to see which commit actually broke it, but not
all the commits actually compile :{ So for now I filed a bug report
#6396 and marked the tests unresolved. Could you take a look what causes
the funit-type-class not to be compiled/found?

Thanks,

Mark

frysk-core/frysk/debuginfo/ChangeLog
2008-04-12  Mark Wielaard  <mwielaard@redhat.com>

    * gen-type-expect-tests.py: Mark unresolved #6396.


index 0a36801..7a82702 100644
--- a/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
+++ b/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
@@ -135,6 +135,7 @@ public class %s extends TestLib {
 
     def start_test(self, executable, name):
         print("    public void test_%s () {" % (name))
+        print("      if (unresolved(6396)) return;");
         tokens = os.path.splitext(os.path.abspath(executable))
         print('        TypeTestbed typeTestbed = new TypeTestbed("%s", "test%s"
 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: got JNI; but only just :-)
  2008-04-12 21:01 ` Mark Wielaard
@ 2008-04-14 13:26   ` Andrew Cagney
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Cagney @ 2008-04-14 13:26 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: frysk

This is fixed.

Mark Wielaard wrote:
> On Fri, 2008-04-11 at 17:32 -0400, Andrew Cagney wrote:
>   
>> I've just pushed changes to frysk's build system that add the ability to 
>> build JNI code vis:
>>
>> - automatically generate required jni headers
>> - compile */jni/*.cxx files into a separate shared object
>>
>> while at the same time continuing to build the existing CNI code.  By 
>> being able to build/run both side-by-side we'll hopefully help to ease 
>> the migration pain.
>>     
>
> Nice, but something broke all the TestTypeFactory tests:
>
> Running test_char_var(frysk.debuginfo.TestTypeFactory) ...execve: No such file
> or directory
> FAIL
>   junit.framework.AssertionFailedError: event loop run explictly stopped (run to
> blocked exec)
>
> I tried to git bi-sect to see which commit actually broke it, but not
> all the commits actually compile :{ So for now I filed a bug report
> #6396 and marked the tests unresolved. Could you take a look what causes
> the funit-type-class not to be compiled/found?
>
> Thanks,
>
> Mark
>
> frysk-core/frysk/debuginfo/ChangeLog
> 2008-04-12  Mark Wielaard  <mwielaard@redhat.com>
>
>     * gen-type-expect-tests.py: Mark unresolved #6396.
>
>
> index 0a36801..7a82702 100644
> --- a/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
> +++ b/frysk-core/frysk/debuginfo/gen-type-expect-tests.py
> @@ -135,6 +135,7 @@ public class %s extends TestLib {
>  
>      def start_test(self, executable, name):
>          print("    public void test_%s () {" % (name))
> +        print("      if (unresolved(6396)) return;");
>          tokens = os.path.splitext(os.path.abspath(executable))
>          print('        TypeTestbed typeTestbed = new TypeTestbed("%s", "test%s"
>  
>
>
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-14 12:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-12 20:53 got JNI; but only just :-) Andrew Cagney
2008-04-12 21:01 ` Mark Wielaard
2008-04-14 13:26   ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).