From: Stephen D. <sd...@us...> - 2005-10-21 05:25:52
|
Update of /cvsroot/naviserver/naviserver/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32050/tests Modified Files: test.nscfg Added Files: ns_accesslog.test Log Message: * nsd/nsd.h: * nsd/tclinit.c (Ns_TclTraceCreate): Run CREATE traces as they are registered in order to make Tcl comamnds registered by binary module available to the boot script and Tcl module files. * nsd/init.tcl: Rename use of depraciated api. * nsdb/db.h: * nsdb/nsdb.c: * nsdb/dbtcl.c: Fix bug where Ns_TclRegisterTrace was being called after server startup. * tests/test.nscfg: * tests/ns_accesslog.test: Add stub tests for the nslog module. --- NEW FILE: ns_accesslog.test --- # # $Header: /cvsroot/naviserver/naviserver/tests/ns_accesslog.test,v 1.1 2005/10/21 05:25:36 sdeasey Exp $ # package require tcltest 2.2 namespace import -force ::tcltest::* eval ::tcltest::configure $argv test ns_log-1.1 {basic syntax} -body { ns_accesslog } -returnCodes error -result {wrong # args: should be "ns_accesslog option ?arg ...?"} test ns_log-1.2 {basic syntax} -body { ns_accesslog ? } -returnCodes error -result {bad option "?": must be rollfmt, maxbackup, maxbuffer, extendedheaders, flags, file, or roll} cleanupTests Index: test.nscfg =================================================================== RCS file: /cvsroot/naviserver/naviserver/tests/test.nscfg,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** test.nscfg 20 Oct 2005 23:38:15 -0000 1.6 --- test.nscfg 21 Oct 2005 05:25:36 -0000 1.7 *************** *** 76,79 **** --- 76,92 ---- ns_param library [ns_config "test" home]/testserver/modules + ns_section "ns/server/test/module/nslog" + ns_param file [ns_config "test" home]/testserver/access.log + ns_param formattedtime true + ns_param logcombined true + ns_param maxbuffer 0 + ns_param maxbackup 1 + ns_param rollhour 0 + ns_param rolllog false + ns_param rollonsignal false + ns_param suppressquery false + ns_param checkforproxy true + ns_param extendedheaders "X-Test" + ns_section "ns/server/test/adp" ns_param map *.adp *************** *** 89,92 **** --- 102,106 ---- ns_section "ns/server/test/modules" + ns_param nslog [ns_config "test" home]/../nslog/nslog.so ns_param nsdb [ns_config "test" home]/../nsdb/nsdb.so |