[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Autopkgtest for octave



On Fri, Mar 02, 2018 at 12:52:42PM +0100, Rafael Laboissière wrote:
> * Sébastien Villemot <sebastien@debian.org> [2018-03-02 09:55]:
> 
> > On Tue, Feb 27, 2018 at 06:19:29PM -0800, Mike Miller wrote:
> > > 
> > > I've adapted what I learned recently about autopkgtest and shunit2
> > > from dh-octave (thanks Rafael!) into some basic autopkgtest support
> > > for octave.
> > 
> > Thanks, this is great! (especially running the testsuite, even though it
> > means it will be run two times when I build the package: once at build
> > time through make check, and once through autopkgtest).
> 
> autopkgtest never runs for me when I build packages.  How do you do it?

I have the following in my .sbuildrc:

$external_commands = {
    'post-build-commands' => [
        'autopkgtest %c -- schroot sid-%a-sbuild; [ $? -eq 0 -o $? -eq 8 ]' # Run autopkgtest, but don't fail if there is no test (exit code 8)
        ]
};

(I have an LVM-snapshot chroot with the name sid-amd64-sbuild)


Other similar tricks for various tools can be found on this page:

 https://wiki.debian.org/sbuild

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  http://sebastien.villemot.name
⠈⠳⣄⠀⠀⠀⠀  http://www.debian.org

Attachment: signature.asc
Description: PGP signature


Reply to: