Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Corrected the simeng_usage.c directive.
[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   testgraph.xml testgraph.dot
6 DISTCLEANFILES =  gras/.libs/* xbt/.libs/* surf/.libs/* msg/.libs/* simdag/.libs/*
7
8 EXTRA_DIST=run_tests.in \
9   gras/datadesc.little32 gras/datadesc.little32_4 \
10   gras/datadesc.little64\
11   gras/datadesc.big32 gras/datadesc.big32_8_4 gras/datadesc.big32_2 \
12   gras/mk_datadesc_structs.pl \
13   xbt/graph.xml \
14   surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt surf/platform.xml\
15   simdag/availability_tremblay.txt simdag/small_platform_variable.xml
16   
17 # Data sets still to regenerate:
18 # gras/datadesc.big64 
19 # gras/datadesc.big32_4 
20
21
22 # Test stuff
23
24 xbt_tests =                                                      \
25         xbt/log_usage                                            \
26         xbt/heap_bench                                           \
27         xbt/graphxml_usage                                       \
28         xbt/context_usage                                        
29
30 RL_tests =                                              \
31         gras/trp_tcp_client   gras/trp_tcp_server       \
32         gras/trp_file_client  gras/trp_file_server      \
33         gras/datadesc_usage                             
34
35 SG_tests =                                              \
36         surf/maxmin_usage surf/maxmin_bench surf/simeng_usage \
37         surf/trace_usage surf/surf_usage surf/surf_usage2
38 #if HAVE_SDP
39 #  SG_tests+=surf/sdp_usage
40 #endif
41
42 simdag_tests = simdag/sd_test
43
44 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests) $(simdag_tests)
45 check_SCRIPTS = run_tests gras/trp_tcp_usage
46 TESTS=run_tests
47
48 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
49         ./run_tests
50 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
51         ./run_tests valgrind
52
53 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
54 LDADD_SG=$(abs_top_builddir)/src/libsimgrid.la 
55 LDADD_RL=$(abs_top_builddir)/src/libgras.la   
56
57 xbt_log_usage_LDADD=          $(LDADD_RL)
58
59 xbt_heap_bench_LDADD=         $(LDADD_RL)
60
61 xbt_graphxml_usage_LDADD=     $(LDADD_SG)
62
63 xbt_context_usage_LDADD=      $(LDADD_SG)
64
65 surf_maxmin_usage_LDADD=      $(LDADD_SG)
66 surf_maxmin_bench_LDADD=      $(LDADD_SG)
67 surf_simeng_usage_LDADD=      $(LDADD_SG)
68 surf_simeng_bench_LDADD=      $(LDADD_SG)
69 surf_trace_usage_LDADD=       $(LDADD_SG)
70 surf_surf_usage_LDADD=        $(LDADD_SG)
71 surf_surf_usage2_LDADD=       $(LDADD_SG)
72 #if HAVE_SDP
73 #surf_sdp_usage_LDADD=         $(LDADD_SG)
74 #surf_sdp_bench_LDADD=         $(LDADD_SG)
75 #endif
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 ../$(top_srcdir)/testsuite/gras/mk_datadesc_structs.pl > datadesc_structs.c
87
88 simdag_sd_test_LDADD=       $(LDADD_SG)
89
90 include $(top_srcdir)/acmacro/dist-files.mk