#
# 'egrep -v "with no callbacks"' is a workaround for a more or less false
# positive. See details here:
# https://github.com/WarmUpTill/SceneSwitcher/issues/1091#issuecomment-2077780788
#
Test-Command: DEB_TARGET_MULTIARCH=$(dpkg-architecture -qDEB_TARGET_MULTIARCH);
              PLUGIN_NAME=$(dpkg-parsechangelog -SSource | cut -d"-" -f2-);
              g++ -o $AUTOPKGTEST_TMP/load_lib debian/tests/load_lib.cc -ldl -Wall;
              $AUTOPKGTEST_TMP/load_lib /usr/lib/${DEB_TARGET_MULTIARCH}/obs-plugins/lib${PLUGIN_NAME}.so \
                | egrep -v "with no callbacks"
Depends: @, g++
Restrictions: superficial
