Also test memcheck/tests/vbit-test on any secondary arch.

If we are building a secondary arch then also build and run the
memcheck vbit-test for that architecture.
This commit is contained in:
Mark Wielaard
2018-12-23 13:29:27 +01:00
parent d43c20b391
commit 49ca1853fc
3 changed files with 23 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ noinst_HEADERS = vtest.h vbits.h
noinst_PROGRAMS = vbit-test
if VGCONF_HAVE_PLATFORM_SEC
noinst_PROGRAMS += vbit-test-sec
endif
if VGCONF_OS_IS_DARWIN
noinst_DSYMS = $(noinst_PROGRAMS)
endif
@@ -41,3 +45,19 @@ vbit_test_CFLAGS = $(AM_CFLAGS_PRI)
vbit_test_DEPENDENCIES =
vbit_test_LDADD = $(top_builddir)/VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
vbit_test_LDFLAGS = $(AM_CFLAGS_PRI) @LIB_UBSAN@
if VGCONF_HAVE_PLATFORM_SEC
vbit_test_sec_SOURCES = $(SOURCES)
vbit_test_sec_CPPFLAGS = $(AM_CPPFLAGS_SEC) \
$(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
-I$(top_srcdir)/include \
-I$(top_srcdir)/memcheck \
-I$(top_srcdir)/VEX/pub
vbit_test_sec_CFLAGS = $(AM_CFLAGS_SEC) \
$(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
vbit_test_sec_DEPENDENCIES =
vbit_test_sec_LDADD = $(top_builddir)/VEX/libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a \
$(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
vbit_test_sec_LDFLAGS = $(AM_CFLAGS_SEC) @LIB_UBSAN@ \
$(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
endif

View File

@@ -0,0 +1,3 @@
prog: vbit-test-sec
prereq: test -x vbit-test-sec
vgopts: -q --expensive-definedness-checks=yes