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
|
ORBit-Python test suite.
(c) 2000, 2001 Jason Tackaberry
Author: Christian Reis <kiko@async.com.br>
0. Basic Premise
* Tack refers kiko to kiko's conjecture: "o-p has no leaks" :)
1. Requirements:
For Python1.x:
* Requires PyUnit (http://pyunit.sourceforge.net), and even then
it won't run the stress test; I inherit from the testSuite class in
Python2.1's unittest and it's not really compatible with PyUnit.
For Python2.1:
* In theory, nothing.
To run the Stress test, it's important the OS be Linux, or have a
compatible /proc format. The reason is I read directly from /proc to
discover the process' VmSize and check for consistent growth, which
usually indicates a leak in the test suite.
2. Description
This test suite builds upon Roland Mas' excellent original
implementation, which means the good parts are his and the broken parts
are mine. I'm doing this initial (messy) implementation so we have
a stable base of tests to check against regressions.
3 Test modules
BasicTest.py
Contains basic sanity tests for the module, and IDL import
tests.
BasicORB.py
Contains basic testing for the ORB.
ORBPOATest.py
Tests the ORB and POA methods with a dummy class. Checks bad and
good input to function, verifying exception raising and proper
behaviour.
ClientServer.py
Tests actual CORBA Objects and Servants making out.
3 Support files
TestHarness.py
This is the server we run the ClientServer tests off. Each
method here will be called by one or more tests in
ClientServer.py.
Test.py
Ties together basic test modules into a suite.
Stress.py
Does the stress testing; this is a profound rewrite of the
initial Stress test module used here, and it inherits from
unittest's testSuite. The Stress class takes care of multiple
runs, and of monitoring and reporting server and client growth.
|