Branch: Tag:

2001-10-02

2001-10-02 10:00:03 by Tomas Nilsson <tomas@roxen.com>

Updated self-test setup to match unix start script.

Rev: server/tools/ntroxen/startdll/cmdline.cpp:1.10
Rev: server/tools/ntroxen/startdll/startdll.dsp:1.4
Rev: server/tools/ntroxen/version.h:1.10

1:   // cmdline.cpp: implementation of the CCmdLine class.   // - // $Id: cmdline.cpp,v 1.9 2001/09/28 12:02:49 tomas Exp $ + // $Id: cmdline.cpp,v 1.10 2001/10/02 10:00:02 tomas Exp $   //   //////////////////////////////////////////////////////////////////////   
1390:    m_saPikeArgs.Add(("-DSELF_TEST_DIR=\\\"" + selfTestDirUnx + "\\\"").c_str());       m_bOnce = TRUE; -  m_iDebug = max(m_iDebug, 0); +  m_iDebug = max(m_iDebug, 1);    m_saRoxenArgs.Add("--config-dir=../var/test_config");    m_saRoxenArgs.Add("--remove-dumped");       SetEnvironmentVariable("COPYCMD", "/Y");    system("rmdir /Q /S ..\\var\\test_config >NUL:"); -  //system("xcopy etc\\test\\config ..\\var\\test_config\\ /E /Q >NUL:"); -  //system("copy etc\\test\\filesystem\\test_rxml_package rxml_packages\\test_rxml_package >NUL:"); -  system(("xcopy " + m_SelfTestDir + "\\config ..\\var\\test_config\\ /E /Q >NUL:").c_str()); +     -  +     std::string setupCmd = m_SelfTestDir + "\\scripts\\setup.pike";    DWORD attr = GetFileAttributes(setupCmd.c_str());    if (attr != -1 && !(attr & FILE_ATTRIBUTE_DIRECTORY))