X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/8d922a2f63801c78bfebc41612cb57839f5367b8..a7cabb5d0f067e78afd029d8ec41d14660d8f9e2:/tests/scripts.at diff --git a/tests/scripts.at b/tests/scripts.at index b49a94d..9c5f56a 100644 --- a/tests/scripts.at +++ b/tests/scripts.at @@ -628,6 +628,25 @@ sed -n -e '/^## begin gnulib/,/^## end gnulib/p' \ AT_CLEANUP +AT_SETUP([fix-gnulib.pl warning removal]) + +AT_DATA([test.mk.in], [[ +## test begin +noinst_LTLIBRARIES += libgnu.la +libgnu_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) +noinst_LIBRARIES += libgnu.a +libgnu_a_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS) +## test end +]]) +AT_CHECK([test_fix_gnulib -i test.mk.in -o test.mk || exit +sed -n '/^## test begin/,/^## test end/p' test.mk], [0], [## test begin +EXTRA_LTLIBRARIES += libgnu.la +EXTRA_LIBRARIES += libgnu.a +## test end +]) + +AT_CLEANUP + dnl TEST_FIND_AUTOMAKE_VER([to-check], [test-action]) dnl dnl For each whitespace-separated version token in to-check, check if we can