Skip to content

Commit

Permalink
testing: run nbft-test.sh only if jq is available
Browse files Browse the repository at this point in the history
Execute nbft-test.sh in make check only when nbft
is enabled and also the jq utility is available.
  • Loading branch information
mtomaschewski committed Jun 14, 2023
1 parent 83908d5 commit 1b16aa3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -238,6 +238,8 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_MKDIR_P
AC_PROG_LIBTOOL
AC_PATH_PROG(JQ, jq)
AM_CONDITIONAL([nbft_test], [test "x$enable_nbft" = "xyes" -a "x$JQ" != "x"])

# Checks for libraries.
AC_CHECK_LIB([dl], [dlopen], [LIBDL_LIBS="-ldl"],[
Expand Down
5 changes: 4 additions & 1 deletion testing/Makefile.am
Expand Up @@ -52,8 +52,11 @@ EXTRA_DIST = ibft xpath \
TESTS = socket-mock-test \
bitmask-test \
bitmap-test \
nbft-test.sh \
json-test \
ptr_array-test

if nbft_test
TESTS += nbft-test.sh
endif

# vim: ai

0 comments on commit 1b16aa3

Please sign in to comment.