← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/marionnet/trunk] Rev 270: Generalized script marionnet-toplevel for testing specific modules,

 

------------------------------------------------------------
revno: 270
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: marionnet
timestamp: Tue 2010-09-21 12:39:55 +0200
message:
  Generalized script marionnet-toplevel for testing specific modules,
  including modules implementing widgets. Removed the (now meaningless) 
  script gui/gui_world_gateway_dialog_widget_test.sh.
  
  $ marionnet-toplevel --help
  Usage: marionnet-toplevel [[<path>/]<filename>[.ml]] [OCAML_OPTIONS]                                                                                                                               
                                                                                                                                                                                                     
  Launch marionnet in a toplevel or test a specific module.                                                                                                                                          
                                                                                                                                                                                                     
  Internally, the script gets (from the ocamlbuild log) the correct                                                                                                                                  
  command line for compiling marionnet.byte as defined by ocamlbuild,                                                                                                                                
  then it simply replaces "ocamlc.opt" by "ocamlmktop" and the target                                                                                                                                
  "marionnet.byte" by the temporary name of the toplevel.                                                                                                                                            
                                                                                                                                                                                                     
  If a module pattern (ex: gui_router_dialog_widget) or a module filename                                                                                                                            
  (ex: gui/gui_router_dialog_widget.ml) is provided as argument, the script                                                                                                                          
  builds a toplevel that will load just the required modules for this                                                                                                                                
  argument (it deletes modules cited after the pattern in the command line                                                                                                                           
  defined by ocamlbuild).  Furthermore, the toplevel will call a function                                                                                                                            
  called "make", with the actual (), supposed defined in the module. This                                                                                                                            
  is not a strict requirement: we can also test modules which have not                                                                                                                               
  this function. In this case, the call to "make" will simply fail,                                                                                                                                  
  without any undesirable effect.                                                                                                                                                                    
                                                                                                                                                                                                     
  Examples:                                                                                                                                                                                          
          ./marionnet-toplevel                                                                                                                                                                       
          ./marionnet-toplevel gui/gui_router_dialog_widget.ml                                                                                                                                       
          ./marionnet-toplevel gui_hub                                                                                                                                                               
          ./marionnet-toplevel splash
removed:
  gui/gui_world_gateway_dialog_widget_test.sh
modified:
  marionnet-toplevel


--
lp:marionnet
https://code.launchpad.net/~marionnet-drivers/marionnet/trunk

Your team marionnet-dev is subscribed to branch lp:marionnet.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/marionnet/trunk/+edit-subscription