Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dist-files target to all makefiles. It outputs all files which must be placed...
[simgrid.git] / testsuite / Makefile.am
1 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/include
2 AM_CFLAGS=-g
3
4 CLEANFILES = *~ test a.out *.o gras/datadesc_usage.out datadesc_usage.out
5 DISTCLEANFILES =  gras/.libs/* xbt/.libs/* surf/.libs/* msg/.libs/*
6 MAINTAINERCLEANFILES=Makefile.in
7 EXTRA_DIST=run_tests.in \
8   gras/datadesc.little32 gras/datadesc.little32_4 \
9   gras/datadesc.little64\
10   gras/datadesc.big32 gras/datadesc.big32_8_4 \
11   gras/mk_datadesc_structs.pl \
12   surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt surf/platform.xml \
13   msg/messages.h
14
15 # Data sets still to regenerate:
16 # gras/datadesc.big64 
17 # gras/datadesc.big32_4 gras/datadesc.big32_2 
18
19
20 # Test stuff
21
22 xbt_tests =                                                      \
23         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string     \
24         xbt/dict_usage   xbt/dict_crash                          \
25         xbt/set_usage                                            \
26         xbt/log_usage                                            \
27         xbt/heap_bench                                           \
28         xbt/swag_usage                                           \
29         xbt/context_usage                                        \
30         xbt/config_usage
31 # xbt/multidict_crash 
32
33 RL_tests =                                              \
34         gras/trp_tcp_client   gras/trp_tcp_server       \
35         gras/trp_file_client  gras/trp_file_server      \
36         gras/datadesc_usage                             
37
38 SG_tests =                                              \
39         surf/maxmin_usage surf/maxmin_bench \
40         surf/trace_usage surf/surf_usage surf/surf_usage2 \
41         msg/msg_test
42
43 noinst_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
44 check_SCRIPTS = run_tests gras/trp_tcp_usage
45 TESTS=run_tests
46
47 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
48         ./run_tests
49 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
50         ./run_tests valgrind
51
52 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
53 LDADD_SG=$(top_builddir)/src/libsimgrid.la 
54 LDADD_RL=$(top_builddir)/src/libgras.la   
55
56 xbt_log_usage_LDADD=          $(LDADD_RL)
57
58 xbt_dynar_int_LDADD=          $(LDADD_RL)
59 xbt_dynar_double_LDADD=       $(LDADD_RL)
60 xbt_dynar_string_LDADD=       $(LDADD_RL)
61
62 xbt_dict_usage_LDADD=         $(LDADD_RL)
63 xbt_dict_crash_LDADD=         $(LDADD_RL)
64 #xbt_multidict_crash_LDADD=    $(LDADD_RL)
65
66 xbt_set_usage_LDADD=          $(LDADD_RL)
67 xbt_swag_usage_LDADD=         $(LDADD_RL)
68
69 xbt_config_usage_LDADD=       $(LDADD_RL)
70
71 xbt_heap_bench_LDADD=         $(LDADD_RL)
72
73 xbt_context_usage_LDADD=      $(LDADD_SG)
74
75 surf_maxmin_usage_LDADD=      $(LDADD_SG)
76 surf_maxmin_bench_LDADD=      $(LDADD_SG)
77 surf_trace_usage_LDADD=       $(LDADD_SG)
78 surf_surf_usage_LDADD=        $(LDADD_SG)
79 surf_surf_usage2_LDADD=       $(LDADD_SG)
80
81 msg_msg_test_LDADD=           $(LDADD_SG)
82
83 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
84 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
85 gras_trp_file_client_LDADD=    $(LDADD_RL)
86 gras_trp_file_server_LDADD=    $(LDADD_RL)
87
88 gras_datadesc_usage_SOURCES=   gras/datadesc_usage.c gras/datadesc_structs.c
89 gras_datadesc_usage_LDADD=     $(LDADD_RL)
90
91 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
92         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c
93
94 include $(top_srcdir)/acmacro/dist-files.mk