Branch: Tag:

2001-06-26

2001-06-26 09:54:43 by Tomas Nilsson <tomas@roxen.com>

Updated the usage text. Fixed the self-test command to use the new
directory structure.

Rev: server/tools/ntroxen/startdll/cmdline.cpp:1.3
Rev: server/tools/ntroxen/startdll/startdll.cpp:1.4

1:   // cmdline.cpp: implementation of the CCmdLine class.   // - // $Id: cmdline.cpp,v 1.2 2001/06/18 16:35:15 tomas Exp $ + // $Id: cmdline.cpp,v 1.3 2001/06/26 09:54:43 tomas Exp $   //   //////////////////////////////////////////////////////////////////////   
307:    "",    " .B--help -?B.: This information.",    "", +  " .B--installB.: Register application and install as", +  " an NT service.", +  "", +  " .B--registerB.: Register application.", +  "", +  " .B--removeB.: Remove all registry setting and uninstall", +  " the NT service.", +  "",    " .B--remove-dumpedB.: Remove all dumped code, thus forcing",    " a recompile.",    "",
358:    " .B--self-testB.: Runs a testsuite.",    " .B--self-test-verboseB.: Runs a testsuite, report all tests.",   // " .B--self-test-quietB.: Runs a testsuite, only report errors.", +  " .BNOTE:B. You must manually shutdown any", +  " running mysql process both before and", +  " after these commands!",    "",    " .B--onceB.: Run the server only once, in the foreground.", -  " This is very useful when debugging.", +  " This is very useful when debugging.",    "",   /*    " .B--gdbB.: Run the server in gdb. Implies .B--onceB..",    "",   */    " .B--programB.: Start a different program with the roxen", -  " Pike. As an example,", -  " .B./start --program bin/install.pikeB. will", -  " start the installation program normally", -  " started with .B./installB.", +  " Pike.",    "",    " .B--with-debugB.: Enable debug",    "",
742:    return 1;    }    -  //'-install'|'--install') +  //'-register'|'--register')    //    if (Match(*argv, "-register", NULL, NULL) ||    Match(*argv, "--register", NULL, NULL) )
1197:    break;       case eArgSelfTest: +  //DEFINES="-DRUN_SELF_TEST $DEFINES" +  //rm -rf $VARDIR/test_config* +  //cp -R etc/test/config $VARDIR/test_config +  //cp etc/test/filesystem/test_rxml_package rxml_packages/test_rxml_package +  //DIR=$VARDIR/test_config +  //once=1 +  //remove_dumped=1    m_saPikeArgs.Add("-DRUN_SELF_TEST");    system("rmdir /Q /S ..\\var\\test_config"); -  system("xcopy etc\\roxen_test\\test_config ..\\var\\test_config\\ /E /Q /Y >NUL:"); -  system("copy /Y etc\\roxen_test\\filesystem\\test_rxml_package rxml_packages\\test_rxml_package >NUL:"); +  system("xcopy etc\\test\\config ..\\var\\test_config\\ /E /Q /Y >NUL:"); +  system("copy /Y etc\\test\\filesystem\\test_rxml_package rxml_packages\\test_rxml_package >NUL:");       m_bOnce = TRUE;    m_saRoxenArgs.Add("--config-dir=../var/test_config");