Changeset 86


Ignore:
Timestamp:
08/06/09 09:55:53 (3 years ago)
Author:
dom
Message:

Replaced all fix/eg_... files by fixtures:use_tree/2 files and removed ./old directory.

Location:
trunk
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/compiler_test.erl

    r82 r86  
    1616 
    1717compiles_and_reports_progress_warnings_and_errors () -> 
    18     Compiler = spawn_link (compiler, init, [notify_me (), "fix"]), 
     18    F = fun compiles_and_reports_progress_warnings_and_errors/2, 
     19    ok = fixtures: use_tree (tester_test:tree (), F). 
     20     
     21compiles_and_reports_progress_warnings_and_errors (Root, _) -> 
     22    Compiler = spawn_link (compiler, init, [notify_me (), Root]), 
    1923    Compiler ! check, 
    2024    Ms = receive_all (), 
     
    2327 
    2428stops () -> 
    25     Compiler = spawn_link (compiler, init, [notify_me (), "fix"]), 
     29    ok = fixtures: use_tree ([], fun stops/2). 
     30 
     31stops (Root, _) -> 
     32    Compiler = spawn_link (compiler, init, [notify_me (), Root]), 
    2633    Compiler ! check, 
    2734    receive_all (), 
  • trunk/src/shells_tests.erl

    r80 r86  
    1616               modules_test, modules, 
    1717               text_printer_test, text_printer, 
    18                adlib_test, adlib], 
     18               adlib_test, adlib, 
     19               tester_test, tester, tests], 
    1920    ok = hand_send_to_tester (Modules, Test_node), 
    2021    Caller ! {Caller, done}. 
  • trunk/src/tester_test.erl

    r85 r86  
    55-module (tester_test). 
    66-export ([run_all/1, run_all/0]). 
     7-export ([tree/0]). 
    78-test (run_all). 
    89 
     
    3536    Paths = [modules: to_file_name (M, Root) || M <- Modules], 
    3637    Binaries = [modules: to_binary (P) || P <- Paths], 
    37     false = lists: any (fun (M) -> code: is_loaded (M) end, Modules), 
     38%    false = lists: any (fun (M) -> code: is_loaded (M) end, Modules), 
    3839    Tester ! {run, Binaries}, 
    3940    Results = receive_all ([]), 
    40     false = lists: any (fun (M) -> code: is_loaded (M) end, Modules), 
     41%    false = lists: any (fun (M) -> code: is_loaded (M) end, Modules), 
    4142    Results. 
    4243 
     
    196197    ]. 
    197198 
    198  
    199  
    200  
    201199%%% Test to be added: 
    202200%%% tests that never end (e.g. infinite loop) 
Note: See TracChangeset for help on using the changeset viewer.