Skip to content

Commit

Permalink
added Makefile.am in tests/general which does noting
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 23, 2019
1 parent f798cd2 commit 3a34128
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,6 @@ AC_OUTPUT(Makefile
tests/Makefile
tests/cunit/Makefile
tests/unit/Makefile
tests/general/Makefile
examples/Makefile
examples/c/Makefile)
6 changes: 4 additions & 2 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@

# Ed Hartnett

# Does the user want to build fortran?
# Does the user want to build fortran? If so, there are two additional
# test directories.
if BUILD_FORTRAN
UNIT = unit
GENERAL = general
endif

SUBDIRS = cunit ${UNIT}
SUBDIRS = cunit ${UNIT} ${GENERAL}

EXTRA_DIST = CMakeLists.txt
34 changes: 34 additions & 0 deletions tests/general/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## This is the automake file for building the Fortran general tests
## for the PIO library.

# Ed Hartnett 3/22/19

# Link to our assembled library.
AM_LDFLAGS = ${top_builddir}/src/clib/libpio.la
AM_CPPFLAGS = -I$(top_srcdir)/src/flib
AM_CPPFLAGS += "-D_NETCDF -D_NETCDF4 -D_PETCDF"
LDADD = ${top_builddir}/src/clib/libpiof.la

# # Build the test for make check.
# check_PROGRAMS = pio_unit_test_driver
# pio_unit_test_driver_SOURCES = driver.F90
# pio_unit_test_driver_LDADD = libglobal_vars.la libncdf_tests.la \
# libbasic_tests.la ${top_builddir}/src/flib/libpiof.la ${top_builddir}/src/clib/libpio.la

# # Build these uninstalled convenience libraries.
# noinst_LTLIBRARIES = libglobal_vars.la libncdf_tests.la \
# libbasic_tests.la

# # The convenience libraries depends on their source.
# libglobal_vars_la_SOURCES = global_vars.F90
# libncdf_tests_la_SOURCES = ncdf_tests.F90
# libbasic_tests_la_SOURCES = basic_tests.F90

# # Tests will run from a bash script.
# #TESTS = run_tests.sh

# Distribute the test script.
EXTRA_DIST = CMakeLists.txt #run_tests.sh

# Clean up files produced during testing.
CLEANFILES = *.nc *.log

0 comments on commit 3a34128

Please sign in to comment.