forked from Parallel-NetCDF/E3SM-IO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
64 lines (53 loc) · 1.74 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src datasets
DIST_SUBDIRS = src datasets utils
if BUILD_UTILS
SUBDIRS += utils
endif
TESTS_ENVIRONMENT = export srcdir="$(srcdir)";
TESTS_ENVIRONMENT += export TESTMPIRUN="$(TESTMPIRUN)";
TESTS_ENVIRONMENT += export TESTOUTDIR="$(TESTOUTDIR)";
if ENABLE_PNC
TESTS_ENVIRONMENT += export ENABLE_PNC=1;
TESTS_ENVIRONMENT += export PNETCDF_LIB_PATH="@PNETCDF_LIB_PATH@";
endif
if ENABLE_NETCDF4
TESTS_ENVIRONMENT += export ENABLE_NETCDF4=1;
TESTS_ENVIRONMENT += export NETCDF4_LIB_PATH="@NETCDF4_LIB_PATH@";
endif
if ENABLE_ADIOS2
TESTS_ENVIRONMENT += export ENABLE_ADIOS2=1;
TESTS_ENVIRONMENT += export ADIOS2_LIB_PATH="@ADIOS2_LIB_PATH@";
endif
if ENABLE_HDF5
TESTS_ENVIRONMENT += export ENABLE_HDF5=1;
TESTS_ENVIRONMENT += export HDF5_LIB_PATH="@HDF5_LIB_PATH@";
endif
if HDF5_HAVE_MULTI_DATASET_API
TESTS_ENVIRONMENT += export HDF5_HAVE_MULTI_DATASET_API=1;
endif
if ENABLE_LOGVOL
TESTS_ENVIRONMENT += export ENABLE_LOGVOL=1;
TESTS_ENVIRONMENT += export LOGVOL_LIB_PATH="@LOGVOL_LIB_PATH@";
TESTS_ENVIRONMENT += export H5LDUMP="@H5LDUMP@";
TESTS_ENVIRONMENT += export LOGVOL_LIB_SHARED="@LOGVOL_LIB_SHARED@";
endif
TESTS = test.sh
EXTRA_DIST = test.sh \
m4/foreach_idx.m4 \
m4/foreach.m4 \
m4/list_len.m4 \
m4/utils.m4 \
README.md \
COPYRIGHT \
AUTHORS \
docs
ptest: src/e3sm_io
@echo "==========================================================="
@echo " Parallel testing on 16 MPI processes"
@echo "==========================================================="
@$(TESTS_ENVIRONMENT) \
$(srcdir)/test.sh 16 || exit 1
clean-local:
-rm -rf test_output/
.PHONY: ptest