This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: PR16923
Andrew Haley wrote:
> Jack Howarth wrote:
>> How does one run single test cases from the dejangnu harness in
>> libjava? I had expected that either...
>>
>> make -k check RUNTESTFLAGS="site.exp=libjava.jni/invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> or
>>
>> make -k check RUNTESTFLAGS="jni.exp=invocation/PR16923.c --target_board=unix'{-m32,-m64}'"
>>
>> would work in darwin_objdir/i686-apple-darwin9/libjava. However I can't seem to get the
>> failing test case to run in this fashion. What am I missing here?
>
> I think Tom Tromey knows how to do this; I can't remember.
>
> But really, all you need to do to run it outside dejagnu is ensure that
> the file [PR16923.class] exists in a directory named in the environment variable
> CLASSPATH.
Run it ike this:
zorro:libjava $ /home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/gcc/xgcc -B/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/gcc/ /home/aph/gcc/trunk/libjava/testsuite/libjava.jni/invocation/PR16923.c -I. -I.. -I/home/aph/gcc/trunk/libjava/testsuite/libjava.jni -I/home/aph/gcc/trunk/libjava/testsuite/../include -I/home/aph/gcc/trunk/libjava/testsuite/../classpath/include -fdollars-in-identifiers -L/home/aph/gcc/trunk/obj-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/./libjava/.libs -ljvm -lm -o PR16923
zorro:libjava $ LD_LIBRARY_PATH=.libs CLASSPATH=/home/aph/gcc/trunk/libjava/testsuite/libjava.jni/invocation/PR16923.jar ./PR16923
optionReceived
Andrew.