Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simdag also needs files in the tarball, and needs to be cleaned up afterward
[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 \
37         surf/trace_usage surf/surf_usage surf/surf_usage2
38
39 simdag_tests = simdag/sd_test
40
41 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests) $(simdag_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=$(abs_top_builddir)/src/libsimgrid.la 
52 LDADD_RL=$(abs_top_builddir)/src/libgras.la   
53
54 xbt_log_usage_LDADD=          $(LDADD_RL)
55
56 xbt_heap_bench_LDADD=         $(LDADD_RL)
57
58 xbt_graphxml_usage_LDADD=     $(LDADD_SG)
59
60 xbt_context_usage_LDADD=      $(LDADD_SG)
61
62 surf_maxmin_usage_LDADD=      $(LDADD_SG)
63 surf_maxmin_bench_LDADD=      $(LDADD_SG)
64 surf_trace_usage_LDADD=       $(LDADD_SG)
65 surf_surf_usage_LDADD=        $(LDADD_SG)
66 surf_surf_usage2_LDADD=       $(LDADD_SG)
67
68 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
69 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
70 gras_trp_file_client_LDADD=    $(LDADD_RL)
71 gras_trp_file_server_LDADD=    $(LDADD_RL)
72
73 gras_datadesc_usage_SOURCES=   gras/datadesc_usage.c gras/datadesc_structs.c
74 gras_datadesc_usage_LDADD=     $(LDADD_RL)
75
76 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
77         cd gras ; perl ../$(top_srcdir)/testsuite/gras/mk_datadesc_structs.pl > datadesc_structs.c
78
79 simdag_sd_test_LDADD=       $(LDADD_SG)
80
81 include $(top_srcdir)/acmacro/dist-files.mk