Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Infrastructure
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 6 Apr 2006 12:46:09 +0000 (12:46 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 6 Apr 2006 12:46:09 +0000 (12:46 +0000)
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 [new file with mode: 0644]
examples/gras/p2p/can/test_rl.in [new file with mode: 0755]
examples/gras/p2p/can/test_sg.in [new file with mode: 0755]

diff --git a/examples/gras/p2p/can/Makefile.am b/examples/gras/p2p/can/Makefile.am
new file mode 100644 (file)
index 0000000..aa7ff40
--- /dev/null
@@ -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 (executable)
index 0000000..929f1df
--- /dev/null
@@ -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 (executable)
index 0000000..5d3d33e
--- /dev/null
@@ -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 $@