Add check-exactness target with -j support

It is still on going.

One of the issues is that for some mystic reason, the
HAVE_EXACTNESS_DATA seems not checked as the target check-exactness is
always present, no matter if the submodule exists.
This commit is contained in:
Daniel Zaoui 2018-05-22 22:35:39 +03:00
parent 3ddd87589d
commit f1bfcaeaf0
2 changed files with 14 additions and 0 deletions

View File

@ -20,3 +20,13 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = exactness.pc
ACLOCAL_AMFLAGS = -I m4
if HAVE_EXACTNESS_DATA
check-exactness:
$(eval JOBS := $(shell [[ "${MAKEFLAGS}" =~ -j([0-9]+) ]] && echo $${BASH_REMATCH[1]} || echo 1))
cd exactness-elm-data/default-profile; exactness -j ${JOBS} -p -b recordings tests.txt; cd -
.PHONY: check-exactness
endif

View File

@ -68,3 +68,7 @@ src/bin/Makefile
src/lib/Makefile
exactness.pc
])
exactness_data_dir=${srcdir}/exactness-elm-data/default-profile
AC_CHECK_FILE([$exactness_data_dir], [have_exactness_data="yes"], [have_exactness_data="no"])
AM_CONDITIONAL([HAVE_EXACTNESS_DATA], [test "x${have_exactness_data}" = "xyes"])