Changeset 37 for trunk/src/tester.erl


Ignore:
Timestamp:
08/26/08 18:47:29 (4 years ago)
Author:
dom
Message:

Changed tester to receive list of modules to test, not individual modules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tester.erl

    r34 r37  
    1515loop (State) -> 
    1616    receive 
    17         {_, _} = Module -> 
    18             loop (test (load (Module, State))); 
    19         _ -> 
    20             loop (State) 
     17        Modules -> 
     18            loop (test (load (Modules, State))) 
    2119    end. 
    2220 
    23 load ({File_name, Binary}, State) -> 
     21load (Modules, State) -> 
     22    lists: foldl (fun load_aux/2, State, Modules). 
     23 
     24load_aux ({File_name, Binary}, State) -> 
    2425    {Module, Tests} = tests: filter_by_attribute (Binary), 
    2526    Node = dict: fetch (node, State), 
Note: See TracChangeset for help on using the changeset viewer.