From ef31c793f419af21bc43a6169b1264d7c6610069 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 14 Sep 2004 09:19:00 +0000 Subject: [PATCH] work even when called from the upper directory (just as it is when make check is launched) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@410 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- testsuite/gras/trp_file_usage.in | 8 +++++++- testsuite/gras/trp_tcp_usage.in | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/testsuite/gras/trp_file_usage.in b/testsuite/gras/trp_file_usage.in index 4d17f50cd1..5f59b4147a 100644 --- a/testsuite/gras/trp_file_usage.in +++ b/testsuite/gras/trp_file_usage.in @@ -1,4 +1,10 @@ #! @BASH@ -e -./trp_file_client $@ | ./trp_file_server $@ +if test -e gras/trp_tcp_server ; then + base=gras +else + base=. +fi + +$base/trp_file_client $@ | $base/trp_file_server $@ diff --git a/testsuite/gras/trp_tcp_usage.in b/testsuite/gras/trp_tcp_usage.in index af417ae6b2..99f2a279d3 100644 --- a/testsuite/gras/trp_tcp_usage.in +++ b/testsuite/gras/trp_tcp_usage.in @@ -1,6 +1,12 @@ #! @BASH@ -e -./trp_tcp_server $@ & +if test -e gras/trp_tcp_server ; then + base=gras +else + base=. +fi + +$base/trp_tcp_server $@ & sleep 1 -./trp_tcp_client $@ +$base/trp_tcp_client $@ -- 2.20.1