nxdtest.cfg 1.11 KB
Newer Older
Kirill Smelkov's avatar
Kirill Smelkov committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
# Stack for creating testnode instances to be run via nxdtest on Nexedi testing
# infrastructure.
#
# Usage:
#
#    ---- 8< ---- (<software>/test.cfg)
#    [buildout]
#    extends = .../stack/nxdtest.cfg
#
#    parts =
#       ...
#
#    #  for instance
#       slapos-cookbook
#       instance.cfg
#
#    ...
#
#    [instance.cfg]
#    <= jinja2-template
#    template = inline:
#      [buildout]
#      extends = ${nxdtest-instance.cfg:rendered}
#
#      [runTestSuite]
#      env.sh  = ...
#      workdir = ...
#
# Created instance will have bin/runTestSuite that sources env.sh and runs
# nxdtest in workdir.

[buildout]
extends =
    slapos.cfg
35
    ../component/nxdtest/buildout.cfg
Kirill Smelkov's avatar
Kirill Smelkov committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
    nxdtest/buildout.hash.cfg

[jinja2-template]
recipe   = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
rendered = ${buildout:directory}/${:_buildout_section_name_}
mode     = 0644
context  =
  section buildout  buildout

[nxdtest-instance.cfg]
<= jinja2-template
template = ${:_profile_base_location_}/nxdtest/${:filename}
# NOTE += does not work
context =
  section buildout  buildout
  section nxdtest   nxdtest