Changeset 90


Ignore:
Timestamp:
08/07/09 08:54:58 (3 years ago)
Author:
dom
Message:

Removed all bootstrapping code and the directory_tester is now run during install to test itself. Removed obsolete files.

Location:
trunk
Files:
6 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/install

    r45 r90  
    33 
    44hostname=`hostname -s` 
    5 erl -kernel error_logger "{file,\"tester.log\"}" -sname forgetester -noinput & 
     5 
    66cd ebin 
    7 erlc ../src/shells.erl 
    87erl -make 
    9 erl -kernel error_logger "{file,\"../forge.log\"}" -sname forgeinstaller -noinput -s shells install forgetester@$hostname -s init stop 
     8erl -sname extremeforge_install_tester -noinput & 
     9erl -kernel error_logger "{file,\"../install_errors.log\"}" \ 
     10    -sname extremeforge_installer \ 
     11    -noinput \ 
     12    -run directory_tester run_once ".." extremeforge_install_tester@$hostname \ 
     13    -s shells stop_node extremeforge_install_tester@$hostname \ 
     14    -s init stop 
  • trunk/src/adlib.erl

    r80 r90  
    1 %%% Copyright (C) 2009 Dominic Williams 
     1%%% Copyright (C) Dominic Williams 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
    44 
    5 -module(adlib). 
     5-module (adlib). 
    66-export ([compare_dict/2]). 
    77 
  • trunk/src/compiler.erl

    r71 r90  
     1%%% Copyright (C) Dominic Williams 
     2%%% All rights reserved. 
     3%%% See file COPYING. 
     4 
    15-module (compiler). 
    26-export ([init/2]). 
  • trunk/src/directory_tester.erl

    r89 r90  
    33%%% See file COPYING. 
    44 
    5 -module(directory_tester). 
     5-module (directory_tester). 
    66-export ([init/1, init/2]). 
    77-export ([run_once/1, run_once/2]). 
  • trunk/src/shells.erl

    r68 r90  
    1 %%% Copyright (c) 2008 Dominic Williams, Nicolas Charpentier 
     1%%% Copyright (C) Dominic Williams, Nicolas Charpentier 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
    44-module (shells). 
    5 -export ([install/1]). 
     5-export ([stop_node/1]). 
    66 
    7 install ([Test_node]) -> 
    8     try 
    9         Self = self (), 
    10         spawn_link (fun () -> shells_tests: tests (test_node (Test_node), Self) end), 
    11         receive {Self, done} -> ok; 
    12                 M -> io:fwrite ("tests_crash: ~p~n", [M]) 
    13         after 30000 -> throw ("tests timed out~n") 
    14         end 
     7stop_node ([Node]) when is_atom (Node) -> 
     8    rpc: call (Node, init, stop, []). 
    159 
    16     catch C:E-> 
    17             io: fwrite ("Caught: ~p~n", [{C,E, erlang:get_stacktrace()}]) 
    18  
    19     after 
    20         io: fwrite ("Stopping test node: ~p~n", [Test_node]), 
    21       rpc: call (Test_node, init, stop, []) 
    22     end, 
    23     receive_all (), 
    24     io: fwrite ("done~n", []). 
    25  
    26 test_node (Node) -> 
    27     case net_adm: ping(Node) of 
    28         pong -> 
    29             Node; 
    30         pang -> 
    31             [Name, Host] = string: tokens (atom_to_list (Node), "@"), 
    32             {ok, Real_node} = slave: start (Host, Name), 
    33             Real_node 
    34     end. 
    35  
    36 receive_all () -> 
    37     receive 
    38         {'EXIT', _, normal} -> 
    39             receive_all (); 
    40         M -> 
    41             io:fwrite("Received ~p~n", [M]), 
    42             receive_all () 
    43     after 500 -> 
    44            done 
    45     end. 
    46  
  • trunk/src/tester.erl

    r89 r90  
    1 %%% Copyright (c) 2008 Dominic Williams, Nicolas Charpentier 
     1%%% Copyright (C) Dominic Williams, Nicolas Charpentier 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
  • trunk/src/tester_test.erl

    r89 r90  
    1 %%% Copyright (c) Dominic Williams, Nicolas Charpentier 
     1%%% Copyright (C) Dominic Williams, Nicolas Charpentier 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
    44 
    55-module (tester_test). 
    6 -export ([run_all/1, run_all/0]). 
     6-export ([run_all/0]). 
    77-export ([tree/0]). 
    88-test (run_all). 
  • trunk/src/tests_test.erl

    r83 r90  
    1 %%% Copyright (c) Dominic Williams, Nicolas Charpentier 
     1%%% Copyright (C) Dominic Williams, Nicolas Charpentier 
    22%%% All rights reserved. 
    33%%% See file COPYING. 
Note: See TracChangeset for help on using the changeset viewer.