1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
# This directory is for sequential tests of src/ functions only.
# Add your codes that you want to build at 'make check'
# Do not build Fortran codes if Fortran is not supported.
# Do not build a code using the write API if only the read API is available
# Steps:
# 1. add C code name to test_C
# 2. add Fortran code name to test_F
# 3. define build rules for your code
# 4. add files to CLEANFILES that should be deleted at 'make clean'
# 5. add to EXTRA_DIST any non-source files that should go with the distribution
test_C = hashtest copy_subvolume text_to_pairstruct test_strutil points_1DtoND trim_spaces
if BUILD_WRITE
test_C += transforms_specparse group_free_test query_minmax read_points_2d read_points_3d array_attribute array_attribute
endif
if BUILD_FORTRAN
test_F = selection_api
if BUILD_WRITE
# test_F +=
endif
endif
check_PROGRAMS=$(test_C) $(test_F)
# Sequential tests to be executed by "make check" can be defined right here in TESTS
TESTS=$(test_C) $(test_F)
AM_CPPFLAGS = $(all_includes)
AM_CPPFLAGS += -I$(top_builddir)/src/public -I$(top_builddir)/src -I$(top_srcdir)/src/public
#all-local:
# test "$(srcdir)" = "$(builddir)" || cp -p $(srcdir)/*.xml $(builddir)
#############################
# Build rules for each test #
#############################
#
# C Tests
#
hashtest_SOURCES=hashtest.c
hashtest_LDADD = $(top_builddir)/src/core/libcoreonce_a-qhashtbl.o
hashtest_LDFLAGS = $(AM_LDFLAGS)
hashtest_CPPFLAGS = -I$(top_srcdir)/src
hashtest.o: hashtest.c
copy_subvolume_SOURCES=copy_subvolume.c
copy_subvolume_LDADD = $(top_builddir)/src/libadiosread_nompi.a $(ADIOSREADLIB_SEQ_LDADD)
copy_subvolume_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_SEQ_LDFLAGS)
copy_subvolume_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSREADLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
copy_subvolume.o: copy_subvolume.c
text_to_pairstruct_SOURCES=text_to_pairstruct.c
text_to_pairstruct_LDADD = $(top_builddir)/src/core/libcoreonce_a-strutil.o
text_to_pairstruct_LDFLAGS = $(AM_LDFLAGS)
text_to_pairstruct_CPPFLAGS = -I$(top_srcdir)/src
text_to_pairstruct.o: text_to_pairstruct.c
test_strutil_SOURCES=test_strutil.c
test_strutil_LDADD = $(top_builddir)/src/core/libcoreonce_a-strutil.o
test_strutil_LDFLAGS = $(AM_LDFLAGS)
test_strutil_CPPFLAGS = -I$(top_srcdir)/src
test_strutil.o: test_strutil.c
points_1DtoND_SOURCES=points_1DtoND.c
points_1DtoND_LDADD = $(top_builddir)/src/libadiosread_nompi.a $(ADIOSREADLIB_SEQ_LDADD)
points_1DtoND_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_SEQ_LDFLAGS)
points_1DtoND_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSREADLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
points_1DtoND.o: points_1DtoND.c
trim_spaces_SOURCES=trim_spaces.c
trim_spaces_LDADD = $(top_builddir)/src/libadiosread_nompi.a $(ADIOSREADLIB_SEQ_LDADD)
trim_spaces_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_SEQ_LDFLAGS)
trim_spaces_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSREADLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
trim_spaces.o: trim_spaces.c
#
# C Tests built only with write-enabled
#
transforms_specparse_SOURCES=transforms_specparse.c
transforms_specparse_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
transforms_specparse_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
transforms_specparse_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS)
transforms_specparse.o: transforms_specparse.c
group_free_test_SOURCES=group_free_test.c
group_free_test_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
group_free_test_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
group_free_test_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
group_free_test.o: group_free_test.c
query_minmax_SOURCES=query_minmax.c
query_minmax_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
query_minmax_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
query_minmax_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
query_minmax.o: query_minmax.c
read_points_2d_SOURCES=read_points_2d.c
read_points_2d_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
read_points_2d_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
read_points_2d_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
read_points_2d.o: read_points_2d.c
read_points_3d_SOURCES=read_points_3d.c
read_points_3d_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
read_points_3d_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
read_points_3d_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
read_points_3d.o: read_points_3d.c
array_attribute_SOURCES=array_attribute.c
array_attribute_LDADD = $(top_builddir)/src/libadios_nompi.a $(ADIOSLIB_SEQ_LDADD)
array_attribute_LDFLAGS = $(AM_LDFLAGS) $(ADIOSLIB_SEQ_LDFLAGS) $(ADIOSLIB_EXTRA_LDFLAGS)
array_attribute_CPPFLAGS = -I$(top_srcdir)/src $(ADIOSLIB_SEQ_CPPFLAGS) -I$(top_builddir)/src/public
array_attribute.o: array_attribute.c
#
# FORTRAN Tests
#
FC=$(MPIFC)
selection_api_SOURCES=selection_api.F90
selection_api_LDADD = $(top_builddir)/src/libadiosreadf_nompi.a $(ADIOSREADLIB_SEQ_LDADD)
selection_api_LDFLAGS = $(AM_LDFLAGS) $(ADIOSREADLIB_SEQ_LDFLAGS)
EXTRA_DIST =
CLEANFILES =
FCLINK = \
$(LIBTOOL) --mode=link --tag F77 $(FC) \
$(AM_FCFLAGS) $(FCFLAGS) $(LDFLAGS) -o $@
|