[buildout]
extends =
  ../pygolang/buildout.cfg
  ../util-linux/buildout.cfg
  ../python-prctl/buildout.cfg
  ../git/buildout.cfg


# nxdtest is bin/ program to run nxdtest.
# use ${nxdtest:exe} to run it.
[nxdtest]
<= pyprog
exe     = ${buildout:bin-directory}/nxdtest
entry   = nxdtest:main
eggs    = ${nxdtest-egg:egg}
initialization =
  # $PATH for unshare and mount
  import os
  path = os.environ.get('PATH', '')
  if path != '':
    path = ':' + path
    os.environ['PATH'] = '${util-linux:location}/bin' + path


[nxdtest-egg]
recipe  = zc.recipe.egg:develop
setup   = ${nxdtest-repository:location}
egg     = nxdtest
depends = ${python-prctl:egg}

[nxdtest-repository]
recipe  = slapos.recipe.build:gitclone
repository = https://lab.nexedi.com/nexedi/nxdtest.git
revision = 56e52da6
location = ${buildout:parts-directory}/nxdtest
git-executable = ${git:location}/bin/git
