Changeset 1609

Show
Ignore:
Timestamp:
07/07/08 08:56:01 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1608 r1609  
     12008-07-06  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * qa/run-tests.py: Now it prints the number of tests that are 
     4        skipped during the whole execution. 
     5 
     6        * qa/util.py: Aesthetically improvement. The result value of each 
     7        QA test is printed with a different color, whenever the terminal 
     8        type is know to support ANSI escape codes. 
     9 
    1102008-07-04  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    211 
  • cherokee/trunk/qa/run-tests.py

    r1594 r1609  
    5757 
    5858# Make the files list 
    59 files = [] 
    60 param = [] 
     59files   = [] 
     60param   = [] 
     61skipped = [] 
    6162if len(sys.argv) > 1: 
    6263    argv = sys.argv[1:] 
     
    283284    its_clean = True 
    284285 
     286    print 
     287 
    285288    # Clean up 
    286289    if clean: 
     
    291294        print_key ("Config",  cfg_file) 
    292295        print 
     296 
     297    # Skipped tests 
     298    if not quiet: 
     299        print "Skipped tests: %d" % (len(skipped)) 
    293300 
    294301    # Kill the server 
     
    341348            if not go_ahead: 
    342349                if not quiet: 
    343                     print "Skipped" 
     350                    print MESSAGE_SKIPPED 
     351                    if not obj in skipped: 
     352                        skipped.append(obj) 
    344353                continue 
    345354     
     
    359368            if ret is not 0: 
    360369                if not its_clean: 
    361                     print "Failed" 
     370                    print MESSAGE_FAILED 
    362371                    print obj 
    363372                    clean_up() 
    364373                sys.exit(1) 
    365374            elif not quiet: 
    366                 print "Success" 
     375                print MESSAGE_SUCCESS 
    367376                obj.Clean() 
    368377 
     
    373382                time.sleep (tpause) 
    374383 
     384 
    375385if ssl: 
    376386    port = 443 
  • cherokee/trunk/qa/util.py

    r1600 r1609  
    11import os, sys, time, random 
    22from conf import * 
     3 
     4term = os.getenv("TERM") 
     5if 'color' in term: 
     6    MESSAGE_SUCCESS = '\033[0;48;36m Success \033[0m' # Blue 
     7    MESSAGE_FAILED  = '\033[0;48;31m  Failed \033[0m' # Red 
     8    MESSAGE_SKIPPED = '\033[0;48;33m Skipped \033[0m' # Yellow 
     9else: 
     10    MESSAGE_SUCCESS = 'Success' 
     11    MESSAGE_FAILED  = ' Failed' 
     12    MESSAGE_SKIPPED = 'Skipped' 
     13 
    314 
    415def count_down (msg, nsecs, nl=True):