On 13/07/13 05:56, Dave Reisner wrote: > 1) Break out all functionality that needs testing to a separate file. > Everything in this broken out file *must* be in a function. > 2) m4_include() the functions file somewhere in the new makepkg "main".
Or... just split parts of makepkg out into a library. See the top two commit here for how I would go about this: https://projects.archlinux.org/users/allan/pacman.git/log/?h=makepkg-split I agree that this is the first thing that needs to be done to simplify makepkg into a state where a testsuite begins making sense. Allan
