Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make the makefile more manageable by splitting variables definitions for each test
[simgrid.git] / teshsuite / Makefile.am
index 5c92ce8..5550ad0 100644 (file)
@@ -1,50 +1,64 @@
 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/src -I$(top_srcdir)/src/include
 AM_CFLAGS = -g
 
-
-CLEANFILES = gras/datadesc/datadesc_usage.out datadesc_usage.out
-EXTRA_DIST= \
-  gras/datadesc/datadesc.little32_4 \
-  gras/datadesc/datadesc.little64\
-  gras/datadesc/datadesc.big32_8 gras/datadesc/datadesc.big32_8_4 gras/datadesc/datadesc.big32_2 \
-  gras/datadesc/mk_datadesc_structs.pl
-  
+# Declare all the variables to empty, so that each test set can add
+# their content to them
+CLEANFILES = 
+EXTRA_DIST= 
+noinst_PROGRAMS=
 
 TESTS_ENVIRONMENT = $(top_builddir)/tools/tesh/tesh
-TESTS = xbt/parallel_log_crashtest.tesh     \
-       gras/datadesc/datadesc_mem.tesh          \
-       gras/datadesc/datadesc_rw.tesh           \
-       gras/datadesc/datadesc_r_little32_4.tesh \
-       gras/datadesc/datadesc_r_little64.tesh   \
-       \
-        gras/datadesc/datadesc_r_big32_8.tesh      \
-       gras/datadesc/datadesc_r_big32_8_4.tesh  \
-       gras/datadesc/datadesc_r_big32_2.tesh
+TESTS =
+XFAIL_TESTS=
 
-# Data sets still to regenerate:
-XFAIL_TESTS= \
-       gras/datadesc/datadesc_r_little32.tesh   \
-        gras/datadesc/datadesc_r_big32_8.tesh      \
-       gras/datadesc/datadesc_r_big32_8_4.tesh  \
-       gras/datadesc/datadesc_r_big32_2.tesh
-
-noinst_PROGRAMS = \
-       xbt/parallel_log_crashtest \
-       \
-       gras/datadesc/datadesc_usage   
-                              
 LDADD_SG=$(abs_top_builddir)/src/libsimgrid.la
 LDADD_RL=$(abs_top_builddir)/src/libgras.la
 
-# Try parallel logs 
+#################
+### XBT tests ###
+#################
+
+  ## Try parallel logs ##
+  #######################
+  
+TESTS += xbt/parallel_log_crashtest.tesh
+noinst_PROGRAMS += xbt/parallel_log_crashtest 
 xbt_parallel_log_crashtest_LDADD = $(LDADD_RL)
 
-# Try structured communication facilities
+##################
+### GRAS tests ###
+##################
+
+  ## Try structured communication facilities ##
+  #############################################
+  
+CLEANFILES += gras/datadesc/datadesc_usage.out
+EXTRA_DIST += \
+  gras/datadesc/datadesc.little32_4 \
+  gras/datadesc/datadesc.little64\
+  gras/datadesc/datadesc.big32_8 gras/datadesc/datadesc.big32_8_4 gras/datadesc/datadesc.big32_2 \
+  gras/datadesc/mk_datadesc_structs.pl
+TESTS += \
+  gras/datadesc/datadesc_mem.tesh          \
+  gras/datadesc/datadesc_rw.tesh           \
+  gras/datadesc/datadesc_r_little32_4.tesh \
+  gras/datadesc/datadesc_r_little64.tesh   \
+  \
+  gras/datadesc/datadesc_r_big32_8.tesh      \
+  gras/datadesc/datadesc_r_big32_8_4.tesh  \
+  gras/datadesc/datadesc_r_big32_2.tesh
+# Data sets still to regenerate:
+XFAIL_TESTS+= \
+  gras/datadesc/datadesc_r_little32.tesh   \
+  gras/datadesc/datadesc_r_big32_8.tesh    \
+  gras/datadesc/datadesc_r_big32_8_4.tesh  \
+  gras/datadesc/datadesc_r_big32_2.tesh
+  
+noinst_PROGRAMS += gras/datadesc/datadesc_usage   
 gras_datadesc_datadesc_usage_SOURCES=   gras/datadesc/datadesc_usage.c gras/datadesc/datadesc_structs.c
 gras_datadesc_datadesc_usage_LDADD=     $(LDADD_RL)
 
 gras/datadesc/datadesc_structs.c: gras/datadesc/mk_datadesc_structs.pl
        cd gras/datadesc ; perl ../$(top_srcdir)/teshsuite/gras/datadesc/mk_datadesc_structs.pl > datadesc_structs.c
 
-
 include $(top_srcdir)/acmacro/dist-files.mk