nxdtest.cfg 1.64 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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
# 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
    ../component/git/buildout.cfg
    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


[nxdtest]
recipe  = zc.recipe.egg:scripts
eggs    = ${nxdtest-egg:egg}
scripts = nxdtest
# convenience for nxdtest users
exe     = ${buildout:bin-directory}/nxdtest

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

[nxdtest-repository]
recipe  = slapos.recipe.build:gitclone
69
repository = https://lab.nexedi.com/nexedi/nxdtest.git
Kirill Smelkov's avatar
Kirill Smelkov committed
70 71 72 73 74 75 76
revision = bd91f6f1579a
location = ${buildout:parts-directory}/nxdtest
git-executable = ${git:location}/bin/git


[versions]
slapos.recipe.template = 4.4