• 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 909 Bytes
[buildout]
extends = 
  ../coreutils/buildout.cfg

parts = dcron-output

[dcron-patch-nonroot]
recipe = hexagonit.recipe.download
md5sum = 2f5b22dc1cbe81060a9c28e6f5c06e8b
url = ${:_profile_base_location_}/${:filename}
filename = dcron-4.4.noroot.no.globals.patch
download-only = true

[dcron]
recipe = slapos.recipe.cmmi
url = http://www.jimpryor.net/linux/releases/dcron-4.4.tar.gz
md5sum = 02d848ba043a9df5bf2102a9f4bc04bd
configure-command = true
patches =
  ${dcron-patch-nonroot:location}/${dcron-patch-nonroot:filename}
patch-options = -p1
make-options =
  PREFIX=${buildout:parts-directory}/${:_buildout_section_name_}

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