Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-debug.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-debug.xml,v diff -u -r1.9 -r1.10 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-debug.xml 23 Mar 2004 15:37:19 -0000 1.9 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-debug.xml 14 May 2004 14:10:27 -0000 1.10 @@ -25,7 +25,7 @@ steps like looking directly at tables and testing stored procedures. Start emacs. Type M-x sql-postgres. Press enter for - server name and use service0 for + server name and use $OPENACS_SERVICE_NAME for database name. You can use C-(up arrow) and C-(down arrow) for command history. @@ -38,7 +38,7 @@ To set up real-time monitoring of the AOLserver error - log, type less /var/lib/aolserver/service0/log/openacs-dev-error.log + log, type less /var/lib/aolserver/$OPENACS_SERVICE_NAME/log/openacs-dev-error.log F to show new log entries in real time (like tail -f) C-c to stop and F to start it up again. G goes to the end. @@ -101,9 +101,9 @@ It seems to me that a lot of people have been asking for some guidelines on how to write automated tests. I've done several tests by now and have found the process to be extremely easy and useful. It's a joy to work with automated testing once you get the hang of it. Create the directory that will contain the test script and edit the script file. The directory location and file name are standards which are recognized by the automated testing package: - [service0 www]$ mkdir /var/lib/aolserver/service0/packages/myfirstpackage/tcl/test -[service0 www]$ cd /var/lib/aolserver/service0/packages/myfirstpackage/tcl/test -[service0 test]$ emacs myfirstpackages-procs.tcl + [$OPENACS_SERVICE_NAME www]$ mkdir /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/test +[$OPENACS_SERVICE_NAME www]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/test +[$OPENACS_SERVICE_NAME test]$ emacs myfirstpackages-procs.tcl Write the tests. This is obviously the big step :) The script should first call ad_library like any normal -procs.tcl file: ad_library { ...