FS#15145 - [makepkg] allow check function to be optionally run between build and package

Attached to Project: Pacman
Opened by Allan McRae (Allan) - Wednesday, 17 June 2009, 08:04 GMT
Last edited by Allan McRae (Allan) - Thursday, 30 December 2010, 01:40 GMT
Task Type Feature Request
Category makepkg
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.2
Due in Version 3.5.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Summary and Info:
It would be nice if a check() function could be specified in a PKGBUILD that would (optionally?) run the test suite after build() has finished.
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 30 December 2010, 01:40 GMT
Reason for closing:  Implemented
Additional comments about closing:  http://projects.archlinux.org/users/alla n/pacman.git/commit/?id=0c29eb43
Comment by Dan McGee (toofishes) - Thursday, 03 June 2010, 00:17 GMT
I hate to say it, but after the talk on the ML, would we also want some sort of 'checkdepends=()' PKGBUILD array?

I'm not sure I'd even make it require any sort of option flag other than simply the presence of a check() function in the build script. I think more useful would be command line options (either --nocheck or --check, depending on what we decide the default should be).
Comment by Allan McRae (Allan) - Thursday, 03 June 2010, 01:08 GMT
There are two future options that are kind of similar in ow they should be handled. Whether or not to run a check() function and whether or not to create a package with debug symbols. I think there has to be a way for a user to set their default preference for both of these, probably with a command-line option to override it.

Could checkdepends just be makedepends?
Comment by Allan McRae (Allan) - Monday, 27 December 2010, 10:31 GMT

Loading...