Skip to content

Commit a5e9e80

Browse files
committed
add make check to CI
1 parent 7346629 commit a5e9e80

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

darshan-runtime/test/Makefile.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ AM_CPPFLAGS = -I$(top_builddir)
77

88
check_PROGRAMS =
99

10-
#if BUILD_MPIIO_MODULE
11-
check_PROGRAMS += tst_mpi_io
12-
tst_mpi_io_SOURCES = tst_mpi_io.c
13-
#endif
10+
if BUILD_MPIIO_MODULE
11+
check_PROGRAMS += tst_mpi_io
12+
tst_mpi_io_SOURCES = tst_mpi_io.c
13+
endif
1414

1515
AM_TESTS_ENVIRONMENT = export TESTMPIRUN="$(TESTMPIRUN)";
1616
AM_TESTS_ENVIRONMENT += export TST_DARSHAN_LOG_PATH="$(__DARSHAN_LOG_PATH)";

darshan-test/automated/build-darshan.sh

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
# Generic script to automate building of Darshan
44
#
55

6+
# Exit immediately if a command exits with a non-zero status.
7+
set -x
8+
69
basedir=$PWD
710
build_dir=$PWD/darshan_build
811
script_dir=$(dirname $(realpath $0))
@@ -28,7 +31,7 @@ if [ ! -v DARSHAN_RUNTIME_SKIP ]; then
2831
DARSHAN_RUNTIME_CONFIG_ARGS="--with-jobid-env=NONE --enable-apmpi-mod"
2932
fi
3033
$darshan_root_dir/darshan-runtime/configure $DARSHAN_RUNTIME_CONFIG_ARGS --with-log-path=$DARSHAN_LOG_PATH --prefix=$DARSHAN_INSTALL_PREFIX
31-
make install
34+
make -j8 install
3235
fi
3336

3437
# configure and build darshan-util
@@ -37,4 +40,18 @@ if [ -z "${DARSHAN_UTIL_CONFIG_ARGS}" ]; then
3740
DARSHAN_UTIL_CONFIG_ARGS="--enable-apmpi-mod --enable-apxc-mod"
3841
fi
3942
$darshan_root_dir/darshan-util/configure $DARSHAN_UTIL_CONFIG_ARGS --prefix=$DARSHAN_INSTALL_PREFIX
40-
make install
43+
make -j8 install
44+
45+
# run check
46+
make check
47+
48+
# run "make check" for darshan-runtime must be done after darshan-util has been
49+
# built, as it used darshan-parser.
50+
if [ ! -v DARSHAN_RUNTIME_SKIP ]; then
51+
cd $build_dir/darshan-runtime
52+
# run check
53+
make check
54+
55+
#dump log files
56+
cat test/tst_runs.log
57+
fi

0 commit comments

Comments
 (0)