http://www.oracle.com/technology/software/products/berkeley-db/index.html
$PTII/ptdb/doc/OracleBerkeleyXMLDBMacOSXBuildInstructions.htm
Installation\Berkeley DB XML 2.5.16\bin to the System PATH
environment variable by
doing Start Menu -> Settings ->
Control Panels -> System ->
Advanced -> Environment Variables and adding the value.
InstallationDirector/dbxml-2.5.16/install/lib to the DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=${PTII}/vendors/misc/dbxml-2.5.16/install/lib:${DYLD_LIBRARY_PATH}
export PATH=${PTII}/vendors/misc/dbxml-2.5.16/install/bin:${PATH}
~/.bashrc, then you will not
need to type them each time.
cd to the ptdb/config/database/testdata director:
cd $PTII/ptdb/config/database/testdata
cd %PTII%\ptdb\config\database\testdata
dbxml command:
dbxmlNote: The testing script is configured to create a container (database file) with the name Testing.dbxml and it will also add some default models we used for testing our code. These models will ensure that the JUnits run correctly.
run create_script.txt - the output of this command should be:
dbxml> run create_script.txt Creating node storage container Document added, name = ReferenceFile.ptdbxml Document added, name = ModelContainsBothAttributes Document added, name = X Document added, name = Y Document added, name = NoNamesNoValues Document added, name = ContainsBothNamesButExchangedValues Document added, name = ContainsBothNamesOneValue Document added, name = ContainsOneNameValue Document added, name = NoNamesAllValues Document added, name = ModelB Document added, name = ModelA Document added, name = NoReferences Document added, name = modeltt Document added, name = CompositeActor dbxml>
quit command to exit the environment and commit the data.
$PTII/ptdb/config/ptdb-params.properties:
DB_Url to the location where the Testing.dbxml file was created - This should be $PTII/ptdb/config/database/testdata.
DB_Container_Name
to the name of the container file: Testing.dbxml.
DB_Class_Name = ptdb.kernel.database.OracleXMLDBConnection DB_Url = /Users/ptolemy/ptII/ptdb/config/database/testdata DB_Container_Name = Testing.dbxml Cache_Container_Name = temp_cache.dbxmlYou are done and may run the tests
dbxml as above and then
type run update_script.txt. The output should be like:
dbxml> run update_script.txt Document deleted, name = ReferenceFile.ptdbxml Document deleted, name = ModelContainsBothAttributes Document deleted, name = X Document deleted, name = Y Document deleted, name = NoNamesNoValues Document deleted, name = ContainsBothNamesButExchangedValues Document deleted, name = ContainsBothNamesOneValue Document deleted, name = ContainsOneNameValue Document deleted, name = NoNamesAllValues Document deleted, name = ModelB Document deleted, name = ModelA Document deleted, name = NoReferences Document deleted, name = modeltt Document deleted, name = CompositeActor Document added, name = ReferenceFile.ptdbxml Document added, name = ModelContainsBothAttributes Document added, name = X Document added, name = Y Document added, name = NoNamesNoValues Document added, name = ContainsBothNamesButExchangedValues Document added, name = ContainsBothNamesOneValue Document added, name = ContainsOneNameValue Document added, name = NoNamesAllValues Document added, name = ModelB Document added, name = ModelA Document added, name = NoReferences Document added, name = modeltt Document added, name = CompositeActor
quit command to exit the environment and commit the data.