mailr4353 - in /1.3: relax test_suite/runner.py test_suite/test_suite_runner.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 05, 2008 - 18:27:
Author: bugman
Date: Sat Jan  5 18:27:07 2008
New Revision: 4353

URL: http://svn.gna.org/viewcvs/relax?rev=4353&view=rev
Log:
Renamed the test suite running module to test_suite_runner.


Added:
    1.3/test_suite/test_suite_runner.py
      - copied unchanged from r4348, 1.3/test_suite/runner.py
Removed:
    1.3/test_suite/runner.py
Modified:
    1.3/relax

Modified: 1.3/relax
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax?rev=4353&r1=4352&r2=4353&view=diff
==============================================================================
--- 1.3/relax (original)
+++ 1.3/relax Sat Jan  5 18:27:07 2008
@@ -72,7 +72,7 @@
 from relax_io import log
 import relax_warnings
 from test_suite.relax_test_runner import RelaxTestRunner
-from test_suite.runner import Test_suite_runner
+from test_suite.test_suite_runner import Test_suite_runner
 from test_suite.system_tests.main import System_tests
 from test_suite.unit_tests.unit_test_runner import Unit_test_runner
 from thread_classes import Threading, ThreadData

Removed: 1.3/test_suite/runner.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/runner.py?rev=4352&view=auto
==============================================================================
--- 1.3/test_suite/runner.py (original)
+++ 1.3/test_suite/runner.py (removed)
@@ -1,83 +1,0 @@
-###############################################################################
-#                                                                            
 #
-# Copyright (C) 2006 Edward d'Auvergne                                       
 #
-#                                                                            
 #
-# This file is part of the program relax.                                    
 #
-#                                                                            
 #
-# relax is free software; you can redistribute it and/or modify              
 #
-# it under the terms of the GNU General Public License as published by       
 #
-# the Free Software Foundation; either version 2 of the License, or          
 #
-# (at your option) any later version.                                        
 #
-#                                                                            
 #
-# relax is distributed in the hope that it will be useful,                   
 #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of             
 #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              
 #
-# GNU General Public License for more details.                               
 #
-#                                                                            
 #
-# You should have received a copy of the GNU General Public License          
 #
-# along with relax; if not, write to the Free Software                       
 #
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
 #
-#                                                                            
 #
-###############################################################################
-
-# Formatting.
-from formatting import *
-
-# Import the test suite categories.
-from system_tests.main import System_tests
-from system_tests import System_test_runner
-from unit_tests.unit_test_runner import Unit_test_runner
-
-# relax module imports.
-from relax_test_runner import RelaxTestRunner
-
-
-class Test_suite_runner:
-    """Class for running all components of the relax test suite.
-
-    This currently includes the following categories of tests:
-        System/functional tests.
-        Unit tests.
-    """
-
-    def __init__(self, relax):
-        """Run the system/functional and unit test suite components.
-
-        @param relax:   The relax namespace.
-        @type relax:    instance
-        """
-
-        self.relax = relax
-
-        # Execute the old system/functional tests.
-        sys_runner = System_tests(self.relax)
-        system_result_old = sys_runner.run()
-
-        # Execute the system/functional tests.
-        system_runner = System_test_runner(self.relax)
-        system_result = system_runner.run()
-
-        # Execute the unit tests.
-        unit_runner = Unit_test_runner(root_path='test_suite/unit_tests')
-        unit_result = unit_runner.run(runner=RelaxTestRunner())
-
-        # Print out a summary of the test suite.
-        ########################################
-
-        # Heading.
-        print "\n\n\n"
-        print "###################################"
-        print "# Summary of the relax test suite #"
-        print "###################################\n"
-
-        # Old system/functional test summary.
-        summary_line("Old system/functional tests", system_result_old)
-
-        # System/functional test summary.
-        summary_line("System/functional tests", system_result)
-
-        # Unit test summary.
-        summary_line("Unit tests", unit_result)
-
-        # Synopsis.
-        summary_line("Synopsis", system_result and unit_result)




Related Messages


Powered by MHonArc, Updated Sat Jan 05 19:00:19 2008