Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename GROS to XBT, thanks Arnaud ;)
[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/mk_datadesc_structs.pl
10
11 # Test stuff
12
13 xbt_tests =                                                      \
14         xbt/dynar_int    xbt/dynar_double   xbt/dynar_string   \
15         xbt/dict_usage   xbt/dict_crash                         \
16         xbt/set_usage                                            \
17         xbt/log_usage                                            \
18         xbt/config_usage
19 # xbt/multidict_crash 
20
21 RL_tests =                                              \
22         gras/trp_tcp_client   gras/trp_tcp_server       \
23         gras/trp_file_client  gras/trp_file_server      \
24         gras/datadesc_usage
25
26 SG_tests =
27
28 check_PROGRAMS = $(xbt_tests) $(RL_tests) $(SG_tests)
29 check_SCRIPTS = run_tests gras/trp_tcp_usage
30 TESTS=run_tests
31
32 test: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
33         ./run_tests
34 valgrind: $(noinst_PROGRAMS) $(noinst_SCRIPTS)
35         ./run_tests valgrind
36
37 # LDADD_UTILS is still a separate var to distinguish core tester from RL tester
38 LDADD_UTILS=$(top_builddir)/src/libgrasrl.la 
39 LDADD_RL=   $(top_builddir)/src/libgrasrl.la   
40
41 xbt_log_usage_LDADD=          $(LDADD_UTILS)
42
43 xbt_dynar_int_LDADD=          $(LDADD_UTILS)
44 xbt_dynar_double_LDADD=       $(LDADD_UTILS)
45 xbt_dynar_string_LDADD=       $(LDADD_UTILS)
46
47 xbt_dict_usage_LDADD=         $(LDADD_UTILS)
48 xbt_dict_crash_LDADD=         $(LDADD_UTILS)
49 #xbt_multidict_crash_LDADD=    $(LDADD_UTILS)
50
51 xbt_set_usage_LDADD=          $(LDADD_UTILS)
52
53 xbt_config_usage_LDADD=       $(LDADD_UTILS)
54
55 gras_trp_tcp_client_LDADD=     $(LDADD_RL)
56 gras_trp_tcp_server_LDADD=     $(LDADD_RL)
57 gras_trp_file_client_LDADD=    $(LDADD_RL)
58 gras_trp_file_server_LDADD=    $(LDADD_RL)
59
60 gras_datadesc_usage_SOURCES= gras/datadesc_usage.c gras/datadesc_structs.c
61 gras_datadesc_usage_LDADD=     $(LDADD_RL)
62
63 gras/datadesc_structs.c: gras/mk_datadesc_structs.pl
64         cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c