Skip to content

Commit

Permalink
disable mb2hal tests when --without-libmodbus set on configure
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel committed Oct 23, 2023
1 parent f68a8de commit e18a116
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,18 @@ AS_IF(
[define if the libmodbus3 headers and library are available]
)
AC_SUBST(HAVE_LIBMODBUS3, yes)
# re-enable modbus related tests that might have been disabled by previous configure run
find "$srcdir/../tests/mb2hal" -name skip -delete
else
AC_MSG_RESULT(no)
AC_MSG_ERROR([libmodbus3 not found!
install with "sudo apt-get install libmodbus-dev" or disable with
"configure --without-libmodbus"])
fi
],
[
# disable libmodbus related tests
find "$srcdir/../tests/mb2hal" -mindepth 1 -maxdepth 1 -type d -exec touch {}/skip \;
]
)

Expand Down

0 comments on commit e18a116

Please sign in to comment.