# SlapOS software release to test nxdtest on Nexedi testing infrastructure.

[buildout]
extends =
    ../../stack/nxdtest.cfg
    ../pytest/buildout.cfg

parts =
    python-interpreter
    slapos-cookbook
    instance.cfg

# override to install test extra
[nxdtest-egg]
egg = nxdtest[test]

[python-interpreter]
eggs +=
  ${pytest:eggs}
  ${nxdtest-egg:egg}

# env.sh for interpreter to be on $PATH.
[nxdtest-env.sh]
recipe   = slapos.recipe.template
output = ${buildout:directory}/${:_buildout_section_name_}
inline =
  export PS1="(nxdtest-env) $PS1"
  export PATH=${buildout:bin-directory}:$PATH

# instance to run nxdtest.
[instance.cfg]
<= jinja2-template
inline =
  [buildout]
  extends = ${nxdtest-instance.cfg:output}

  [runTestSuite]
  env.sh  = ${nxdtest-env.sh:output}
  workdir = ${nxdtest-repository:location}

