• Romain Courteaud's avatar
    Check component's binary creation. · 88f58238
    Romain Courteaud authored
    Add a new section ["component"-output] to test the creation of the expected
    build output.
    The verification is simply done with the "test" command.
    
    The output file are reference as section variable, which allow to reuse the
    location in the software profile, and so, prevent harcoding the local directory
    path in the software profile.
    88f58238
buildout.cfg 750 Bytes
[buildout]
extends =
  ../xz-utils/buildout.cfg
parts =
  coreutils-output

[coreutils]
recipe = slapos.recipe.cmmi
url = http://ftp.gnu.org/gnu/coreutils/coreutils-8.21.tar.xz
md5sum = 065ba41828644eca5dd8163446de5d64
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_} --enable-install-program=tr,basename,uname,cat,cp,ls
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  LDFLAGS =-Wl,--as-needed

[coreutils-output]
# Shared binary location to ease migration
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command = ${:test} -x ${:test} -a -x ${:cat} -a -x ${:rm}
test = ${coreutils:location}/bin/test
cat = ${coreutils:location}/bin/cat
rm = ${coreutils:location}/bin/rm