test_combo.txt 923 B

123456789101112131415161718192021222324252627282930313233343536
  1. =======================
  2. Combo testing example
  3. =======================
  4. This is a simple example that mixes ipython doctests::
  5. In [1]: import code
  6. In [2]: 2**12
  7. Out[2]: 4096
  8. with command-line example information that does *not* get executed::
  9. $ mpirun -n 4 ipengine --controller-port=10000 --controller-ip=host0
  10. and with literal examples of Python source code::
  11. controller = dict(host='myhost',
  12. engine_port=None, # default is 10105
  13. control_port=None,
  14. )
  15. # keys are hostnames, values are the number of engine on that host
  16. engines = dict(node1=2,
  17. node2=2,
  18. node3=2,
  19. node3=2,
  20. )
  21. # Force failure to detect that this test is being run.
  22. 1/0
  23. These source code examples are executed but no output is compared at all. An
  24. error or failure is reported only if an exception is raised.
  25. NOTE: the execution of pure python blocks is not yet working!