X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/be7d8c9b6354157a80ecd2361bbb9e59366105b2..6ee48b39a42f77628d1ae9091da4ddaf44e22988:/examples/gras/mmrpc/Makefile.in diff --git a/examples/gras/mmrpc/Makefile.in b/examples/gras/mmrpc/Makefile.in index 00498248f8..b60e582618 100644 --- a/examples/gras/mmrpc/Makefile.in +++ b/examples/gras/mmrpc/Makefile.in @@ -14,6 +14,19 @@ @SET_MAKE@ +# This file factorize all the testing infrastructure for the GRAS examples +# +# it's made complicated by the facts that: +# - we use tesh, we need to find it back +# - we don't want to generate the test_* files with configure, so we +# have to declare some variables in front of the shell command +# running the test +# - we want to fully test the surf on the way. So, we have to ask for +# full precision timestamps in the tests. On the other hand, +# message size differ when we are on 32bits and when we are on +# 64bits (obviously), so we have to maintain 2 tests per directory +# and pick the right one here. + # Makefile chunk which allows to display the files which should be included # into the distribution. @@ -42,12 +55,12 @@ POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ target_triplet = @target@ -noinst_PROGRAMS = mmrpc_client$(EXEEXT) mmrpc_server$(EXEEXT) \ - mmrpc_simulator$(EXEEXT) DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/test_rl.in $(srcdir)/test_sg.in \ $(top_srcdir)/acmacro/dist-files.mk \ + $(top_srcdir)/examples/gras/tests.mk \ $(top_srcdir)/examples/temps-gras-stub.mk +noinst_PROGRAMS = mmrpc_client$(EXEEXT) mmrpc_server$(EXEEXT) \ + mmrpc_simulator$(EXEEXT) subdir = examples/gras/mmrpc ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/acmacro/ac_func_snprintf.m4 \ @@ -62,7 +75,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/src/gras_config.h -CONFIG_CLEAN_FILES = test_sg test_rl +CONFIG_CLEAN_FILES = PROGRAMS = $(noinst_PROGRAMS) am_mmrpc_client_OBJECTS = _mmrpc_client.$(OBJEXT) \ mmrpc_common.$(OBJEXT) mmrpc_client.$(OBJEXT) @@ -100,6 +113,7 @@ ADDR2LINE = @ADDR2LINE@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AM_CFLAGS = @AM_CFLAGS@ AR = @AR@ AS = @AS@ AUTOCONF = @AUTOCONF@ @@ -127,13 +141,15 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ -F77 = @F77@ -FFLAGS = @FFLAGS@ FLEXML = @FLEXML@ GRAMINE_MODE_FALSE = @GRAMINE_MODE_FALSE@ GRAMINE_MODE_TRUE = @GRAMINE_MODE_TRUE@ +GRAS_ARCH_32_BITS_FALSE = @GRAS_ARCH_32_BITS_FALSE@ +GRAS_ARCH_32_BITS_TRUE = @GRAS_ARCH_32_BITS_TRUE@ GRAS_DEP = @GRAS_DEP@ GREP = @GREP@ +GTNETS_CFLAGS = @GTNETS_CFLAGS@ +GTNETS_LDFLAGS = @GTNETS_LDFLAGS@ HAVE_FLEXML_FALSE = @HAVE_FLEXML_FALSE@ HAVE_FLEXML_TRUE = @HAVE_FLEXML_TRUE@ HAVE_SDP_FALSE = @HAVE_SDP_FALSE@ @@ -172,8 +188,8 @@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SIMGRID_DEP = @SIMGRID_DEP@ STRIP = @STRIP@ -USE_SIMIX_FALSE = @USE_SIMIX_FALSE@ -USE_SIMIX_TRUE = @USE_SIMIX_TRUE@ +USE_GTNETS_FALSE = @USE_GTNETS_FALSE@ +USE_GTNETS_TRUE = @USE_GTNETS_TRUE@ VERSION = @VERSION@ WARNING = @WARNING@ abs_builddir = @abs_builddir@ @@ -183,7 +199,6 @@ abs_top_srcdir = @abs_top_srcdir@ ac_configure_args = @ac_configure_args@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ -ac_ct_F77 = @ac_ct_F77@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ @@ -236,8 +251,10 @@ target_cpu = @target_cpu@ target_os = @target_os@ target_vendor = @target_vendor@ INCLUDES = -I$(top_srcdir)/include -TESTS = test_rl test_sg -EXTRA_DIST = mmrpc.xml mmrpc.h $(TESTS) +EXTRA_DIST = mmrpc.xml mmrpc.h test_rl test_sg_32 test_sg_64 +@GRAS_ARCH_32_BITS_FALSE@TESTS = test_sg_64 test_rl +@GRAS_ARCH_32_BITS_TRUE@TESTS = test_sg_32 test_rl +TESTS_ENVIRONMENT = srcdir=$(srcdir) EXEEXT=$(EXEEXT) @top_builddir@/tools/tesh/tesh mmrpc_simulator_SOURCES = _mmrpc_simulator.c mmrpc_common.c mmrpc_client.c mmrpc_server.c mmrpc_simulator_LDADD = $(top_builddir)/src/libsimgrid.la mmrpc_client_SOURCES = _mmrpc_client.c mmrpc_common.c mmrpc_client.c @@ -256,7 +273,7 @@ all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/examples/temps-gras-stub.mk $(top_srcdir)/acmacro/dist-files.mk $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/examples/gras/tests.mk $(top_srcdir)/examples/temps-gras-stub.mk $(top_srcdir)/acmacro/dist-files.mk $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -285,10 +302,6 @@ $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -test_sg: $(top_builddir)/config.status $(srcdir)/test_sg.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -test_rl: $(top_builddir)/config.status $(srcdir)/test_rl.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ @@ -472,7 +485,7 @@ check-TESTS: $(TESTS) else :; fi distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/../../../acmacro $(distdir)/../../../examples + $(mkdir_p) $(distdir)/../../../acmacro $(distdir)/../../../examples $(distdir)/../../../examples/gras @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ @@ -593,6 +606,17 @@ uninstall-am: uninstall-info-am mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ tags uninstall uninstall-am uninstall-info-am +@GRAS_ARCH_32_BITS_TRUE@test-sg: force +@GRAS_ARCH_32_BITS_TRUE@ $(TESTS_ENVIRONMENT) test_sg_32 +@GRAS_ARCH_32_BITS_FALSE@test-sg: force +@GRAS_ARCH_32_BITS_FALSE@ $(TESTS_ENVIRONMENT) test_sg_64 + +test-rl: force + $(TESTS_ENVIRONMENT) test_rl + +force: + +.PHONY: test_sg_32 test_SG_64 test_rl force $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME).xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ [ x@EXEEXT@ = x ] || exenv=wine; $$exenv $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME).xml