Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gras now works on win32
[simgrid.git] / testsuite / Makefile.am
1 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src
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/*
6 MAINTAINERCLEANFILES=Makefile.in
7 EXTRA_DIST=run_tests.in \
8   gras/datadesc.little32 gras/datadesc.little64 gras/datadesc.big32 gras/datadesc.big64 \
9   gras/datadesc.aix gras/datadesc.win32 \
10   gras/mk_datadesc_structs.pl \
11   surf/trace_A.txt surf/trace_B.txt surf/trace_A_failure.txt
12
13
14 # Test stuff
15
16 xbt_tests =                                                      \
17         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string     \
18         xbt/dict_usage   xbt/dict_crash                          \
19         xbt/set_usage                                            \
20         xbt/log_usage                                            \
21         xbt/heap_bench                                           \
22         xbt/swag_usage                                           \
23         xbt/config_usage
24 # xbt/multidict_crash 
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
34
35 check_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_UTILS=$(top_builddir)/src/libgrasrl.la 
46 LDADD_RL=   $(top_builddir)/src/libgrasrl.la   
47
48 xbt_log_usage_LDADD=          $(LDADD_UTILS)
49
50 xbt_dynar_int_LDADD=          $(LDADD_UTILS)
51 xbt_dynar_double_LDADD=       $(LDADD_UTILS)
52 xbt_dynar_string_LDADD=       $(LDADD_UTILS)
53
54 xbt_dict_usage_LDADD=         $(LDADD_UTILS)
55 xbt_dict_crash_LDADD=         $(LDADD_UTILS)
56 #xbt_multidict_crash_LDADD=    $(LDADD_UTILS)
57
58 xbt_set_usage_LDADD=          $(LDADD_UTILS)
59 xbt_swag_usage_LDADD=         $(LDADD_UTILS)
60
61 xbt_config_usage_LDADD=       $(LDADD_UTILS)
62
63 xbt_heap_bench_LDADD=         $(LDADD_UTILS)
64
65 surf_maxmin_usage_LDADD=      $(LDADD_UTILS)
66 surf_maxmin_bench_LDADD=      $(LDADD_UTILS)
67 surf_trace_usage_LDADD=       $(LDADD_UTILS)
68 surf_surf_usage_LDADD=        $(LDADD_UTILS)
69
70 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
71 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
72 gras_trp_file_client_LDADD=    $(LDADD_RL)
73 gras_trp_file_server_LDADD=    $(LDADD_RL)
74
75 gras_datadesc_usage_SOURCES= gras/datadesc_usage.c gras/datadesc_structs.c
76 gras_datadesc_usage_LDADD=     $(LDADD_RL)
77
78 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
79         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c