Revision 5f7d4181 doc/devnotes.rst

b/doc/devnotes.rst
24 24
- `pep8 <https://github.com/jcrocholl/pep8/>`_
25 25
- `PyYAML <http://pyyaml.org/>`_
26 26

  
27
For older developement (Ganeti < 2.4) ``docbook`` was used instead
27
For older developement (Ganeti < 2.4) ``docbook`` was used instead of
28 28
``pandoc``.
29 29

  
30 30
Note that for pylint, at the current moment the following versions
......
175 175
~~~~~~~~~~~~~~~~~~~~~~~~
176 176

  
177 177
When developing code, running the entire test suite can be
178
slow. Running individual tests is possible easily for unit-tests, less
179
so for shell-tests (but these are faster, so it shouldn't be needed).
178
slow. Running individual tests is possible. There are different
179
Makefile targets for running individual Python and Haskell tests.
180 180

  
181 181
For Python tests::
182 182

  
......
185 185

  
186 186
For Haskell tests::
187 187

  
188
  $ make test/hs/htest && ./test/hs/htest -t %pattern%
188
  $ make hs-test-%pattern%
189 189

  
190 190
Where ``pattern`` can be a simple test pattern (e.g. ``comma``,
191 191
matching any test whose name contains ``comma``), a test pattern
192 192
denoting a group (ending with a slash, e.g. ``Utils/``), or more
193
complex glob pattern. For more details, see the documentation (on the
194
`test-framework homepage
193
complex glob pattern. For more details, search for glob patterns in
194
the documentation of `test-framework
195 195
<http://batterseapower.github.com/test-framework/>`_).
196 196

  
197
For individual Haskell shelltests::
198

  
199
  $ make hs-shell-%name%
200

  
201
which runs the test ``test/hs/shelltests/htools-%name%.test``. For
202
example, to run the test ``test/hs/shelltests/htools-balancing.test``,
203
use::
204

  
205
  $ make hs-shell-balancing
206

  
207
For combined Haskell shelltests::
208

  
209
  $ make hs-shell-{%name1%,%name2%,...}
210

  
211
for example::
212

  
213
  $ make hs-shell-{balancing,basic}
214

  
197 215
Packaging notes
198 216
===============
199 217

  

Also available in: Unified diff