fix(tests): Include functional tests regardless of the availability of libstabber and libexpect.
Some checks failed
CI Code / Check coding style (pull_request) Successful in 32s
CI Code / Check spelling (pull_request) Successful in 21s
CI Code / Linux (arch) (pull_request) Failing after 1m45s
CI Code / Linux (ubuntu) (pull_request) Failing after 3m42s
CI Code / Linux (debian) (pull_request) Failing after 4m8s

This commit is contained in:
2025-12-15 15:53:48 +03:00
parent e4b6daddf0
commit 6f94c4bae2

View File

@@ -296,8 +296,7 @@ tests_unittests_unittests_LDADD = -lcmocka
# https://github.com/profanity-im/stabber/issues/5
#
# Note: Debian/Ubuntu's libexpect requires -ltcl8.6 for linkage.
if HAVE_STABBER
if HAVE_EXPECT
TESTS += tests/functionaltests/functionaltests
check_PROGRAMS += tests/functionaltests/functionaltests
tests_functionaltests_functionaltests_SOURCES = $(functionaltest_sources)
@@ -305,8 +304,7 @@ tests_functionaltests_functionaltests_CPPFLAGS = -Itests/ -I$(top_srcdir)/extern
tests_functionaltests_functionaltests_CFLAGS = $(AM_CFLAGS) -I/usr/include/tcl8.6 -I/usr/include/tcl8.5 -I$(top_srcdir)/external/stabber
tests_functionaltests_functionaltests_LDFLAGS = -L$(top_srcdir)/external/stabber/.libs -Wl,-rpath,$(top_srcdir)/external/stabber/.libs
tests_functionaltests_functionaltests_LDADD = -lcmocka -lstabber -lexpect -ltcl8.6
endif
endif
man1_MANS = $(man1_sources)