OSDN Git Service

Fix for PR libgcj/2874:
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / lib / libjava.exp
1 # Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation
2
3 load_lib "libgloss.exp"
4
5 # GCJ_UNDER_TEST is the compiler under test.
6
7 global tmpdir
8
9 if ![info exists tmpdir] {
10     set tmpdir "/tmp"
11 }
12
13 # This is like `target_compile' but it does some surgery to work
14 # around stupid DejaGNU bugs.  In particular DejaGNU has very poor
15 # quoting, so for instance a `$' will be re-evaluated at spawn time.
16 # We don't want that.
17 proc libjava_tcompile {source destfile type options} {
18     # This strange-looking expression really does quote the `$'.
19     regsub -all -- {\$} $source {\$} source
20     regsub -all -- {\$} $destfile {\$} destfile
21     return [target_compile $source $destfile $type $options]
22 }
23
24 # Read an `xfail' file if it exists.  Returns a list of xfail tokens.
25 proc libjava_read_xfail {file} {
26     if {! [file exists $file]} {
27         return ""
28     }
29     set fd [open $file r]
30     set tokens [string trim [read $fd]]
31     close $fd
32     return $tokens
33 }
34
35 # Find a particular executable.  FIXME: this relies on DejaGnu
36 # internals.  These should probably be exposed in a better way.
37 proc libjava_find_program {prog} {
38     global tool_root_dir
39
40     set file [lookfor_file $tool_root_dir $prog]
41     if { $file == "" } {
42         set file [lookfor_file $tool_root_dir gcc/$prog];
43     }
44     if {$file == ""} {
45         set file $prog
46     }
47     return $file
48 }
49
50 # Find `jv-scan'.
51 proc find_jvscan {} {
52     return [libjava_find_program jv-scan]
53 }
54
55 # Find `gcjh'.
56 proc find_gcjh {} {
57     return [libjava_find_program gcjh]
58 }
59
60 proc find_javac {} {
61     global SUN_JAVAC GCJ_UNDER_TEST env
62     # If JDK doesn't run on your platform but some other
63     # JDK-compatible javac does, you may set SUN_JAVAC to point to it.
64     # One of the most important properties of a SUN_JAVAC is that it
65     # must create class-files even for classes that have not been
66     # specified in the command line, but that were needed to compile
67     # those that have.  For example, Pizza won't do it, but you can
68     # use `kaffe sun.tools.javac.Main', if you have Sun's classes.zip
69     # in the kaffe's default search path.
70     if {![info exists SUN_JAVAC]} {
71         if {[info exists env(SUN_JAVAC)]} {
72             set SUN_JAVAC $env(SUN_JAVAC)
73         } else {
74             set SUN_JAVAC "$GCJ_UNDER_TEST -C"
75         }
76     }
77     return $SUN_JAVAC
78 }
79
80 proc bytecompile_file { file objdir {classpath {}} } {
81     global env
82     set dirname [file dirname $file]
83
84     set javac [find_javac]
85     if {$classpath != ""} then {
86         set env(CLASSPATH) $classpath
87     }
88     set here [pwd]
89     cd $dirname
90     if {[catch {
91         set q [eval exec "$javac [list $file] -d $objdir 2>@ stdout"]
92     } msg]} then {
93         verbose "couldn't compile $file: $msg"
94         set r 0
95     } else {
96         set r 1
97     }
98     cd $here
99     return $r
100 }
101
102 set libjava_initialized 0
103
104 #
105 # Build the status wrapper library as needed.
106 #
107 proc libjava_init { args } {
108     global wrapper_file;
109     global wrap_compile_flags;
110     global libjava_initialized libjava_uses_threads
111     global GCJ_UNDER_TEST
112     global TOOL_EXECUTABLE
113     global original_ld_library_path
114     global env objdir
115
116     if { $libjava_initialized == 1 } { return; }
117
118     if ![info exists GCJ_UNDER_TEST] {
119         if [info exists TOOL_EXECUTABLE] {
120             set GCJ_UNDER_TEST $TOOL_EXECUTABLE;
121         } else {
122             if [info exists env(GCJ)] {
123                 set GCJ_UNDER_TEST $env(GCJ)
124             } else {
125                 set GCJ_UNDER_TEST "[find_gcj]"
126             }
127         }
128     }
129
130     # The -B is so we find libgcj.spec.
131     set text [eval exec "$GCJ_UNDER_TEST -B$objdir/../ -v 2>@ stdout"]
132     regexp -- "Thread model: (\[^\n\]+)\n" $text ignore model
133     set libjava_uses_threads [expr {! ($model == "no"
134                                        || $model == "none"
135                                        || $model == "single")}]
136
137     # Always set encoding used by gcj.
138     append GCJ_UNDER_TEST " --encoding=UTF-8"
139
140     if [info exists env(LD_LIBRARY_PATH)] {
141         set original_ld_library_path $env(LD_LIBRARY_PATH)
142     } else {
143         if [info exists env(SHLIB_PATH)] {
144             set original_ld_library_path $env(SHLIB_PATH)
145         } else {
146             set original_ld_library_path ""
147         }
148     }
149
150     set wrapper_file "";
151     set wrap_compile_flags "";
152     if [target_info exists needs_status_wrapper] {
153         set result [build_wrapper "testglue.o"];
154         if { $result != "" } {
155             set wrapper_file [lindex $result 0];
156             set wrap_compile_flags [lindex $result 1];
157         } else {
158             warning "Status wrapper failed to build."
159         }
160     }
161
162     set libjava_initialized 1
163 }
164
165 # Find a library.  We know where libtool puts the actual libraries,
166 # and we look there.  The implementation is fairly hacky.  We can't
167 # compile with -nodefaultlibs, because that will also eliminate the
168 # system libraries we need.  In order to have gcj still work, it must
169 # find the appropriate libraries so we must add -L options for their
170 # paths.  However we can't simply use those libraries; we still need
171 # libtool for linking.
172 proc libjava_find_lib {dir name} {
173     global base_dir
174     set gp [get_multilibs]
175     foreach sub {.libs _libs} {
176         if {$gp != ""} {
177             if {[file exists $gp/$dir/$sub/lib${name}.a]} then {
178                 return "$gp/$dir/lib${name}.la -L$gp/$dir/$sub"
179             }
180         }
181         set lib [findfile $base_dir/../../$dir/$sub/lib${name}.a \
182                    "$base_dir/../../$dir/lib${name}.la -L$base_dir/../../$dir/$sub" \
183                    ""]
184         if {$lib != ""} {
185             return $lib
186         }
187     }
188     return ""
189 }
190
191 # Remove a bunch of files.
192 proc gcj_cleanup {args} {
193     foreach file $args {
194         if {[string match *.o $file]} {
195             verbose "removing [file rootname $file].lo"
196             file delete -force [file rootname $file].lo
197         }
198         file delete -force -- $file
199         verbose "removing $file"
200     }
201     # It is simplest to do this instead of trying to figure out what
202     # bits in .libs ought to be removed.
203     catch {system "rm -rf .libs"}
204 }
205
206 # Compute arguments needed for compiler.  MODE is a libtool mode:
207 # either compile or link.
208 proc libjava_arguments {{mode compile}} {
209     global base_dir
210     global LIBJAVA
211     global LIBGC
212     global LIBQTHREADS
213     global LIBZ
214     global srcdir subdir objdir
215     global TOOL_OPTIONS
216     global GCJ_UNDER_TEST
217     global tmpdir
218     global runtests
219     global env
220     global tool_root_dir
221
222     if [info exists LIBJAVA] {
223         set libjava $LIBJAVA;
224     } else {
225         set libjava [libjava_find_lib libjava gcj]
226     }
227
228     if [info exists LIBGC] {
229         set libgc $LIBGC;
230     } else {
231         set libgc [libjava_find_lib boehm-gc gcjgc]
232     }
233
234     if [info exists LIBQTHREADS] {
235         set libqthreads $LIBQTHREADS
236     } else {
237         set libqthreads [libjava_find_lib qthreads gcjcoop]
238     }
239
240     if [info exists LIBZ] {
241         set libz $LIBZ
242     } else {
243         set libz [libjava_find_lib zlib zgcj]
244     }
245
246     # FIXME: there's no way to determine whether -lpthread is
247     # required.  We should get this info from configure, or it should
248     # just be in the compiler driver.
249
250     verbose "using LIBJAVA = $libjava" 2
251     verbose "using LIBGC = $libgc" 2
252     verbose "using LIBQTHREADS = $libqthreads" 2
253     verbose "using LIBZ = $libz" 2
254     set args ""
255
256     # Basically we want to build up a colon separated path list from
257     # the value of $libjava.
258
259     set lpath {}
260     foreach dir [list $libjava $libgc $libz] {
261         foreach item [split $dir " "] {
262             switch -glob -- $item {
263                 "-L*" {
264                     lappend lpath [string range $item 2 end]
265                 }
266             }
267         }
268     }
269
270     # Finally, add the gcc build directory so that we can find the
271     # shared libgcc.  This, like much of dejagnu, is hideous.
272     set gccdir [lookfor_file $tool_root_dir gcc/libgcc_s.so]
273     if {$gccdir != ""} {
274         lappend lpath [file dirname $gccdir]
275     }
276
277     set ld_library_path [join $lpath :]
278
279     # That's enough to make things work for the normal case.
280     # If we wanted to handle an arbitrary value of libjava,
281     # then we'd have to do a lot more work.
282
283     # Set variables the dynamic linker looks at.
284     global original_ld_library_path
285     setenv LD_LIBRARY_PATH "$ld_library_path:$original_ld_library_path"
286     setenv SHLIB_PATH "$ld_library_path:$original_ld_library_path"
287
288     verbose "LD_LIBRARY_PATH = $env(LD_LIBRARY_PATH)"
289
290     # Set the CLASSPATH environment variable
291     verbose "CLASSPATH is .:$srcdir/$subdir:$objdir:$objdir/../libgcj.jar"
292     global env
293     set env(CLASSPATH) ".:$srcdir/$subdir:$objdir:$objdir/../libgcj.jar"
294
295     global wrapper_file wrap_compile_flags;
296     lappend args "additional_flags=$wrap_compile_flags";
297     lappend args "libs=$wrapper_file";
298     lappend args "libs=$libjava";
299     lappend args "libs=$libgc";
300     lappend args "libs=$libqthreads"
301     lappend args "libs=$libz"
302     lappend args debug
303
304     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
305         lappend args "libs=${gluefile}"
306         lappend args "ldflags=$wrap_flags"
307     }
308
309     if [info exists TOOL_OPTIONS] {
310         lappend args "additional_flags=$TOOL_OPTIONS"
311     }
312
313     # Search for libtool.  We need it to link.
314     set found_compiler 0
315     set d [absolute $objdir]
316     foreach x {. .. ../.. ../../..} {
317         if {[file exists $d/$x/libtool]} then {
318             # We have to run silently to avoid DejaGNU lossage.
319             lappend args \
320               "compiler=$d/$x/libtool --silent --tag=GCJ --mode=$mode $GCJ_UNDER_TEST -B$objdir/../"
321             set found_compiler 1
322             break
323         }
324     }
325     if {! $found_compiler} {
326         # Append -B$objdir/../ so that we find libgcj.spec before it
327         # is installed.
328         lappend args "compiler=$GCJ_UNDER_TEST -B$objdir/../"
329     }
330
331     # Avoid libtool wrapper scripts when possible.
332     if {$mode == "link"} {
333         lappend args "additional_flags=-no-install"
334     }
335
336     return $args
337 }
338
339
340 #
341 # Run the test specified by srcfile and resultfile. compile_args and
342 # exec_args are options telling this proc how to work.
343 #
344 proc test_libjava_from_source { options srcfile compile_args inpfile resultfile exec_args } {
345     global base_dir
346     global LIBJAVA
347     global LIBGC
348     global srcdir subdir objdir
349     global TOOL_OPTIONS
350     global GCJ_UNDER_TEST
351     global tmpdir
352     global runtests
353
354     # Make opts into an array.
355     set opts(_) x
356     unset opts(_)
357     foreach item $exec_args {
358         set opts($item) x
359     }
360
361     # If we need threads and we don't have them then set the `no-exec'
362     # flag.  This is case is also handled specially later.
363     if {[info exists opts(need-threads)]} {
364         global libjava_uses_threads
365         if {! $libjava_uses_threads} {
366             set opts(no-exec) x
367         }
368     }
369
370     set errname [file rootname [file tail $srcfile]]
371     if {! [runtest_file_p $runtests $errname]} {
372         return
373     }
374
375     if {[info exists opts(no-link)]} {
376         set mode compile
377     } else {
378         set mode link
379     }
380     set args [libjava_arguments $mode]
381     if {! [info exists opts(no-link)]} {
382         # Add the --main flag
383         lappend args "additional_flags=--main=[file rootname [file tail $srcfile]]"
384         if { $compile_args != "" } {
385             lappend args "additional_flags=$compile_args"
386         }
387     }
388
389     regsub "^.*/(\[^/.\]+)\[.\]\[^/]*$" "$srcfile" "\\1" out
390     set executable "${objdir}/$out"
391     if {[info exists opts(no-link)]} {
392         append executable ".o"
393         set target object
394     } else {
395         set target executable
396     }
397     if { $compile_args != "" } {
398         set errname "$errname $compile_args"
399     }
400
401     set removeList [list $executable]
402
403     set x [prune_warnings \
404              [libjava_tcompile $srcfile "$executable" $target $args]]
405     if {[info exists opts(xfail-gcj)]} {
406         setup_xfail *-*-*
407     }
408     if { $x != "" } {
409         verbose "target_compile failed: $x" 2
410
411         if {[info exists opts(shouldfail)]} {
412             pass "$errname compilation from source"
413             eval gcj_cleanup $removeList
414             return
415         }
416
417         fail "$errname compilation from source"
418         if {[info exists opts(xfail-gcj)]
419             || ! [info exists opts(no-exec)]
420             || [info exists opts(need-threads)]} {
421             untested "$errname execution from source compiled test"
422             untested "$errname output from source compiled test"
423         }
424         return
425     }
426     if {[info exists opts(shouldfail)]} {
427         fail "$errname compilation from source"
428         return
429     }
430     pass "$errname compilation from source"
431
432     if {[info exists opts(no-exec)]} {
433         if {[info exists opts(need-threads)]} {
434             # This means we wanted to try to run it but we couldn't
435             # because threads aren't supported.  So we have to
436             # generate an `untested'.
437             untested "$errname execution from source compiled test"
438             untested "$errname output from source compiled test"
439         }
440         eval gcj_cleanup $removeList
441         return
442     }
443     if {[info exists opts(no-link)]} {
444         eval gcj_cleanup $removeList
445         return
446     }
447
448     set result [libjava_load $executable "" "$inpfile"];
449     set status [lindex $result 0];
450     set output [lindex $result 1];
451     if {[info exists opts(xfail-exec)]} then {
452         setup_xfail *-*-*
453     }
454     $status "$errname execution from source compiled test"
455     if { $status != "pass" } {
456         untested "$errname output from source compiled test"
457         return;
458     }
459
460     verbose "resultfile is $resultfile"
461     set id [open $resultfile r];
462     set expected ""
463     append expected [read $id];
464     regsub -all "\r" "$output" "" output;
465     regsub "\n*$" $expected "" expected
466     regsub "\n*$" $output "" output
467     regsub "^\n*" $expected "" expected
468     regsub "^\n*" $output "" output
469     regsub -all "\[ \t\]\[ \t\]*" $expected " " expected
470     regsub -all "\[ \t\]*\n\n*" $expected "\n" expected
471     regsub -all "\[ \t\]\[ \t\]*" $output " " output
472     regsub -all "\[ \t\]*\n\n*" $output "\n" output
473     verbose "expected is $expected"
474     verbose "actual is $output"
475     set passed 0;
476     if {$options == "regexp_match"} {
477         if [regexp $expected $output] {
478             set passed 1;
479         }
480     } else {
481         if { $expected == $output } {
482             set passed 1;
483         }
484     }
485     if {[info exists opts(xfail-output)]} {
486         setup_xfail *-*-*
487     }
488     if { $passed == 1 } {
489         pass "$errname output from source compiled test"
490         eval gcj_cleanup $removeList
491     } else {
492         clone_output "expected was $expected"
493         clone_output "output was $output"
494         fail "$errname output from source compiled test"
495     }
496     close $id;
497 }
498
499 #
500 # Run the test specified by srcfile and resultfile. compile_args and
501 # exec_args are options telling this proc how to work.
502 #
503 proc test_libjava_from_javac { options srcfile compile_args inpfile resultfile exec_args } {
504     global base_dir
505     global LIBJAVA
506     global LIBGC
507     global srcdir subdir objdir
508     global TOOL_OPTIONS
509     global GCJ_UNDER_TEST
510     global tmpdir
511     global runtests
512
513     # Make opts into an array.
514     set opts(_) x
515     unset opts(_)
516     foreach item $exec_args {
517         set opts($item) x
518     }
519
520     # If we need threads and we don't have them then set the `no-exec'
521     # flag.  This is case is also handled specially later.
522     if {[info exists opts(need-threads)]} {
523         global libjava_uses_threads
524         if {! $libjava_uses_threads} {
525             set opts(no-exec) x
526         }
527     }
528     set errname [file rootname [file tail $srcfile]]
529     if {! [runtest_file_p $runtests $errname]} {
530         return
531     }
532
533     # bytecompile files with Sun's compiler for now.
534     set bc_ok [bytecompile_file $srcfile $objdir]
535
536     set javac [find_javac]
537     # This is an ugly heuristic but it will have to do.
538     if {[string match *gcj* $javac]} {
539         set tag gcjC
540     } else {
541         set tag javac
542     }
543     if {[info exists opts(xfail-$tag)]} {
544         setup_xfail *-*-*
545     }
546     if {! $bc_ok} then {
547         if {[info exists opts(shouldfail)]} {
548             pass "$errname byte compilation"
549             return
550         }
551         fail "$errname byte compilation"
552         untested "$errname compilation from bytecode"
553         if {! [info exists opts(no-exec)]
554             || [info exists opts(need-threads)]} {
555             untested "$errname execution from bytecode->native test"
556             untested "$errname output from bytecode->native test"
557         }
558         return
559     }
560     if {[info exists opts(shouldfail)]} {
561         fail "$errname byte compilation"
562         return
563     }
564     pass "$errname byte compilation"
565
566     set removeList {}
567
568     # Find name to use for --main, and name of all class files.
569     set jvscan [find_jvscan]
570     verbose "jvscan is $jvscan"
571     set main_name [string trim \
572                      [prune_warnings \
573                         [lindex [local_exec "$jvscan --encoding=UTF-8 $srcfile --print-main" "" "" 300] 1]]]
574     verbose "main name is $main_name"
575     set class_out [string trim \
576                      [prune_warnings \
577                         [lindex [local_exec "$jvscan --encoding=UTF-8 $srcfile --list-class" "" "" 300] 1]]]
578     verbose "class list is $class_out"
579
580     if {[string match "*parse error*" $main_name]
581         || [string match "*parse error*" $class_out]} {
582         untested "$errname compilation from bytecode"
583         if {! [info exists opts(no-exec)]
584             || [info exists opts(need-threads)]} {
585             untested "$errname execution from bytecode->native test"
586             untested "$errname output from bytecode->native test"
587         }
588         return
589     }
590
591     # Turn "a b" into "a.class b.class".
592     # Also, turn "foo.bar" into "foo/bar.class".
593     set class_files {}
594     foreach file [split [string trim $class_out]] {
595         set file [join [split $file .] /]
596         lappend class_files $objdir/$file.class
597     }
598
599     eval lappend removeList $class_files
600
601     # Usually it is an error for a test program not to have a `main'
602     # method.  However, for no-exec tests it is ok.  Treat no-link
603     # like no-exec here.
604     if {[info exists opts(no-link)]} {
605         set opts(no-exec) x
606     }
607     set largs {}
608
609     if {[info exists opts(no-exec)]} {
610         set type object
611         set mode compile
612     } elseif {$main_name == ""} {
613         perror "No `main' given in program $errname"
614         return
615     } else {
616         set type executable
617         lappend largs "additional_flags=--main=$main_name"
618         set executable "${objdir}/$main_name"
619         set mode link
620     }
621
622     # Initial arguments.
623     set args [libjava_arguments $mode]
624     eval lappend args $largs
625
626     if { $compile_args != "" } {
627         lappend args "additional_flags=$compile_args"
628     }
629
630     if { $compile_args != "" } {
631         set errname "$errname $compile_args"
632     }
633
634     verbose "compilation command = $args" 2
635     # When compiling and not linking, we have to build each .o
636     # separately.  We do this because DejaGNU's target_compile won't
637     # accept an empty "destfile" argument when the mode is "compile".
638     if {$mode == "compile"} {
639         foreach c_file $class_files {
640             set executable [file rootname [file tail $c_file]].o
641             set x [prune_warnings \
642                      [libjava_tcompile $c_file "$executable" $type $args]]
643             lappend removeList $executable
644             if {$x != ""} {
645                 break
646             }
647         }
648     } else {
649         # This is so evil: we de-listify CLASS_FILES so that we can
650         # turn around and quote the `$' in it for the shell.  I really
651         # hate DejaGNU.  It is so !@#$!@# unpredictable.
652         set hack ""
653         foreach stupid $class_files {
654             set hack "$hack $stupid"
655         }
656         lappend removeList $executable
657         set x [prune_warnings \
658                  [libjava_tcompile $hack "$executable" $type $args]]
659     }
660     if {[info exists opts(xfail-byte)]} {
661         setup_xfail *-*-*
662     }
663     if { $x != "" } {
664         verbose "target_compile failed: $x" 2
665         fail "$errname compilation from bytecode"
666         if {! [info exists opts(no-exec)]
667             || [info exists opts(need-threads)]} {
668             untested "$errname execution from bytecode->native test"
669             untested "$errname output from bytecode->native test"
670         }
671         return;
672     }
673     pass "$errname compilation from bytecode"
674
675     if {[info exists opts(no-exec)]} {
676         if {[info exists opts(need-threads)]} {
677             untested "$errname execution from bytecode->native test"
678             untested "$errname output from bytecode->native test"
679         }
680         eval gcj_cleanup $removeList
681         return
682     }
683
684     set result [libjava_load $executable "" "$inpfile"];
685     set status [lindex $result 0];
686     set output [lindex $result 1];
687     if {[info exists opts(xfail-exec)]} {
688         setup_xfail *-*-*
689     }
690     $status "$errname execution from bytecode->native test"
691     if { $status != "pass" } {
692         untested "$errname output from bytecode->native test"
693         return
694     }
695
696     verbose "resultfile is $resultfile"
697     set id [open $resultfile r];
698     set expected ""
699     append expected [read $id];
700     regsub -all "\r" "$output" "" output;
701     regsub "\n*$" $expected "" expected
702     regsub "\n*$" $output "" output
703     regsub "^\n*" $expected "" expected
704     regsub "^\n*" $output "" output
705     regsub -all "\[ \t\]\[ \t\]*" $expected " " expected
706     regsub -all "\[ \t\]*\n\n*" $expected "\n" expected
707     regsub -all "\[ \t\]\[ \t\]*" $output " " output
708     regsub -all "\[ \t\]*\n\n*" $output "\n" output
709     verbose "expected is $expected"
710     verbose "actual is $output"
711     set passed 0;
712     if {[info exists opts(xfail-output)]} {
713         setup_xfail *-*-*
714     }
715     if {$options == "regexp_match"} {
716         if [regexp $expected $output] {
717             set passed 1;
718         }
719     } else {
720         if { $expected == $output } {
721             set passed 1;
722         }
723     }
724     if { $passed == 1 } {
725         pass "$errname output from bytecode->native test"
726         eval gcj_cleanup $removeList
727     } else {
728         clone_output "expected was $expected"
729         clone_output "output was $output"
730         fail "$errname output from bytecode->native test"
731     }
732     close $id;
733 }
734
735 #
736 # Run the test specified by srcfile and resultfile. compile_args and
737 # exec_args are options telling this proc how to work.
738 #   `no-link'     don't try to link the program
739 #   `no-exec'     don't try to run the test
740 #   `xfail-gcj'   compilation from source will fail
741 #   `xfail-javac' compilation with javac will fail
742 #   `xfail-gcjC'  compilation with gcj -C will fail
743 #   `shouldfail'  compilation from source is supposed to fail
744 #                 This is different from xfail, which marks a known
745 #                 failure that we just havne't fixed.
746 #                 A compilation marked this way should fail with any
747 #                 front end.
748 #   `xfail-byte'  compilation from bytecode will fail
749 #   `xfail-exec'  exec will fail
750 #   `xfail-output'
751 #                 output will be wrong
752 #   `need-threads'
753 #                 test relies on thread support
754 #
755 proc test_libjava { options srcfile compile_args inpfile resultfile exec_args } {
756     test_libjava_from_source $options $srcfile $compile_args $inpfile $resultfile $exec_args
757     test_libjava_from_javac $options $srcfile $compile_args $inpfile $resultfile $exec_args
758  }
759
760 #
761 # libjava_version -- extract and print the version number of libjavap
762 #
763 proc default_libjava_version {} {
764 }
765
766 proc default_libjava_start { } {
767 }
768
769 # Local Variables:
770 # tcl-indent-level:4
771 # End: