/[escript]/trunk/tools/CppUnitTest/src/TestRunner.h
ViewVC logotype

Annotation of /trunk/tools/CppUnitTest/src/TestRunner.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 700 - (hide annotations)
Thu Apr 6 00:13:40 2006 UTC (13 years, 7 months ago) by gross
File MIME type: text/plain
File size: 3237 byte(s)
A few changes in the build mechanism and the file structure so scons can build release tar files:

  * paso/src/Solver has been moved to paso/src 
  * all test_.py are now run_.py files and are assumed to be passing python tests. they can run by 
    scons py_tests and are part of the release test set
  * escript/py_src/test_ are moved to escript/test/python and are installed in to the build directory 
    (rather then the PYTHONPATH).
  * all py files in test/python which don't start with run_ or test_ are now 'local_py_tests'. they are installed i
    by not run automatically.
  * CppUnitTest is now treated as a escript module (against previous decisions).
  * scons realse builds nor tar/zip files with relvant source code (src and tests in seperate files)

the python tests don't pass yet due to path problems.


1 gross 700 //
2     // Permission to reproduce and create derivative works from the Software ("Software Derivative Works")
3     // is hereby granted to you under the copyright of Michael Feathers. Michael Feathers also grants you
4     // the right to distribute the Software and Software Derivative Works.
5     //
6     // Michael Feathers licenses the Software to you on an "AS IS" basis, without warranty of any kind.
7     // Michael Feathers HEREBY EXPRESSLY DISCLAIMS ALL WARRANTIES OR CONDITIONS, EITHER EXPRESS OR IMPLIED,
8     // INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OR CONDITIONS OF MERCHANTABILITY, NON INFRINGEMENT
9     // AND FITNESS FOR A PARTICULAR PURPOSE.  You are solely responsible for determining the appropriateness
10     // of using the Software and assume all risks associated with the use and distribution of this Software,
11     // including but not limited to the risks of program errors, damage to or loss of data, programs or
12     // equipment, and unavailability or interruption of operations.  MICHAEL FEATHERS WILL NOT BE
13     // LIABLE FOR ANY DIRECT DAMAGES OR FOR ANY SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC
14     // CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF MICHAEL FEATHERS HAD BEEN ADVISED
15     // OF THE POSSIBILITY OF SUCH DAMAGE.  Michael Feathers will not be liable for the loss of, or damage
16     // to, your records or data, or any damages claimed by you based on a third party claim.
17     //
18     // You agree to distribute the Software and any Software Derivatives under a license agreement that:
19     //
20     // 1) is sufficient to notify all licensees of the Software and Software Derivatives that Michael
21     // Feathers assumes no liability for any claim that may arise regarding the Software or
22     // Software Derivatives, and
23     // 2) that disclaims all warranties, both express and implied, from Michael Feathers regarding the
24     // Software and Software Derivatives.  (If you include this Agreement with any distribution
25     // of the Software and Software Derivatives you will have meet this requirement) You agree that
26     // you will not delete any copyright notices in the Software.
27     //
28     // This Agreement is the exclusive statement of your rights in the Software as provided by Michael
29     // Feathers. Except for the licenses granted to you in the second paragraph above, no other licenses
30     // are granted hereunder, by estoppel, implication or otherwise.
31     //
32 jgs 82 #ifndef CPPUNIT_TEXTRUNNER_H
33     #define CPPUNIT_TEXTRUNNER_H
34    
35     #include <iostream>
36     #include <vector>
37    
38 gross 700 #include "Test.h"
39     #include "CppUnitTestNamespace.h"
40 jgs 82
41     BEGIN_NAMESPACE_CPPUNITTEST
42    
43     typedef std::pair<std::string, Test *> mapping;
44     typedef std::vector<std::pair<std::string, Test *> > mappings;
45    
46     class TestRunner
47     {
48     protected:
49     bool m_wait;
50     std::vector<std::pair<std::string,Test *> > m_mappings;
51    
52     public:
53     TestRunner () : m_wait (false) {}
54     ~TestRunner ();
55    
56     void run (int ac, char **av);
57     void addTest (std::string name, Test *test)
58     { m_mappings.push_back (mapping (name, test)); }
59    
60     protected:
61     void run (Test *test);
62     void printBanner ();
63    
64     };
65    
66     END_NAMESPACE_CPPUNITTEST
67    
68     #endif
69    
70    
71    
72    

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26