Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Now the testsuite compile.
[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 datadesc_usage.out 
5 DISTCLEANFILES =  gras/.libs/* xbt/.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 \
10   gras/mk_datadesc_structs.pl
11
12 # Test stuff
13
14 xbt_tests =                                                      \
15         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string     \
16         xbt/dict_usage   xbt/dict_crash                          \
17         xbt/set_usage                                            \
18         xbt/log_usage                                            \
19         xbt/heap_bench                                           \
20         xbt/config_usage
21 # xbt/multidict_crash 
22
23 RL_tests =                                              \
24         gras/trp_tcp_client   gras/trp_tcp_server       \
25         gras/trp_file_client  gras/trp_file_server      \
26         gras/datadesc_usage
27
28 SG_tests =
29
30 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
31 check_SCRIPTS = run_tests gras/trp_tcp_usage
32 TESTS=run_tests
33
34 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
35         ./run_tests
36 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
37         ./run_tests valgrind
38
39 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
40 LDADD_UTILS=$(top_builddir)/src/libgrasrl.la 
41 LDADD_RL=   $(top_builddir)/src/libgrasrl.la   
42
43 xbt_log_usage_LDADD=          $(LDADD_UTILS)
44
45 xbt_dynar_int_LDADD=          $(LDADD_UTILS)
46 xbt_dynar_double_LDADD=       $(LDADD_UTILS)
47 xbt_dynar_string_LDADD=       $(LDADD_UTILS)
48
49 xbt_dict_usage_LDADD=         $(LDADD_UTILS)
50 xbt_dict_crash_LDADD=         $(LDADD_UTILS)
51 #xbt_multidict_crash_LDADD=    $(LDADD_UTILS)
52
53 xbt_set_usage_LDADD=          $(LDADD_UTILS)
54
55 xbt_config_usage_LDADD=       $(LDADD_UTILS)
56
57 xbt_heap_bench_LDADD=         $(LDADD_UTILS)
58
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