software.cfg 2.79 KB
Newer Older
1 2 3 4 5 6
# NEO test software-release
#
# This software-release prepares environment so that neotest NEO
# testing/benchmarking can be run in a SlapOS WebRunner.
[buildout]
extends =
7
    buildout.hash.cfg
8 9 10
    ../../stack/slapos.cfg
    ../neoppod/software-common.cfg
    ../../component/golang/buildout.cfg
11 12
    ../../component/sqlite3/buildout.cfg
    ../../component/zlib/buildout.cfg
13 14 15 16
    ../../component/wendelin.core/buildout.cfg
    ../../component/ethtool/buildout.cfg
    ../../component/ioping/buildout.cfg
    ../../component/lmbench/buildout.cfg
17
    ../../component/coreutils/buildout.cfg
18
    ../../component/util-linux/buildout.cfg
19
    ../../component/pygolang/buildout.cfg
Kirill Smelkov's avatar
Kirill Smelkov committed
20
    ../../stack/nxdtest.cfg
21

22 23 24 25 26 27 28

parts =
    gowork
    lmbench
    ioping
    ethtool

29 30
#   neotest uses realpath & friends
    coreutils
31 32
#   ----//---- lsblk
    util-linux
33

34 35
    neoppod-develop
    neoppod
36
    wendelin.core
37
    scripts
38

39 40 41 42
# for ZEO scripts (runzeo)
    ZEO/scripts

    neotest-python
43 44 45 46 47
    neotest-env.sh
    neotest

#   for instance
    slapos-cookbook
48
    instance.cfg
49 50


51 52 53 54 55 56 57 58 59 60 61 62 63
[neo]
<= go-git-package
go.importpath = lab.nexedi.com/kirr/neo
repository    = https://lab.nexedi.com/kirr/neo.git
revision      = v1.12-3107-gf278d611

[goperf]
<= go-git-package
go.importpath = golang.org/x/perf
repository    = https://lab.nexedi.com/kirr/go.perf.git
revision      = e8bebf9314da

# go programs to install
64 65
[gowork]
install =
66 67
    ${neo:location}/go:./...
    ${goperf:location}:./cmd/benchstat
68

69 70 71 72
cpkgpath =
    ${sqlite3:location}/lib/pkgconfig
    ${zlib:location}/lib/pkgconfig

73 74
# dev-install neo from go checkout
[neoppod-develop]
75
setup   = ${neo:location}
76 77 78 79 80


# neotest-env.sh + neotest wrapper
[buildout-template]
recipe  = slapos.recipe.template
81
url     = ${:_profile_base_location_}/${:filename}
82 83 84 85 86 87 88 89 90 91 92
output  = ${buildout:directory}/${:_buildout_section_name_}

[neotest-env.sh]
<= buildout-template

[neotest]
<= buildout-template
output  = ${buildout:bin-directory}/${:_buildout_section_name_}
mode    = 0755


Kirill Smelkov's avatar
Kirill Smelkov committed
93
# instance to run nxdtest.
94
[instance.cfg]
95
<= jinja2-template
Kirill Smelkov's avatar
Kirill Smelkov committed
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
template = inline:
  [buildout]
  extends = ${nxdtest-instance.cfg:rendered}
  parts += tnxdtest

  [runTestSuite]
  env.sh  = ${neotest-env.sh:output}
  workdir = $${directory:t}

  [directory]
  t = $${:home}/t

  # instance/t/.nxdtest -> .nxdtest inside go/neo
  [tnxdtest]
  recipe = plone.recipe.command
  stop-on-error = yes
112
  command = ln -s -t $${directory:t} ${neo:location}/go/neo/t/.nxdtest
Kirill Smelkov's avatar
Kirill Smelkov committed
113

114 115


116 117 118 119
# bin/python is preinstalled with sys.path to wendelin.core & friends.
[neotest-python]
<= python-interpreter
eggs +=
120
    ${wendelin.core:egg}
121
    ${neoppod:eggs}
Kirill Smelkov's avatar
Kirill Smelkov committed
122 123
# for instance
    plone.recipe.command
124

125 126 127 128
[scripts]
recipe  = zc.recipe.egg:scripts
eggs    =
# to install not only wendelin.core modules but also scripts
129
    ${wendelin.core:egg}
130

131 132 133 134

# ping eggs versions
[versions]
zope.testing = 4.6.2