Skip to content

Fix check, using other test scripts

Yihuan Pan requested to merge popxpo/imapsync:main into main

Hello,

The PKGBUILD might not function correctly as the check function can fail. The check function executes the command make -C ${pkgname}-${pkgname}-${pkgver} test, it will call test.sh. However, the author has noted that this script is designed for personal use and may not work universally. Instead, the author recommends using imapsync --test. Please refer to the issue at https://github.com/imapsync/imapsync/issues/431.

Edit: if no ipv6, tests_mailimapclient_connect function will fail, the follow code(https://github.com/imapsync/imapsync/blob/imapsync-2.229/imapsync#L7800C10-L7800C10) need to comment:

        is( '2a01:e34:ecde:70d0:223:54ff:fec2:36d7', resolv( 'petiteipv6.lamiral.info' ), 'resolv: petiteipv6.lamiral.info => 2a01:e34:ecde:70d0:223:54ff:fec2:36d7' ) ;

        like( ref( $imap->connect(  ) ), qr/IO::Socket::SSL/, 'mailimapclient_connect ipv6 + ssl: connect to petiteipv6.lamiral.info' ) ;
        # This one is ok on petite, not on ks2, do not know why, so commented.
        like( ref( $imap->logout(  ) ), qr/Mail::IMAPClient/, 'mailimapclient_connect ipv6 + ssl: logout in ssl is ok on petiteipv6.lamiral.info' ) ;
Edited by Yihuan Pan

Merge request reports