Skip to content

Commit

Permalink
utiltest: test harness for testing libutil based on acutest.h
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Oct 14, 2022
1 parent d85af98 commit 57b8b62
Show file tree
Hide file tree
Showing 7 changed files with 1,907 additions and 3 deletions.
14 changes: 13 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ noinst_LIBRARIES =
noinst_LIBRARIES += libctags.a
noinst_LIBRARIES += libutil.a

noinst_PROGRAMS =
noinst_PROGRAMS = utiltest

# packcc always uses native compiler even when cross-compiling.
# packcc cannot use the standard Automake rule.
Expand Down Expand Up @@ -126,6 +126,18 @@ libutil_a_CPPFLAGS+= $(DEBUG_CPPFLAGS)
endif
dist_libutil_a_SOURCES = $(UTIL_HEADS) $(UTIL_SRCS)

utiltest_CPPFLAGS = -I$(srcdir) -I$(srcdir)/main
utiltest_CFLAGS =
utiltest_CFLAGS += $(EXTRA_CFLAGS)
utiltest_CFLAGS += $(WARNING_CFLAGS)
utiltest_CFLAGS += $(COVERAGE_CFLAGS)
if ENABLE_DEBUGGING
utiltest_CPPFLAGS += $(DEBUG_CPPFLAGS)
endif
utiltest_LDADD =
utiltest_LDADD += libutil.a
dist_utiltest_SOURCES = $(UTILTEST_HEADS) $(UTILTEST_SRCS)

libctags_a_CPPFLAGS = -I. -I$(srcdir) -I$(srcdir)/main -I$(srcdir)/dsl -I$(srcdir)/peg -DHAVE_PACKCC
if ENABLE_DEBUGGING
libctags_a_CPPFLAGS+= $(DEBUG_CPPFLAGS)
Expand Down
Loading

0 comments on commit 57b8b62

Please sign in to comment.