Skip to content

Commit

Permalink
Build test program but do not allow to run them has atf/kyua has change
Browse files Browse the repository at this point in the history
and are not yes usable as is
  • Loading branch information
bapt committed Mar 4, 2014
1 parent fff6047 commit 5a7f24c
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 79 deletions.
14 changes: 14 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ dist_zshcomp_DATA= scripts/completion/_pkg.zsh

include_HEADERS= libpkg/pkg.h

check_PROGRAMS= tests/pkg_printf tests/pkg_validation

libelf_la_SOURCES= external/libelf/elf.c \
external/libelf/elf_begin.c \
external/libelf/elf_cntl.c \
Expand Down Expand Up @@ -345,6 +347,16 @@ pkg_static_SOURCES= $(pkg_SOURCES)
pkg_static_LDADD= $(pkg_LDADD) -llzma -lbz2 -lz
pkg_static_LDFLAGS= -all-static

tests_pkg_printf_SOURCES= libpkg/pkg_printf.c \
tests/lib/pkg_printf_test.c
tests_pkg_printf_CFLAGS= -I$(top_srcdir)/libpkg -DTESTING
tests_pkg_printf_LDADD= libpkg.la -latf-c
tests_pkg_printf_LDLAGS= -Wl,-rpath=\$$ORIGIN/../.libs
tests_pkg_validation_SOURCES= tests/lib/pkg_validation.c
tests_pkg_validation_CFLAGS= -I$(top_srcdir)/libpkg -DTESTING
tests_pkg_validation_LDADD= libpkg.la -latf-c
tests_pkg_validation_LDLAGS= -Wl,-rpath=\$$ORIGIN/../.libs

external/libelf/libelf_convert.c:
@echo " M4 " $@;
@m4 -D SRCDIR=external/libelf $(top_srcdir)/external/libelf/elf_types.m4 $(top_srcdir)/external/libelf/libelf_convert.m4 > $@
Expand All @@ -357,3 +369,5 @@ external/libelf/libelf_msize.c:
@echo " M4 " $@;
@m4 -D SRCDIR=external/libelf $(top_srcdir)/external/libelf/elf_types.m4 $(top_srcdir)/external/libelf/libelf_msize.m4 > $@

regression-test:check
@echo "ATF/KYUA has change our testing framework is not compatible for now"
Loading

0 comments on commit 5a7f24c

Please sign in to comment.