Changes between Version 2 and Version 3 of Driver Template HOWTO

Show
Ignore:
Timestamp:
12/15/08 21:44:21 (11 years ago)
Author:
aydan (IP: 69.134.122.47)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Driver Template HOWTO

    v2 v3  
    6868 
    6969You will need to check out orca/tools/config/trunk and follow the instructions listed on [http://www.nicl.cs.duke.edu/orca/tools/config/guides/index.html this] page. 
     70Once you have installed your node agent, you will need to check out orca/tools/drivers/trunk and add a link to the runtime directory from the config project, e.g.: 
    7071 
    71 You will need to download each of the projects 
     72{{{ 
     73cd ORCA_TOOLS_DRIVERS_DIR 
     74ln -s -f ORCA_TOOLS_CONFIG_DIR/runtime 
     75}}} 
     76 
     77Finally, you will need to add a link to the driver tools project in the top-level directory of your newly generated driver: 
     78 
     79{{{ 
     80cd ${DEST} 
     81ln -s -f ORCA_TOOLS_DRIVERS_DIR tools 
     82}}} 
     83 
     84The template assumes that your node agent is running on the localhost on port 6. If this is not the case with your setup you will need to do the following: 
     85{{{ 
     86cd ${DEST}/$DEVICE_INSTANCE/ant 
     87cp tests.properties user.properties 
     88}}} 
     89 
     90Edit user.properties and specify the location and port of your node agent service. Place a copy of the resulting file in ${DEST}/tests/ant 
     91 
     92 
     93Once you have successfully run mvn install in ${DEST}. You can install the driver by: 
     94{{{ 
     95cd $DEVICE_INSTANCE 
     96ant install 
     97}}} 
     98 
     99To run the unit tests for the driver: 
     100{{{ 
     101cd tests 
     102ant copy.local   (do this to make sure log4j will log to a file) 
     103ant tests.device 
     104}}} 
     105 
     106To test the ant tasks: 
     107 
     108{{{ 
     109cd tests 
     110ant -f test.xml clean 
     111ant -f test.xml greet 
     112}}} 
     113