From 8e9fd9c3b692e912f2e119634ac1de50f132fa27 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 6 Apr 2006 12:46:09 +0000 Subject: [PATCH] Infrastructure git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2089 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/p2p/can/Makefile.am | 20 ++++++++++++++++++++ examples/gras/p2p/can/test_rl.in | 11 +++++++++++ examples/gras/p2p/can/test_sg.in | 8 ++++++++ 3 files changed, 39 insertions(+) create mode 100644 examples/gras/p2p/can/Makefile.am create mode 100755 examples/gras/p2p/can/test_rl.in create mode 100755 examples/gras/p2p/can/test_sg.in diff --git a/examples/gras/p2p/can/Makefile.am b/examples/gras/p2p/can/Makefile.am new file mode 100644 index 0000000000..aa7ff4082b --- /dev/null +++ b/examples/gras/p2p/can/Makefile.am @@ -0,0 +1,20 @@ +INCLUDES= -I$(top_srcdir)/include +#TESTS= test_rl test_sg +EXTRA_DIST=can_deployment.xml $(TESTS) + +# AUTOMAKE variable definition +noinst_PROGRAMS=can_node can_simulator + +can_simulator_SOURCES= _can_simulator.c can.c +can_simulator_LDADD= $(top_builddir)/src/libsimgrid.la + +can_node_SOURCES= _can_node.c can.c +can_node_LDADD= $(top_builddir)/src/libgras.la + +# Take care of generatated sources +NAME=can +PROCESSES=node +include $(top_srcdir)/examples/temps-gras-stub.mk + +# Cruft +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/gras/p2p/can/test_rl.in b/examples/gras/p2p/can/test_rl.in new file mode 100755 index 0000000000..929f1df4e6 --- /dev/null +++ b/examples/gras/p2p/can/test_rl.in @@ -0,0 +1,11 @@ +#! @BASH@ -e +if [ x@EXEEXT@ = x ] ; then +# exenv="libtool --mode=execute valgrind --show-reachable=yes --run-libc-freeres=no " + exenv=$SG_TEST_EXENV +else + exenv=wine +fi + +$exenv ./can_node@EXEEXT@ 4002 $@ & +sleep 1 +$exenv ./can_node@EXEEXT@ 127.0.0.1 4002 $@ diff --git a/examples/gras/p2p/can/test_sg.in b/examples/gras/p2p/can/test_sg.in new file mode 100755 index 0000000000..5d3d33e194 --- /dev/null +++ b/examples/gras/p2p/can/test_sg.in @@ -0,0 +1,8 @@ +#!/bin/bash +if [ x@EXEEXT@ = x ] ; then + exenv=$SG_TEST_EXENV +else + exenv=wine +fi + +exec $exenv ./can_simulator @top_srcdir@/examples/msg/msg_platform.xml @srcdir@/can_deployment.xml $@ -- 2.20.1