Edit Rename Upload Download Back to Top

Glorp Installation

Installing and Testing Glorp

The first thing to do when planning to use Glorp is to get it into an image, and run the SUnit tests that come with it.

Load the parcel that came with your version of VisualWorks. For development, load the "Glorp" parcel and the "GlorpTest" parcel.

With these two parcels loaded, evaluate:

GlorpDatabaseLoginResource defaultLogin: ((Login new)
   database: PostgreSQLPlatform new;
   username: 'uuuuuuuu';
   password: '';
   connectString: 'dddddddd').

GlorpDatabaseLoginResource current: nil

The first statement above sets the default login. The second resets the GlorpDatabaseLoginResource to be used for testing - make sure you do this.

Next, use one of the SUnit tools to run all the tests. I use the RBSunitExtentiosn parcel which adds buttons on the bottom right of each refactoring browser window.

Select the GlorpTest bundle and then press the run button. This should run through all the hunderds of Glorp tests and report that they all passed shoing a happy green bar at the bottom of the window. This doen not work for me. SUnit fails part way through because it can't find a symbol, and a timestamp test fails too. Most things should work, though. Work through the tests running each in turn. If your system is like mine, only the Timestamp test should be left as a failure.

At this point, you have Glorp installed and working as far as the tests can tell.

Edit Rename Upload Download Back to Top