Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 63102
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Daniel Black <dragonheart@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 63102 depends on: Show dependency tree
Bug 63102 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-09-07 01:47 0000
Output from compile.

>>> Test phase [test]: dev-java/libreadline-java-0.8.0
cd src; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/blackdown-jdk-1.4.1/include" \
                JAVANATINC="/opt/blackdown-jdk-1.4.1/include/linux" native
make[1]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src'
cd native ; make T_LIBS="JavaReadline" JAVAINCLUDE="/opt/blackdown-jdk-1.4.1/include" \
                            JAVANATINC="/opt/blackdown-jdk-1.4.1/include/linux" all
make[2]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src/native'
make TG=JavaReadline lib
make[3]: Entering directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src/native'
gcc -I /opt/blackdown-jdk-1.4.1/include -I /opt/blackdown-jdk-1.4.1/include/linux  -fPIC -DPOSIX -DJavaReadline \
                                   -c org_gnu_readline_Readline.c
gcc -shared org_gnu_readline_Readline.o -L/usr/lib/termcap  -lreadline -ltermcap -lhistory -o ../../libJavaReadline.so
make[3]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src/native'
make[2]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src/native'
make[1]: Leaving directory `/var/tmp/portage/libreadline-java-0.8.0/work/libreadline-java-0.8.0/src'
LD_LIBRARY_PATH=. java -jar libreadline-java.jar src/test/tinputrc
initializing Readline...
... done
linux>

^ it's just waiting at this prompt.

------- Comment #1 From Daniel Black 2004-09-07 01:53:08 0000 -------
The main loop when creating a test case for it.

while (true) {
      try {
        line = Readline.readline("linux> ");
        if (line == null)
          System.out.println("no input");
        else
          System.out.println("line = >" + line + "<");
      } catch (UnsupportedEncodingException enc) {
        System.err.println("caught UnsupportedEncodingException");
        break;
      } catch (IOException eof) {
        break;
      }
    }

------- Comment #2 From Thomas Matthijs (RETIRED) 2004-09-07 02:51:21 0000 -------
well the src/test included there isn't realy a test case, and i don't realy
wanna write one myself, so i'm just going too disable it, feel free to submit
one though

------- Comment #3 From Sven 2004-09-07 07:56:26 0000 -------
Instead of a pure "make test", you could do "echo hello | make test". It won't
block and it at least tests if the library load correctly.

------- Comment #4 From Daniel Black 2004-09-07 13:12:57 0000 -------
Well, you'll need to pipe a EOF into the program with some comparison of input
and output.

------- Comment #5 From Thomas Matthijs (RETIRED) 2004-09-07 13:19:22 0000 -------
patches welcome :)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug