Commit 5476fc6f authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add tests for other pio modes.

parent 91c164cd
......@@ -301,6 +301,10 @@ tests/cksum.c -text
tests/cksum.h -text
tests/cksum_read.c -text
tests/cksum_write.c -text
tests/pio_cksum_asynch.in -text
tests/pio_cksum_fpguard.in -text
tests/pio_cksum_mpinonb.in -text
tests/pio_cksum_writer.in -text
tests/pio_write.c -text
tests/pio_write_run.in -text
tests/test_cksum_extra.in -text
......
......@@ -26739,7 +26739,7 @@ fi
 
 
 
ac_config_files="$ac_config_files tests/test_cksum_grib tests/test_cksum_nc tests/test_cksum_nc2 tests/test_cksum_nc4 tests/test_cksum_extra tests/test_cksum_service tests/test_cksum_ieg tests/pio_write_run util/serialrun"
ac_config_files="$ac_config_files tests/test_cksum_grib tests/test_cksum_nc tests/test_cksum_nc2 tests/test_cksum_nc4 tests/test_cksum_extra tests/test_cksum_service tests/test_cksum_ieg tests/pio_write_run tests/pio_cksum_mpinonb tests/pio_cksum_fpguard tests/pio_cksum_asynch tests/pio_cksum_writer util/serialrun"
 
 
ac_config_files="$ac_config_files Makefile src/Makefile interfaces/Makefile app/Makefile tests/Makefile examples/Makefile cdi.settings pioExamples/Makefile src/pkgconfig/cdi.pc"
......@@ -28081,6 +28081,10 @@ do
"tests/test_cksum_service") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_service" ;;
"tests/test_cksum_ieg") CONFIG_FILES="$CONFIG_FILES tests/test_cksum_ieg" ;;
"tests/pio_write_run") CONFIG_FILES="$CONFIG_FILES tests/pio_write_run" ;;
"tests/pio_cksum_mpinonb") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_mpinonb" ;;
"tests/pio_cksum_fpguard") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_fpguard" ;;
"tests/pio_cksum_asynch") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_asynch" ;;
"tests/pio_cksum_writer") CONFIG_FILES="$CONFIG_FILES tests/pio_cksum_writer" ;;
"util/serialrun") CONFIG_FILES="$CONFIG_FILES util/serialrun" ;;
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
......@@ -29905,6 +29909,10 @@ _LT_EOF
"tests/test_cksum_service":F) chmod a+x "$ac_file" ;;
"tests/test_cksum_ieg":F) chmod a+x "$ac_file" ;;
"tests/pio_write_run":F) chmod a+x "$ac_file" ;;
"tests/pio_cksum_mpinonb":F) chmod a+x "$ac_file" ;;
"tests/pio_cksum_fpguard":F) chmod a+x "$ac_file" ;;
"tests/pio_cksum_asynch":F) chmod a+x "$ac_file" ;;
"tests/pio_cksum_writer":F) chmod a+x "$ac_file" ;;
"util/serialrun":F) chmod a+x "$ac_file" ;;
 
esac
......
......@@ -211,6 +211,10 @@ AC_CONFIG_FILES([tests/test_cksum_grib \
tests/test_cksum_service \
tests/test_cksum_ieg \
tests/pio_write_run \
tests/pio_cksum_mpinonb \
tests/pio_cksum_fpguard \
tests/pio_cksum_asynch \
tests/pio_cksum_writer \
util/serialrun],[chmod a+x "$ac_file"])
AC_OUTPUT([Makefile src/Makefile interfaces/Makefile app/Makefile \
......
......@@ -2,7 +2,8 @@
#
TESTS = test_grib.sh test_cksum_grib test_cksum_nc test_cksum_extra \
test_cksum_service test_cksum_nc2 test_cksum_nc4 test_cksum_ieg \
pio_write_run
pio_write_run pio_cksum_mpinonb pio_cksum_fpguard \
pio_cksum_asynch pio_cksum_writer
check_PROGRAMS = test_grib cksum_write cksum_read pio_write
#
test_grib_SOURCES = test_grib.c
......
......@@ -37,6 +37,8 @@ check_PROGRAMS = test_grib$(EXEEXT) cksum_write$(EXEEXT) \
cksum_read$(EXEEXT) pio_write$(EXEEXT)
subdir = tests
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
$(srcdir)/pio_cksum_asynch.in $(srcdir)/pio_cksum_fpguard.in \
$(srcdir)/pio_cksum_mpinonb.in $(srcdir)/pio_cksum_writer.in \
$(srcdir)/pio_write_run.in $(srcdir)/test_cksum_extra.in \
$(srcdir)/test_cksum_grib.in $(srcdir)/test_cksum_ieg.in \
$(srcdir)/test_cksum_nc.in $(srcdir)/test_cksum_nc2.in \
......@@ -60,7 +62,8 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/src/config.h
CONFIG_CLEAN_FILES = test_cksum_grib test_cksum_nc test_cksum_nc2 \
test_cksum_nc4 test_cksum_extra test_cksum_service \
test_cksum_ieg pio_write_run
test_cksum_ieg pio_write_run pio_cksum_mpinonb \
pio_cksum_fpguard pio_cksum_asynch pio_cksum_writer
CONFIG_CLEAN_VPATH_FILES =
am_cksum_read_OBJECTS = cksum_read.$(OBJEXT) cksum.$(OBJEXT)
cksum_read_OBJECTS = $(am_cksum_read_OBJECTS)
......@@ -279,7 +282,8 @@ top_srcdir = @top_srcdir@
#
TESTS = test_grib.sh test_cksum_grib test_cksum_nc test_cksum_extra \
test_cksum_service test_cksum_nc2 test_cksum_nc4 test_cksum_ieg \
pio_write_run
pio_write_run pio_cksum_mpinonb pio_cksum_fpguard \
pio_cksum_asynch pio_cksum_writer
#
test_grib_SOURCES = test_grib.c
......@@ -344,6 +348,14 @@ test_cksum_ieg: $(top_builddir)/config.status $(srcdir)/test_cksum_ieg.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
pio_write_run: $(top_builddir)/config.status $(srcdir)/pio_write_run.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
pio_cksum_mpinonb: $(top_builddir)/config.status $(srcdir)/pio_cksum_mpinonb.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
pio_cksum_fpguard: $(top_builddir)/config.status $(srcdir)/pio_cksum_fpguard.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
pio_cksum_asynch: $(top_builddir)/config.status $(srcdir)/pio_cksum_asynch.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
pio_cksum_writer: $(top_builddir)/config.status $(srcdir)/pio_cksum_writer.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
clean-checkPROGRAMS:
@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
......
#! @SHELL@
pio_write_args="-p PIO_ASYNCH -w 3"
mpi_task_num=7
LOG=pio_cksum_asynch.log
if [ "@USE_MPI@" = yes ]; then
. ./pio_write_run
else
exit 77
fi
\ No newline at end of file
#! @SHELL@
pio_write_args="-p PIO_FPGUARD -w 3"
mpi_task_num=6
LOG=pio_cksum_fpguard.log
if [ "@USE_MPI@" = yes ]; then
. ./pio_write_run
else
exit 77
fi
\ No newline at end of file
#! @SHELL@
pio_write_args="-p PIO_MPI -w 2"
mpi_task_num=4
LOG=pio_cksum_mpinonb.log
if [ "@USE_MPI@" = yes ]; then
. ./pio_write_run
else
exit 77
fi
\ No newline at end of file
#! @SHELL@
pio_write_args="-p PIO_WRITER -w 4"
mpi_task_num=8
LOG=pio_cksum_writer.log
if [ "@USE_MPI@" = yes ]; then
. ./pio_write_run
else
exit 77
fi
\ No newline at end of file
#! @SHELL@
set -e
LOG="pio_write.log"
LOG="${LOG-pio_write.log}"
mpi_task_num="${mpi_task_num-4}"
exec 5>&1 6>&2 >"$LOG" 2>&1
@MPI_LAUNCH@ -n 4 ./pio_write
@MPI_LAUNCH@ -n ${mpi_task_num} ./pio_write ${pio_write_args}
exec 2>&6 1>&5 5>&- 6>&-
./cksum_read example_0.grb example_0.cksum
./cksum_read example_1.grb example_1.cksum
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment