Changeset 1455 for branches

Show
Ignore:
Timestamp:
04/26/06 17:34:24 (3 years ago)
Author:
sdcosta
Message:

Allow to disable directories of tests. Also added some more atom tests

Location:
branches/magpie-hacks/MagpieTests
Files:
12 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/magpie-hacks/MagpieTests/README

    r1453 r1455  
    1111e.g. http://example.com/magpie-hacks/MagpieTests/runTests.php 
    1212 
     13Notes:  
     14 
     151. To disable a directory of tests, rename it to contain the string "disabled". 
     16 
     172. To disable a single test, change its file extension to something other than "xml". 
     18 
    1319--Sameer 
  • branches/magpie-hacks/MagpieTests/runTests.php

    r1454 r1455  
    8383    function testCallBack(ret) { 
    8484        returnTests++; 
     85        if (ret === undefined) { 
     86            alert("Undefined return value"); 
     87            return; 
     88        } 
    8589        data = ret.split('|'); 
    8690        number = data[0]; 
     
    110114 
    111115$testCategories = array_merge($wellFormedTestCategories, $illFormedTestCategories); 
     116 
     117// Remove disabled directories. (The ones that have a disabled in their name.)  
     118function filter_disabled($str) {  
     119    return ! strpos ($str, "disabled"); 
     120} 
     121 
     122$testCategories = array_filter($testCategories, "filter_disabled"); 
    112123 
    113124$numberOfTests = 0;