Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile the simdag test
[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/* 
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
16 # Data sets still to regenerate:
17 # gras/datadesc.big64 
18 # gras/datadesc.big32_4 
19
20
21 # Test stuff
22
23 xbt_tests =                                                      \
24         xbt/log_usage                                            \
25         xbt/heap_bench                                           \
26         xbt/graphxml_usage                                       \
27         xbt/context_usage                                        
28
29 RL_tests =                                              \
30         gras/trp_tcp_client   gras/trp_tcp_server       \
31         gras/trp_file_client  gras/trp_file_server      \
32         gras/datadesc_usage                             
33
34 SG_tests =                                              \
35         surf/maxmin_usage surf/maxmin_bench \
36         surf/trace_usage surf/surf_usage surf/surf_usage2
37
38 simdag_tests = simdag/sd_test
39
40 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests) $(simdag_tests)
41 check_SCRIPTS = run_tests gras/trp_tcp_usage
42 TESTS=run_tests
43
44 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
45         ./run_tests
46 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
47         ./run_tests valgrind
48
49 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
50 LDADD_SG=$(abs_top_builddir)/src/libsimgrid.la 
51 LDADD_RL=$(abs_top_builddir)/src/libgras.la   
52
53 xbt_log_usage_LDADD=          $(LDADD_RL)
54
55 xbt_heap_bench_LDADD=         $(LDADD_RL)
56
57 xbt_graphxml_usage_LDADD=     $(LDADD_SG)
58
59 xbt_context_usage_LDADD=      $(LDADD_SG)
60
61 surf_maxmin_usage_LDADD=      $(LDADD_SG)
62 surf_maxmin_bench_LDADD=      $(LDADD_SG)
63 surf_trace_usage_LDADD=       $(LDADD_SG)
64 surf_surf_usage_LDADD=        $(LDADD_SG)
65 surf_surf_usage2_LDADD=       $(LDADD_SG)
66
67 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
68 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
69 gras_trp_file_client_LDADD=    $(LDADD_RL)
70 gras_trp_file_server_LDADD=    $(LDADD_RL)
71
72 gras_datadesc_usage_SOURCES=   gras/datadesc_usage.c gras/datadesc_structs.c
73 gras_datadesc_usage_LDADD=     $(LDADD_RL)
74
75 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
76         cd gras ; perl ../$(top_srcdir)/testsuite/gras/mk_datadesc_structs.pl > datadesc_structs.c
77
78 include $(top_srcdir)/acmacro/dist-files.mk