Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
05f371eabfc996d59f10980efdcb92a918b51cff
[simgrid.git] / teshsuite / Makefile.am
1 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/include
2 AM_CFLAGS = -g
3
4 # Declare all the variables to empty, so that each test set can add
5 # their content to them
6 CLEANFILES = 
7 EXTRA_DIST= 
8 noinst_PROGRAMS=
9
10 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
11 TESTS =
12 XFAIL_TESTS=
13
14 LDADD_SG=$(abs_top_builddir)/src/libsimgrid.la
15 LDADD_RL=$(abs_top_builddir)/src/libgras.la
16
17 #################
18 ### XBT tests ###
19 #################
20
21   ## Try parallel logs ##
22   #######################
23
24 TESTS += xbt/parallel_log_crashtest.tesh
25 noinst_PROGRAMS += xbt/parallel_log_crashtest 
26 xbt_parallel_log_crashtest_LDADD = $(LDADD_RL)
27
28 ##################
29 ### GRAS tests ###
30 ##################
31
32   ## Try structured communication facilities ##
33   #############################################
34
35 CLEANFILES += gras/datadesc/datadesc_usage.out
36 EXTRA_DIST += \
37   gras/datadesc/datadesc.little32_4 \
38   gras/datadesc/datadesc.little64\
39   gras/datadesc/datadesc.big32_8 gras/datadesc/datadesc.big32_8_4 gras/datadesc/datadesc.big32_2 \
40   gras/datadesc/mk_datadesc_structs.pl
41 TESTS += \
42   gras/datadesc/datadesc_mem.tesh          \
43   gras/datadesc/datadesc_rw.tesh           \
44   gras/datadesc/datadesc_r_little32_4.tesh \
45   gras/datadesc/datadesc_r_little64.tesh   \
46   \
47   gras/datadesc/datadesc_r_big32_8.tesh      \
48   gras/datadesc/datadesc_r_big32_8_4.tesh  \
49   gras/datadesc/datadesc_r_big32_2.tesh
50 # Data sets still to regenerate:
51 XFAIL_TESTS+= \
52   gras/datadesc/datadesc_r_little32.tesh   \
53   gras/datadesc/datadesc_r_big32_8.tesh    \
54   gras/datadesc/datadesc_r_big32_8_4.tesh  \
55   gras/datadesc/datadesc_r_big32_2.tesh
56
57 noinst_PROGRAMS += gras/datadesc/datadesc_usage   
58 gras_datadesc_datadesc_usage_SOURCES=   gras/datadesc/datadesc_usage.c gras/datadesc/datadesc_structs.c
59 gras_datadesc_datadesc_usage_LDADD=     $(LDADD_RL)
60
61 gras/datadesc/datadesc_structs.c: gras/datadesc/mk_datadesc_structs.pl
62         perl $(top_srcdir)/teshsuite/gras/datadesc/mk_datadesc_structs.pl > $@
63
64   ## Ensures the gras_msg_handle semantic ##
65   ##########################################
66 EXTRA_DIST += gras/msg_handle/msg_handle.xml
67 noinst_PROGRAMS+=\
68   gras/msg_handle/msg_handle_client \
69   gras/msg_handle/msg_handle_server \
70   gras/msg_handle/msg_handle_simulator
71
72 gras_msg_handle_msg_handle_simulator_SOURCES= gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_simulator.c
73 gras_msg_handle_msg_handle_client_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_client.c
74 gras_msg_handle_msg_handle_server_SOURCES=    gras/msg_handle/msg_handle.c gras/msg_handle/_msg_handle_server.c
75
76 gras_msg_handle_msg_handle_simulator_LDADD=   $(LDADD_SG)
77 gras_msg_handle_msg_handle_client_LDADD=      $(LDADD_RL)
78 gras_msg_handle_msg_handle_server_LDADD=      $(LDADD_RL)
79
80 gras/msg_handle/_msg_handle_simulator.c gras/msg_handle/_msg_handle_client.c gras/msg_handle/_msg_handle_server.c : gras/msg_handle/msg_handle.c gras/msg_handle/msg_handle.xml $(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@
81         mkdir -p gras/msg_handle; cd gras/msg_handle; ../../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ msg_handle $(srcdir)/msg_handle.xml
82
83 if GRAS_ARCH_32_BITS
84   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_32
85 else
86   TESTS += gras/msg_handle/test_rl gras/msg_handle/test_sg_64
87 endif
88                     
89
90 include $(top_srcdir)/acmacro/dist-files.mk