From: mquinson Date: Tue, 14 Dec 2004 21:14:05 +0000 (+0000) Subject: cross-compile support: append '.exe' to the binary names we want to start when on... X-Git-Tag: v3.3~4719 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/85d865fcd03d5909990259a613c5a00c6085c584 cross-compile support: append '.exe' to the binary names we want to start when on win32 git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@631 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/testsuite/gras/trp_file_usage.in b/testsuite/gras/trp_file_usage.in index 5f59b4147a..e84d73ca08 100644 --- a/testsuite/gras/trp_file_usage.in +++ b/testsuite/gras/trp_file_usage.in @@ -1,10 +1,16 @@ #! @BASH@ -e -if test -e gras/trp_tcp_server ; then +if test -e gras/trp_file_server@EXEEXT@ ; then base=gras else base=. fi -$base/trp_file_client $@ | $base/trp_file_server $@ +if [ x@EXEEXT@ = x ] ; then + wine= +else + wine=wine +fi + +$wine $base/trp_file_client@EXEEXT@ $@ | $wine $base/trp_file_server@EXEEXT@ $@ diff --git a/testsuite/gras/trp_tcp_usage.in b/testsuite/gras/trp_tcp_usage.in index 99f2a279d3..089c427dc7 100644 --- a/testsuite/gras/trp_tcp_usage.in +++ b/testsuite/gras/trp_tcp_usage.in @@ -1,12 +1,18 @@ #! @BASH@ -e -if test -e gras/trp_tcp_server ; then +if test -e gras/trp_tcp_server@EXEEXT@ ; then base=gras else base=. fi -$base/trp_tcp_server $@ & +if [ x@EXEEXT@ = x ] ; then + wine= +else + wine=wine +fi + +$wine $base/trp_tcp_server@EXEEXT@ $@ & sleep 1 -$base/trp_tcp_client $@ +$wine $base/trp_tcp_client@EXEEXT@ $@