Skip to content

Commit 7346629

Browse files
committed
Add an exhaust test for all 56 MPI file write and read APIs
* when large-count feature is not available, test only the 28 non-large-count MPI-IO APIs
1 parent 24cecf2 commit 7346629

File tree

5 files changed

+850
-1
lines changed

5 files changed

+850
-1
lines changed

darshan-runtime/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
ACLOCAL_AMFLAGS = -I ../maint/config
77

8-
SUBDIRS = lib pkgconfig share
8+
SUBDIRS = lib pkgconfig share test
99

1010
bin_SCRIPTS = darshan-config \
1111
darshan-gen-cc.pl \

darshan-runtime/configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,16 @@ if test "x$enable_darshan_runtime" = xyes ; then
807807
if test "x$have_mpi_io_large_count_apis" = "xyes" ; then
808808
AC_DEFINE(HAVE_MPI_LARGE_COUNT, 1,
809809
[Define if MPI-IO support large count feature])
810+
AC_SUBST(HAVE_MPI_LARGE_COUNT, [1])
810811
fi
812+
813+
ac_mpi_path=`AS_DIRNAME(["$CC"])`
814+
if test "x$ac_mpi_path" = "x." ; then
815+
AC_PATH_PROGS(mpicc_path, ${CC})
816+
ac_mpi_path=`AS_DIRNAME(["$mpicc_path"])`
817+
fi
818+
AC_PATH_PROGS(TESTMPIRUN, mpiexec mpirun, [], [$ac_mpi_path])
819+
AC_SUBST(TESTMPIRUN)
811820
else
812821
have_mpi_io_large_count_apis=no
813822
fi
@@ -936,6 +945,7 @@ AC_CONFIG_FILES(Makefile \
936945
darshan-gen-cxx.pl \
937946
darshan-gen-fortran.pl \
938947
lib/Makefile \
948+
test/Makefile \
939949
pkgconfig/Makefile \
940950
pkgconfig/darshan-runtime.pc \
941951
share/Makefile \

darshan-runtime/test/Makefile.am

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#
2+
# See COPYRIGHT notice in top-level directory.
3+
#
4+
# @configure_input@
5+
6+
AM_CPPFLAGS = -I$(top_builddir)
7+
8+
check_PROGRAMS =
9+
10+
#if BUILD_MPIIO_MODULE
11+
check_PROGRAMS += tst_mpi_io
12+
tst_mpi_io_SOURCES = tst_mpi_io.c
13+
#endif
14+
15+
AM_TESTS_ENVIRONMENT = export TESTMPIRUN="$(TESTMPIRUN)";
16+
AM_TESTS_ENVIRONMENT += export TST_DARSHAN_LOG_PATH="$(__DARSHAN_LOG_PATH)";
17+
AM_TESTS_ENVIRONMENT += export USERNAME_ENV="$(USERNAME_ENV)";
18+
AM_TESTS_ENVIRONMENT += export HAVE_MPI_LARGE_COUNT="$(HAVE_MPI_LARGE_COUNT)";
19+
AM_TESTS_ENVIRONMENT += export check_PROGRAMS="$(check_PROGRAMS)";
20+
21+
TESTS = tst_runs.sh
22+
TEST_EXTENSIONS = .sh
23+
24+
EXTRA_DIST = tst_runs.sh
25+

0 commit comments

Comments
 (0)