From: Bogdan Date: Sun, 26 May 2024 22:35:58 +0000 (-0700) Subject: test: objc tests on openbsd. X-Git-Tag: v1.16.90~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b5b6f240d9fceb40fbd4a7c958480bf971ed2608;p=thirdparty%2Fautomake.git test: objc tests on openbsd. Fixes https://bugs.gnu.org/68179. * t/objcxx-deps.sh: test for objc_getProperty and other functions in the objc library. * t/objcxx-minidemo.sh: likewise. * t/strip2.sh (STRIP): use -x instead of --verbose to test strip with multiple words, to work with openbsd (and aix) strip. --- diff --git a/t/objcxx-deps.sh b/t/objcxx-deps.sh index 1f39507fd..519c33244 100644 --- a/t/objcxx-deps.sh +++ b/t/objcxx-deps.sh @@ -21,6 +21,10 @@ cat >> configure.ac << 'END' AC_PROG_OBJCXX +AC_CHECK_LIB([objc],[__objc_exec_class]) +AC_CHECK_LIB([objc],[objc_getProperty]) +AC_CHECK_LIB([objc],[objc_msg_lookup_sender]) +AC_CHECK_LIB([objc],[objc_msg_lookup]) AC_OUTPUT END diff --git a/t/objcxx-minidemo.sh b/t/objcxx-minidemo.sh index ec0e8e129..f6f53c151 100644 --- a/t/objcxx-minidemo.sh +++ b/t/objcxx-minidemo.sh @@ -23,6 +23,10 @@ required=native cat >> configure.ac << 'END' AC_PROG_OBJCXX AC_CONFIG_HEADERS([config.h]) +AC_CHECK_LIB([objc],[__objc_exec_class]) +AC_CHECK_LIB([objc],[objc_getProperty]) +AC_CHECK_LIB([objc],[objc_msg_lookup_sender]) +AC_CHECK_LIB([objc],[objc_msg_lookup]) AC_OUTPUT END diff --git a/t/strip2.sh b/t/strip2.sh index a367dd0fe..e48dddc7a 100644 --- a/t/strip2.sh +++ b/t/strip2.sh @@ -15,7 +15,7 @@ # along with this program. If not, see . # Ensure install-strip works when STRIP consists of more than one word. -# This test needs GNU binutils strip. See sister test 'strip3.sh'. +# See sister test 'strip3.sh'. required='cc strip' . test-init.sh @@ -39,7 +39,7 @@ $ACLOCAL $AUTOCONF $AUTOMAKE -a -./configure --prefix="$(pwd)/inst" STRIP='strip --verbose' +./configure --prefix="$(pwd)/inst" STRIP='strip -x' $MAKE $MAKE install-strip