Skip to content

Commit

Permalink
more fortran tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 25, 2019
1 parent e8b3350 commit d6b257e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
31 changes: 30 additions & 1 deletion tests/general/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,44 @@ ${top_builddir}/src/clib/libpio.la

AM_CPPFLAGS += -I${top_builddir}/tests/general/util

# There is a test utility mod file in this subdir which must be built.
SRCDIRS = util

# Build this uninstalled convenience library.
noinst_LTLIBRARIES = libpio_rearr_opts.la

# The convenience libraries depends on their source.
libpio_rearr_opts_la_SOURCES = pio_rearr_opts.F90
pio_rearr_opts_tgv.mod: pio_rearr_opts.$(OBJEXT)
BUILT_SOURCES = pio_rearr_opts_tgv.mod

# Build the test for make check.
check_PROGRAMS = pio_init_finalize pio_file_simple_tests \
pio_file_fail ncdf_simple_tests
pio_file_fail ncdf_simple_tests ncdf_get_put ncdf_fail ncdf_inq \
pio_rearr pio_rearr_opts2 pio_decomp_tests \
pio_decomp_tests_1d pio_decomp_tests_2d pio_decomp_tests_3d \
pio_decomp_frame_tests pio_decomp_fillval pio_iosystem_tests \
pio_iosystem_tests2 pio_iosystem_tests3

pio_init_finalize_SOURCES = pio_init_finalize.F90
pio_file_simple_tests_SOURCES = pio_file_simple_tests.F90
pio_file_fail_SOURCES = pio_file_fail.F90
ncdf_simple_tests_SOURCES = ncdf_simple_tests.F90
ncdf_get_put_SOURCES = ncdf_get_put.F90
ncdf_fail_SOURCES = ncdf_fail.F90
ncdf_inq_SOURCES = ncdf_inq.F90
pio_rearr_SOURCES = pio_rearr.F90
pio_rearr_opts_SOURCES = pio_rearr_opts.F90
pio_rearr_opts2_SOURCES = pio_rearr_opts2.F90
pio_decomp_tests_SOURCES = pio_decomp_tests.F90
pio_decomp_tests_1d_SOURCES = pio_decomp_tests_1d.F90
pio_decomp_tests_2d_SOURCES = pio_decomp_tests_2d.F90
pio_decomp_tests_3d_SOURCES = pio_decomp_tests_3d.F90
pio_decomp_frame_tests_SOURCES = pio_decomp_frame_tests.F90
pio_decomp_fillval_SOURCES = pio_decomp_fillval.F90
pio_iosystem_tests_SOURCES = pio_iosystem_tests.F90
pio_iosystem_tests2_SOURCES = pio_iosystem_tests2.F90
pio_iosystem_tests3_SOURCES = pio_iosystem_tests3.F90

# Tests will run from a bash script.
TESTS = run_tests.sh
Expand Down
7 changes: 6 additions & 1 deletion tests/general/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ trap exit INT TERM
printf 'running PIO tests...\n'

PIO_TESTS='pio_init_finalize pio_file_simple_tests pio_file_fail '\
'ncdf_simple_tests'
'ncdf_simple_tests ncdf_get_put ncdf_fail ncdf_inq pio_rearr '\
'pio_decomp_tests pio_decomp_tests_1d '\
'pio_decomp_tests_2d pio_decomp_tests_3d pio_decomp_frame_tests '\
'pio_decomp_fillval pio_iosystem_tests pio_iosystem_tests2 '\
'pio_iosystem_tests3'
# pio_rearr_opts pio_rearr_opts2

success1=true
for TEST in $PIO_TESTS
Expand Down

0 comments on commit d6b257e

Please sign in to comment.