This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite] Executing testcases under wine

Hi all,

I'm trying to run the GCC testsuite for the mingw target, on a i686- darwin host. The cross compiler builds fine, and I have wine installed, so I'd like testsuite executables, once compiled, to simply run under wine (that means, instead of running "PR10431.exe", running "wine PR10431.exe"). I've found a crude way to do this by patching my system dejagnu config file (/usr/share/dejagnu/config/unix.exp):

--- unix.exp.old 2009-07-30 12:08:04.000000000 +0200
+++ unix.exp 2009-07-30 11:57:37.000000000 +0200
@@ -73,7 +73,7 @@ proc unix_load { dest prog args } {
setenv SHLIB_PATH "$ld_library_path:$orig_ld_library_path"
verbose -log "Setting LD_LIBRARY_PATH to $ld_library_path: $orig_ld_library_path" 2

-	set id [remote_spawn $dest "$command" "readonly"]
+	set id [remote_spawn $dest "wine $command" "readonly"]
 	if { $id < 0 } {
 	    set output "remote_spawn failed"
 	    set status -1

I've tried to create a new board in the gcc/testsuite/lib directory (wine.exp) by copying unix.exp and modifying it, but I've not been able to get any luck at all. I hope maybe a dejagnu expert could point me in the right direction! (is it possible, what do I put in the wine.exp, where do I put this file and how to I get it to be called?)

Many thanks in advance,

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]