Skip to content

Commit

Permalink
Add tools/libtest to Autotools builds (HDFGroup#3735)
Browse files Browse the repository at this point in the history
This was only added to CMake many years ago and tests the tools
library.
  • Loading branch information
derobins authored Oct 20, 2023
1 parent e01ea70 commit 98b5779
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hl/test/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include $(top_srcdir)/config/commence.am
# Add include directories to C preprocessor flags
AM_CPPFLAGS+=-I. -I$(srcdir) -I$(top_builddir)/src -I$(top_srcdir)/src -I$(top_builddir)/test -I$(top_srcdir)/test -I$(top_srcdir)/hl/src

# The tests depend on the hdf5, hdf5 test, and hdf5_hl libraries
# The tests depend on the hdf5, hdf5 test, and hdf5_hl libraries
LDADD=$(LIBH5_HL) $(LIBH5TEST) $(LIBHDF5)

# Test programs. These are our main targets. They should be listed in the
Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
include $(top_srcdir)/config/commence.am

if BUILD_TESTS_CONDITIONAL
TESTSERIAL_DIR =test
TESTSERIAL_DIR=libtest test
else
TESTSERIAL_DIR=
endif
Expand Down
8 changes: 4 additions & 4 deletions tools/libtest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@

include $(top_srcdir)/config/commence.am

# Include src and tools/lib directories
AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_srcdir)/tools/lib
# Include src, test, and tools/lib directories
AM_CPPFLAGS+=-I$(top_srcdir)/src -I$(top_srcdir)/test -I$(top_srcdir)/tools/lib

# All programs depend on the hdf5 and h5tools libraries
LDADD=$(LIBH5TOOLS) $(LIBHDF5)
# All programs depend on the hdf5, hdf5 test, and h5tools libraries
LDADD=$(LIBH5TOOLS) $(LIBH5TEST) $(LIBHDF5)


# main target
Expand Down

0 comments on commit 98b5779

Please sign in to comment.