Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move OSSP testsuite code out of the testsuite/ dir so that it becomes part of XBT
[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 gras/datadesc.big32_2 \
11   gras/mk_datadesc_structs.pl \
12   surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt surf/platform.xml
13
14 # Data sets still to regenerate:
15 # gras/datadesc.big64 
16 # gras/datadesc.big32_4 
17
18
19 # Test stuff
20
21 xbt_tests =                                                      \
22         xbt/ex_test                                              \
23         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string     \
24         xbt/dict_usage   xbt/dict_crash     xbt/multidict_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
32 RL_tests =                                              \
33         gras/trp_tcp_client   gras/trp_tcp_server       \
34         gras/trp_file_client  gras/trp_file_server      \
35         gras/datadesc_usage                             
36
37 SG_tests =                                              \
38         surf/maxmin_usage surf/maxmin_bench \
39         surf/trace_usage surf/surf_usage surf/surf_usage2
40
41 noinst_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
42 check_SCRIPTS = run_tests gras/trp_tcp_usage
43 TESTS=run_tests
44
45 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
46         ./run_tests
47 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
48         ./run_tests valgrind
49
50 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
51 LDADD_SG=$(top_builddir)/src/libsimgrid.la 
52 LDADD_RL=$(top_builddir)/src/libgras.la   
53
54 xbt_ex_test_LDADD=            $(LDADD_RL)
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 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
82 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
83 gras_trp_file_client_LDADD=    $(LDADD_RL)
84 gras_trp_file_server_LDADD=    $(LDADD_RL)
85
86 gras_datadesc_usage_SOURCES=   gras/datadesc_usage.c gras/datadesc_structs.c
87 gras_datadesc_usage_LDADD=     $(LDADD_RL)
88
89 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
90         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c
91
92 include $(top_srcdir)/acmacro/dist-files.mk