Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Modifying the API so as to prevent a use of the context that would make valgrind...
[simgrid.git] / testsuite / Makefile.am
1 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src
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.little64 gras/datadesc.big32 gras/datadesc.big64 \
9   gras/datadesc.aix gras/datadesc.win32 gras/datadesc.g5 \
10   gras/mk_datadesc_structs.pl \
11   surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt surf/platform.txt \
12   msg/platform.txt
13
14
15 # Test stuff
16
17 xbt_tests =                                                      \
18         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string     \
19         xbt/dict_usage   xbt/dict_crash                          \
20         xbt/set_usage                                            \
21         xbt/log_usage                                            \
22         xbt/heap_bench                                           \
23         xbt/swag_usage                                           \
24         xbt/context_usage                                        \
25         xbt/config_usage
26 # xbt/multidict_crash 
27
28 RL_tests =                                              \
29         gras/trp_tcp_client   gras/trp_tcp_server       \
30         gras/trp_file_client  gras/trp_file_server      \
31         gras/datadesc_usage
32
33 SG_tests =                                              \
34         surf/maxmin_usage surf/maxmin_bench \
35         surf/trace_usage surf/surf_usage surf/surf_usage2 \
36         msg/msg_test
37
38 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
39 check_SCRIPTS = run_tests gras/trp_tcp_usage
40 TESTS=run_tests
41
42 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
43         ./run_tests
44 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
45         ./run_tests valgrind
46
47 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
48 LDADD_UTILS=$(top_builddir)/src/libgrasrl.la 
49 LDADD_RL=   $(top_builddir)/src/libgrasrl.la   
50
51 xbt_log_usage_LDADD=          $(LDADD_UTILS)
52
53 xbt_dynar_int_LDADD=          $(LDADD_UTILS)
54 xbt_dynar_double_LDADD=       $(LDADD_UTILS)
55 xbt_dynar_string_LDADD=       $(LDADD_UTILS)
56
57 xbt_dict_usage_LDADD=         $(LDADD_UTILS)
58 xbt_dict_crash_LDADD=         $(LDADD_UTILS)
59 #xbt_multidict_crash_LDADD=    $(LDADD_UTILS)
60
61 xbt_set_usage_LDADD=          $(LDADD_UTILS)
62 xbt_swag_usage_LDADD=         $(LDADD_UTILS)
63
64 xbt_config_usage_LDADD=       $(LDADD_UTILS)
65
66 xbt_heap_bench_LDADD=         $(LDADD_UTILS)
67 xbt_context_usage_LDADD=      $(LDADD_UTILS)
68
69 surf_maxmin_usage_LDADD=      $(LDADD_UTILS)
70 surf_maxmin_bench_LDADD=      $(LDADD_UTILS)
71 surf_trace_usage_LDADD=       $(LDADD_UTILS)
72 surf_surf_usage_LDADD=        $(LDADD_UTILS)
73 surf_surf_usage2_LDADD=       $(LDADD_UTILS)
74
75 msg_msg_test_LDADD=           $(LDADD_UTILS)
76
77 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
78 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
79 gras_trp_file_client_LDADD=    $(LDADD_RL)
80 gras_trp_file_server_LDADD=    $(LDADD_RL)
81
82 gras_datadesc_usage_SOURCES= gras/datadesc_usage.c gras/datadesc_structs.c
83 gras_datadesc_usage_LDADD=     $(LDADD_RL)
84
85 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
86         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c