Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make automake happy
[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/log_usage                                            \
23         xbt/heap_bench                                           \
24         xbt/context_usage                                        
25
26 RL_tests =                                              \
27         gras/trp_tcp_client   gras/trp_tcp_server       \
28         gras/trp_file_client  gras/trp_file_server      \
29         gras/datadesc_usage                             
30
31 SG_tests =                                              \
32         surf/maxmin_usage surf/maxmin_bench \
33         surf/trace_usage surf/surf_usage surf/surf_usage2
34
35 noinst_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
36 check_SCRIPTS = run_tests gras/trp_tcp_usage
37 TESTS=run_tests
38
39 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
40         ./run_tests
41 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
42         ./run_tests valgrind
43
44 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
45 LDADD_SG=$(top_builddir)/src/libsimgrid.la 
46 LDADD_RL=$(top_builddir)/src/libgras.la   
47
48 xbt_log_usage_LDADD=          $(LDADD_RL)
49
50 xbt_heap_bench_LDADD=         $(LDADD_RL)
51
52 xbt_context_usage_LDADD=      $(LDADD_SG)
53
54 surf_maxmin_usage_LDADD=      $(LDADD_SG)
55 surf_maxmin_bench_LDADD=      $(LDADD_SG)
56 surf_trace_usage_LDADD=       $(LDADD_SG)
57 surf_surf_usage_LDADD=        $(LDADD_SG)
58 surf_surf_usage2_LDADD=       $(LDADD_SG)
59
60 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
61 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
62 gras_trp_file_client_LDADD=    $(LDADD_RL)
63 gras_trp_file_server_LDADD=    $(LDADD_RL)
64
65 gras_datadesc_usage_SOURCES=   gras/datadesc_usage.c gras/datadesc_structs.c
66 gras_datadesc_usage_LDADD=     $(LDADD_RL)
67
68 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
69         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c
70
71 include $(top_srcdir)/acmacro/dist-files.mk