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
# 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
21
#    inline =
Kirill Smelkov's avatar
Kirill Smelkov committed
22
#      [buildout]
23
#      extends = ${nxdtest-instance.cfg:output}
Kirill Smelkov's avatar
Kirill Smelkov committed
24 25 26 27 28 29 30 31 32 33 34
#
#      [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
    nxdtest/buildout.hash.cfg

[jinja2-template]
recipe   = slapos.recipe.template:jinja2
40 41
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/${:_buildout_section_name_}
Kirill Smelkov's avatar
Kirill Smelkov committed
42 43 44
mode     = 0644
context  =
  section buildout  buildout
45
filename = inline
Kirill Smelkov's avatar
Kirill Smelkov committed
46 47 48

[nxdtest-instance.cfg]
<= jinja2-template
49
url = ${:_profile_base_location_}/nxdtest/${:filename}
Kirill Smelkov's avatar
Kirill Smelkov committed
50 51 52 53
# NOTE += does not work
context =
  section buildout  buildout
  section nxdtest   nxdtest