summaryrefslogtreecommitdiff
path: root/testshl2/inc/testshl
diff options
context:
space:
mode:
Diffstat (limited to 'testshl2/inc/testshl')
-rw-r--r--testshl2/inc/testshl/additionalfunc.hxx61
-rw-r--r--testshl2/inc/testshl/autoregister/callbackstructure.h86
-rw-r--r--testshl2/inc/testshl/autoregister/htestresult.h6
-rw-r--r--testshl2/inc/testshl/autoregister/registerfunc.h47
-rw-r--r--testshl2/inc/testshl/autoregister/registertestfunction.h51
-rw-r--r--testshl2/inc/testshl/autoregister/testfunc.h44
-rw-r--r--testshl2/inc/testshl/autoregisterhelper.hxx62
-rw-r--r--testshl2/inc/testshl/checkboom.hxx37
-rw-r--r--testshl2/inc/testshl/cmdlinebits.hxx49
-rw-r--r--testshl2/inc/testshl/dynamicregister.hxx64
-rw-r--r--testshl2/inc/testshl/filehelper.hxx47
-rw-r--r--testshl2/inc/testshl/getopt.hxx332
-rw-r--r--testshl2/inc/testshl/joblist.hxx96
-rw-r--r--testshl2/inc/testshl/log.hxx113
-rw-r--r--testshl2/inc/testshl/nocopy.hxx13
-rw-r--r--testshl2/inc/testshl/result/SynchronizedObject.h82
-rw-r--r--testshl2/inc/testshl/result/TestListener.h62
-rw-r--r--testshl2/inc/testshl/result/TestResult.h123
-rw-r--r--testshl2/inc/testshl/result/TestResultCollector.h165
-rw-r--r--testshl2/inc/testshl/result/TestSucessListener.h40
-rw-r--r--testshl2/inc/testshl/result/TextTestResult.h62
-rw-r--r--testshl2/inc/testshl/result/callbackfunc.h25
-rw-r--r--testshl2/inc/testshl/result/emacsTestResult.hxx79
-rw-r--r--testshl2/inc/testshl/result/log.hxx103
-rw-r--r--testshl2/inc/testshl/result/optionhelper.hxx95
-rw-r--r--testshl2/inc/testshl/result/outputter.hxx82
-rw-r--r--testshl2/inc/testshl/result/testshlTestResult.h72
-rw-r--r--testshl2/inc/testshl/signaltest.h62
-rw-r--r--testshl2/inc/testshl/simpleheader.hxx43
-rw-r--r--testshl2/inc/testshl/stringhelper.hxx39
-rw-r--r--testshl2/inc/testshl/taghelper.hxx88
-rw-r--r--testshl2/inc/testshl/tresstatewrapper.h63
-rw-r--r--testshl2/inc/testshl/tresstatewrapper.hxx57
-rw-r--r--testshl2/inc/testshl/versionhelper.hxx84
-rw-r--r--testshl2/inc/testshl/winstuff.hxx40
35 files changed, 0 insertions, 2574 deletions
diff --git a/testshl2/inc/testshl/additionalfunc.hxx b/testshl2/inc/testshl/additionalfunc.hxx
deleted file mode 100644
index 463d1ae87280..000000000000
--- a/testshl2/inc/testshl/additionalfunc.hxx
+++ /dev/null
@@ -1,61 +0,0 @@
-#ifndef ADDITIONALFUNC_HXX
-#define ADDITIONALFUNC_HXX
-
-#include "testshl/autoregister/registertestfunction.h"
-#include "sal/types.h"
-
-extern "C" void SAL_CALL RegisterAdditionalFunctions(FktRegFuncPtr _pFunc);
-
-#define NOADDITIONAL \
-void RegisterAdditionalFunctions(FktRegFuncPtr){}
-
-namespace {
-
-enum T2_OSType {
- T2_OS_WNT32 = 1,
- T2_OS_UNIX,
- T2_OS_OS2
-};
-
-inline T2_OSType getOSType()
-{
-#if defined WNT
- return T2_OS_WNT32;
-#elif defined OS2
- return T2_OS_OS2;
-#else
- return T2_OS_UNIX;
-#endif
-}
-
-}
-
-#define TESTSHL2_UNO_BOOTSTRAP(file) \
-void RegisterAdditionalFunctions(FktRegFuncPtr _pFunc) \
-{ \
- com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory> xMS; \
- com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > xComponentContext; \
- try { \
- if (strlen(#file) > 0) { \
- ::rtl::OUString iniFile(rtl::OUString::createFromAscii(#file)); \
- if (getOSType() == T2_OS_WNT32 || getOSType() == T2_OS_OS2) { \
- iniFile += ::rtl::OUString::createFromAscii(".ini"); \
- } else { \
- iniFile += ::rtl::OUString::createFromAscii("rc"); \
- } \
- xComponentContext = cppu::defaultBootstrap_InitialComponentContext(iniFile); \
- } else { \
- xComponentContext = cppu::defaultBootstrap_InitialComponentContext(); \
- } \
- xMS.set(xComponentContext->getServiceManager(), com::sun::star::uno::UNO_QUERY); \
- comphelper::setProcessServiceFactory(xMS); \
- } \
- catch (::com::sun::star::uno::Exception e ) { \
- rtl::OString aError; \
- aError = rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_ASCII_US); \
- printf("Error at UNO bootstrap time caught: %s\nMust quit.\n", aError.getStr()); \
- exit(1); \
- } \
-}
-
-#endif
diff --git a/testshl2/inc/testshl/autoregister/callbackstructure.h b/testshl2/inc/testshl/autoregister/callbackstructure.h
deleted file mode 100644
index 2bddc43eb003..000000000000
--- a/testshl2/inc/testshl/autoregister/callbackstructure.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _callbackstructure_h
-#define _callbackstructure_h
-
-#include <sal/types.h>
-#include <cppunit/callbackfunc_fktptr.h>
-#include <testshl/autoregister/registerfunc.h>
-#include <testshl/autoregister/registertestfunction.h>
-#include <testshl/cmdlinebits.hxx>
-
-// this structure will filled by the testshl tool and hand to the testdll
-
-struct CallbackStructure
-{
- // a version number, if we want to change/expand this struct
- sal_Int32 nVersion;
- sal_Int64 nMagic;
-
- FktRegFuncPtr aRegisterFunction;
-
- FktPtr_CallbackDispatch aCallbackDispatch;
-
- //# FktPtr_TestResult_startTest aStartTest;
- //# FktPtr_TestResult_addFailure aAddFailure;
- //# FktPtr_TestResult_addError aAddError;
- //# FktPtr_TestResult_endTest aEndTest;
- //# FktPtr_TestResult_shouldStop aShouldStop;
- //#
- //# FktPtr_TestResult_addInfo aAddInfo;
- //# FktPtr_TestResult_enterNode aEnterNode;
- //# FktPtr_TestResult_leaveNode aLeaveNode;
-
- const char* psForward;
- CmdLineBits nBits;
-
- // void* pJobList;
-
- sal_Int64 nMagic2;
-
- CallbackStructure()
- :nVersion(1),
- nMagic(SAL_CONST_INT64(0x0123456789abcdef)),
- aRegisterFunction(NULL),
- aCallbackDispatch(NULL),
- /* aStartTest(NULL),
- aAddFailure(NULL),
- aAddError(NULL),
- aEndTest(NULL),
- aShouldStop(NULL),
- aAddInfo(NULL),
- aEnterNode(NULL),
- aLeaveNode(NULL), */
- psForward(NULL),
- nBits(0),
- /* pJobList(NULL), */
- nMagic2(0)
- {}
-};
-
-#endif
diff --git a/testshl2/inc/testshl/autoregister/htestresult.h b/testshl2/inc/testshl/autoregister/htestresult.h
deleted file mode 100644
index 46cfbc8b6808..000000000000
--- a/testshl2/inc/testshl/autoregister/htestresult.h
+++ /dev/null
@@ -1,6 +0,0 @@
-#ifndef _htestresult_h
-#define _htestresult_h
-
-typedef void* hTestResult;
-
-#endif
diff --git a/testshl2/inc/testshl/autoregister/registerfunc.h b/testshl2/inc/testshl/autoregister/registerfunc.h
deleted file mode 100644
index 7e3ee891c2ec..000000000000
--- a/testshl2/inc/testshl/autoregister/registerfunc.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _registerfunc_h
-#define _registerfunc_h
-
-#include <sal/types.h>
-#include <testshl/autoregister/htestresult.h>
-#include <cppunit/callbackfunc_fktptr.h>
-#include <testshl/autoregister/testfunc.h>
-
-struct CallbackStructure;
-
-// this function is used to register one function into a Container in the testshl tool.
-extern "C" void SAL_CALL registerFunction(FktPtr aFunc, const char* aFuncName);
-
-// this function is the register function for auto registering
-
-extern "C" void SAL_CALL registerAllTestFunction(CallbackStructure* );
-typedef void (* FktRegAllPtr)(CallbackStructure*);
-
-
-#endif
diff --git a/testshl2/inc/testshl/autoregister/registertestfunction.h b/testshl2/inc/testshl/autoregister/registertestfunction.h
deleted file mode 100644
index 0cab2815f85e..000000000000
--- a/testshl2/inc/testshl/autoregister/registertestfunction.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _registertestfunction_h
-#define _registertestfunction_h
-
-#include <sal/types.h>
-#include <testshl/autoregister/testfunc.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// function ptr, to register a function
-typedef void (* FktRegFuncPtr)(FktPtr aFunc, const char* aFuncName);
-
-// this function is used in the testdll to register the given function
-// into the testshl
-extern "C" void SAL_CALL RegisterTestFunctions(FktRegFuncPtr aFunc);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
-
-
diff --git a/testshl2/inc/testshl/autoregister/testfunc.h b/testshl2/inc/testshl/autoregister/testfunc.h
deleted file mode 100644
index 55b97de05e34..000000000000
--- a/testshl2/inc/testshl/autoregister/testfunc.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef _testfunc_h
-#define _testfunc_h
-
-#include <testshl/autoregister/htestresult.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// typedef for a testfunction
-typedef void (* FktPtr)(hTestResult);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/testshl2/inc/testshl/autoregisterhelper.hxx b/testshl2/inc/testshl/autoregisterhelper.hxx
deleted file mode 100644
index 538133ade19d..000000000000
--- a/testshl2/inc/testshl/autoregisterhelper.hxx
+++ /dev/null
@@ -1,62 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef AUTOREGISTER_HXX
-#define AUTOREGISTER_HXX
-
-#include <vector>
-#include <rtl/ustring.hxx>
-
-#include <testshl/autoregister/testfunc.h>
-
-#include "testshl/dynamicregister.hxx"
-#include "testshl/getopt.hxx"
-
-typedef std::vector<FktPtr> FunctionList;
-
-// -----------------------------------------------------------------------------
-class JobList;
-class AutomaticRegisterHelper : public DynamicLibraryHelper
-{
- FunctionList m_aFunctionList;
- bool m_bLoadLibraryOK;
- // GetOpt & m_aOptions; // use getOptions() instead!
-
-public:
- AutomaticRegisterHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions/* , JobList * _pJobList = NULL */ );
-
- // FunctionList getFunctions(){return m_aFunctionList;}
- void CallAll(hTestResult _hResult) const;
-
- /// @return true, if the given DLLName library could load and initialised.
- bool isOkToStartTests() const {return m_bLoadLibraryOK;}
-
- virtual ~AutomaticRegisterHelper();
-};
-
-#endif
-
diff --git a/testshl2/inc/testshl/checkboom.hxx b/testshl2/inc/testshl/checkboom.hxx
deleted file mode 100644
index 668ce603a429..000000000000
--- a/testshl2/inc/testshl/checkboom.hxx
+++ /dev/null
@@ -1,37 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef CHECKBOOM_HXX
-#define CHECKBOOM_HXX
-
-#include <string>
-#include <rtl/ustring.hxx>
-
-void CheckBoom(bool bCondition, std::string const& msg);
-void CheckBoom(bool bCondition, rtl::OUString const& msg);
-
-#endif
diff --git a/testshl2/inc/testshl/cmdlinebits.hxx b/testshl2/inc/testshl/cmdlinebits.hxx
deleted file mode 100644
index 99c166f2fc83..000000000000
--- a/testshl2/inc/testshl/cmdlinebits.hxx
+++ /dev/null
@@ -1,49 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef CMDLINEBITS_HXX
-#define CMDLINEBITS_HXX
-
-#include <sal/types.h>
-
-typedef sal_uInt32 CmdLineBits;
-const char* getForwardString();
-
-#include <stdarg.h>
-
-enum T_Print_Params {
- T_INFO = 1,
- T_VERBOSE,
- T_DEBUG,
- T_ERROR
-};
-
-// void t_print(const char*);
-void t_print(const char*, ...);
-void t_print(T_Print_Params, const char*, ...);
-
-#endif
diff --git a/testshl2/inc/testshl/dynamicregister.hxx b/testshl2/inc/testshl/dynamicregister.hxx
deleted file mode 100644
index f29ad52e963f..000000000000
--- a/testshl2/inc/testshl/dynamicregister.hxx
+++ /dev/null
@@ -1,64 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef DYNAMICREGISTER_HXX
-#define DYNAMICREGISTER_HXX
-
-#include <rtl/ustring.hxx>
-#include <osl/module.hxx>
-
-#include "testshl/getopt.hxx"
-#include "testshl/nocopy.hxx"
-
-// -------------------------------------------------
-
-class DynamicLibraryHelper : NOCOPY
-{
-protected:
- osl::Module* m_pModule;
- rtl::OUString m_suDLLName;
- GetOpt & m_aOptions;
-
- GetOpt& getOptions() {return m_aOptions;}
-
-public:
- DynamicLibraryHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions);
- virtual ~DynamicLibraryHelper();
-
-private:
- void showFilenameIfVerbose();
- void realLoadLibrary(rtl::OUString const& _sLibToLoad);
- void loadLibraryFromAbsolutePath();
- void loadLibraryFromLocalPath();
-
- rtl::OUString m_suAbsolutePathFile; // file:///D:/foo/bar/library.dll
- rtl::OUString m_suAbsolutePath; // file:///D:/foo/bar
- rtl::OUString m_suFilename; // library.dll
-};
-
-#endif
-
diff --git a/testshl2/inc/testshl/filehelper.hxx b/testshl2/inc/testshl/filehelper.hxx
deleted file mode 100644
index eefef077f4b5..000000000000
--- a/testshl2/inc/testshl/filehelper.hxx
+++ /dev/null
@@ -1,47 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef FILEHELPER_HXX
-#define FILEHELPER_HXX
-
-#include <string>
-#include <rtl/ustring.hxx>
-#include <rtl/string.hxx>
-#include <testshl/cmdlinebits.hxx>
-#include "getopt.hxx"
-
-namespace FileHelper
-{
-
- std::string getTempPath();
- rtl::OUString convertPath( rtl::OUString const& _suSysPath );
- rtl::OUString convertPath( rtl::OString const& sysPth );
- CmdLineBits createFlags( GetOpt & _aOptions );
-
-}
-#endif
-
diff --git a/testshl2/inc/testshl/getopt.hxx b/testshl2/inc/testshl/getopt.hxx
deleted file mode 100644
index b4feaa7c535b..000000000000
--- a/testshl2/inc/testshl/getopt.hxx
+++ /dev/null
@@ -1,332 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-/*************************************************************************
-#* class GetOpt
-#*
-#*
-#* Implementation getopt.cxx
-#*
-#* Description: class to reflect the commandline options. In addition
-#* it provides functinality to get options from an inifile
-#* ( getIniOptions()), evaluate, test and get options
-#* ( hasOpt(), getOpt() ) and display an usage screen
-#* formated in dependance of the given optionset, as well
-#* as display a status about activ options
-#*
-#*
-#* further descriptions:
-#*
-#* the constructor is called with two parameters:
-#* char* argv[] and char* optionSet[],
-#* the commandline and the available set of options.
-#* Valid optionstrings have to start with a minus '-', otherwise it will
-#* be ignored. Optionstrings consist of one or two arguments divided by a
-#* comma separator, where the second (optional) argument is a short
-#* description of the option, called hint. It will be automatically
-#* formated and displayed in the usage screen if available.
-#* The first argument of the optionstring can consist of two sections,
-#* the name and the optional necessity and format.
-#* The name of the option will be the starting minus followed by a string
-#* like "-src".
-#* One section options will be treated as flag (see '-v' option in example).
-#* The second section consist of '=' or ':' which defines the necessity,
-#* in combination with a character 's' for string or 'n' for numeric and
-#* an optional '@' standing for 'vector of'.
-#* '=' means this option needs an argument, ':' means can take an argument
-#* followed by 's' is, as mentioned above, a single string paramenter,
-#* followed by a 's' in combination with '@' means this argument consists
-#* of one string or a vector of strings separated by commas
-#*
-#* an example for an optionset:
-#*
-#* static char* optionSet[] = {
-#* "-src=s, release or version of sources",
-#* "-ini=s, ini file with additional options",
-#* "-db=s, path of type description database",
-#* "-inPth=s, source path of component descriptions",
-#* "-outPth=s, destination path for testcases",
-#* "-logPth=s, destination path for logging",
-#* "-mdl=s@, name(s) of module(s) to generate",
-#* "-v, enable verbose screen messages",
-#* "-dbg, enable debug messages",
-#* "-h:s, display help or help on option",
-#* "-help:s, see -h",
-#* NULL
-#* };
-#*
-#* As seen a GetOpt class object will be created via:
-#* GetOpt myOptions( argv, optionSet );
-#*
-*************************************************************************/
-#ifndef __QADEV_REGSCAN_GETOPT_HXX__
-#define __QADEV_REGSCAN_GETOPT_HXX__
-
-#include <osl/file.hxx>
-#include <sal/types.h>
-#include <rtl/strbuf.hxx>
-
-
-#include <rtl/string.hxx>
-
-// #ifndef __QADEV_REGSCAN_UTIL_HXX__
-// #include "inc/util.hxx"
-// #endif
-
-
-#ifdef SOLARIS
-#include <sys/time.h>
-#endif
-
-#include <iostream>
-#include <hash_map>
-// #include "rsexception.hxx"
-
-// using namespace std;
-
-struct gstr {
- sal_Bool operator()( const rtl::OString& oStr1,
- const rtl::OString& oStr2 ) const {
- return( oStr1 == oStr2 );
- }
-};
-
-struct ghstr
-{
- sal_uInt32 operator()( const rtl::OString& str ) const {
- return str.hashCode();
- }
-};
-
-struct frmt {
- sal_uInt32 fCol;
- sal_uInt32 sCol;
- sal_uInt32 len;
-};
-
-typedef std::hash_map< rtl::OString, std::vector< rtl::OString >, ghstr, gstr >
- optHashMap;
-
-typedef frmt sFormat;
-typedef sal_uInt16 optType;
-
-#define OT_INVALID 0x0000
-#define OT_BOOL 0x0001
-#define OT_STRING 0x0002
-#define OT_NUMBER 0x0004
-#define OT_SINGLE 0x0010
-#define OT_MULTI 0x0020
-#define OT_OPTIONAL 0x0100
-
-//: Option
-class OptDsc {
-
- rtl::OString m_name;
- rtl::OString m_hint;
- rtl::OString m_legend;
- optType m_type;
-
- /**
- * analysis of optionstring and creation of option description class
- * @param const rtl::OString& opt = optionstring to analyse
- * @return void
- */
- void createOptDsc( const rtl::OString& opt );
-
- /**
- * splitting of an optionstring and creation of a tokenvector
- * in dependance of a charset
- *
- * @param const rtl::OString& opt = optionstring to split
- * @param const rtl::OString& cSet = delimiter charset
- * @param vector< rtl::OString >& optLine = tokenvector to fill
- *
- * @return void
- */
- void split( const rtl::OString& opt, const rtl::OString& charSet,
- std::vector< rtl::OString >& optLine );
-
- /**
- * private default c'tor, copy c'tor and assignment operator
- * to get compiler errors on dumb effords
- */
- OptDsc();
- OptDsc( OptDsc& );
- OptDsc& operator = ( OptDsc& );
-
-public:
-
- //> c'tor
- OptDsc( const rtl::OString& opt )
- : m_name(),
- m_hint(),
- m_legend(),
- m_type( 0 ) {
-
- createOptDsc( opt );
- } ///< c'tor
-
- //> d'tor
- ~OptDsc(){}
-
- /**
- * returns the name of this option
- * @return rtl::OString&
- */
- inline rtl::OString& getName() { return m_name; }
- /**
- * returns the hint of this option
- * @return rtl::OString&
- */
- inline rtl::OString& getHint() { return m_hint; }
- /**
- * returns the legend of this option
- * @return rtl::OString&
- */
- inline rtl::OString& getLegend() { return m_legend; }
-
- /**
- * returns the type of this option
- * @return optType
- */
- inline optType getType() { return m_type; }
-
-
- inline sal_Bool isFlag() {
- return( ( m_type &~ 0xfffe ) == OT_BOOL ) ? sal_True : sal_False;
- }
- inline sal_Bool isString() {
- return( ( m_type &~ 0xfffd ) == OT_STRING ) ? sal_True : sal_False;
- }
- inline sal_Bool isNumber() {
- return( ( m_type &~ 0xfffb ) == OT_NUMBER ) ? sal_True : sal_False;
- }
- inline sal_Bool isSingle() {
- return( ( m_type &~ 0xffef ) == OT_SINGLE ) ? sal_True : sal_False;
- }
- inline sal_Bool isMulti() {
- return( ( m_type &~ 0xffdf ) == OT_MULTI ) ? sal_True : sal_False;
- }
- inline sal_Bool isOptional() {
- return( ( m_type &~ 0xfeff ) == OT_OPTIONAL ) ? sal_True : sal_False;
- }
-
-}; ///:~ Option
-
-class Exception
-{
- rtl::OString m_sAsciiMessage;
-public:
- Exception();
- virtual ~Exception(){}
-
- Exception(char const* sAsciiMessage);
- Exception(rtl::OString const& sAsciiMessage);
-
- virtual rtl::OUString message() const;
- virtual char const* what() const;
-};
-
-class ValueNotFoundException : public Exception
-{
-public:
- ValueNotFoundException();
- ValueNotFoundException(char const* sExit);
-};
-
-//: GetOpt
-class GetOpt {
-
- rtl::OString m_prgname;
- rtl::OString m_vardelim;
- std::vector< rtl::OString > m_cmdline;
- std::vector< rtl::OString > m_param;
- std::vector< rtl::OString > m_varvec;
- std::vector< OptDsc* > m_optionset;
- optHashMap m_opthash;
-
- //> private methods
- void initialize( char* cmdLine[], char const * optSet[] );
- void createCmdLineOptions();
- sal_uInt32 getMaxNameLength();
- sal_uInt32 getMaxLegendLength();
- const rtl::OString optDsc2Str( OptDsc* optDsc , sFormat frm );
- void tokenize( const rtl::OString& opt, const rtl::OString& charSet,
- std::vector< rtl::OString >& optLine, sal_Bool strip = sal_True );
- ///< private methods
-
- GetOpt();
- GetOpt( GetOpt& );
- GetOpt& operator = ( GetOpt& );
-
-public:
-
- //> c'tor
- GetOpt( char* cmdLine[], char const * optSet[], rtl::OString varDelim =
- rtl::OString( "$" ) )
- : m_vardelim( varDelim ) {
-
- initialize( cmdLine, optSet );
- createCmdLineOptions();
- } ///< c'tor
-
- //> d'tor
- ~GetOpt();
- ///< d'tor
-
- //> inline methods
- inline std::vector< rtl::OString >* getCmdLine() { return &m_cmdline; }
- inline optHashMap* getOptions() { return ( &m_opthash ); }
- inline rtl::OString& getName() { return m_prgname; }
- inline rtl::OString& getFirstParam() { return *(m_param.begin()); }
- inline std::vector< rtl::OString >& getParams() { return m_param; }
- rtl::OString& getOpt( const rtl::OString& opt );
- void rmvOpt( rtl::OString& opt ) {
- m_opthash.erase( opt );
- }
- inline std::vector< rtl::OString >& getOptVec( const rtl::OString& opt ) {
- return m_opthash[ opt ];
- }
- ///< inline methods
-
-
- sal_Bool exist( rtl::OString& opt );
- sal_Bool hasParam( std::vector< rtl::OString >::iterator iter );
- sal_Bool hasVars( void );
- sal_Bool evaluateOpt( std::vector< rtl::OString >::iterator iter );
- OptDsc* getOptDsc( rtl::OString& opt );
- sal_Bool hasOpt( const rtl::OString& opt ) const;
- ::osl::FileBase::RC getIniOptions( rtl::OString iniPth );
- void createOpt( rtl::OString& optdsc );
- void str2Opt( rtl::OString iOpts );
- void addOpt( rtl::OString& opt, sal_Bool evaluate = sal_True );
- void replVars( void );
- void showUsage( void );
- void printStatus( void );
-
-}; ///:~ GetOpt
-#endif
diff --git a/testshl2/inc/testshl/joblist.hxx b/testshl2/inc/testshl/joblist.hxx
deleted file mode 100644
index 24f45bc5ec26..000000000000
--- a/testshl2/inc/testshl/joblist.hxx
+++ /dev/null
@@ -1,96 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef CPPUNIT_JOBLIST_HXX
-#define CPPUNIT_JOBLIST_HXX
-
-#include <vector>
-#include <string>
-#include <hash_map>
-#include "sal/types.h"
-
-// #include <testshl/nocopy.hxx>
-
-/*
- struct eqstr
- {
- bool operator()( std::string const & s1, std::string const& s2 ) const
- {
- return ( s1 == s2 );
- }
- };
-*/
-
-/*
- struct hashstr
- {
- sal_uInt32 operator()( std::string const & str ) const
- {
- return str.hashCode();
- }
- };
-*/
-typedef std::hash_map< std::string, int > HashMap;
-
-// typedef std::vector<std::string> StringList;
-
-#define JOB_UNKNOWN 0
-#define JOB_NOT_FOUND 1
-#define JOB_PASSED 2
-#define JOB_FAILED 3
-#define JOB_ACCESS 4
-
-#define JOB_EXCLUDE_LIST 0x1000
-#define JOB_ONLY_LIST 0x1001
-
-typedef sal_Int16 JobType;
-
-class JobList /* : NOCOPY */
-{
- HashMap m_aJobList;
- char** ppsJobList;
-
- // returns true if the given List contains unxlngi or unxsols or wntmsci...
- bool isInCurrentEnvironment(std::string const& _sString);
- std::string trim(std::string const& _sStringToTrim);
-
-public:
- JobList();
- ~JobList();
-
- bool readfile(std::string const& _sFilename, JobType _nJobType);
- const char** getList() const {return (const char**)ppsJobList;}
-
- int getJobListEntry(std::string const& _sIndexName);
- void setJobListEntry(std::string const& _sIndexName, int _nValue);
-
- int size() {return m_aJobList.size();}
- HashMap const& getHashMap() {return m_aJobList;}
-};
-
-#endif
-
diff --git a/testshl2/inc/testshl/log.hxx b/testshl2/inc/testshl/log.hxx
deleted file mode 100644
index abe93c55347f..000000000000
--- a/testshl2/inc/testshl/log.hxx
+++ /dev/null
@@ -1,113 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- *************************************************************************
-
- Source Code Control System - Header
-
- $Header$
-
- Source Code Control System - Update
-
-*************************************************************************/
-#ifndef __QADEV_REGSCAN_LOG_HXX__
-#define __QADEV_REGSCAN_LOG_HXX__
-
-#include <time.h>
-#include <rtl/ustring.hxx>
-#include <rtl/strbuf.hxx>
-#include <sal/types.h>
-#include <osl/thread.h>
-#include <osl/file.hxx>
-
-//!io #include <iostream>
-#include <vector>
-
-// using namespace std;
-
-
-/**
- * Log derives the interface of the ::osl::File class ( is-a relation ).
- * Its members (has-a relation) are the (full qualified)name of the log
- * and an OStringBuffer which represents the content of the logfile.
- * It provides the functionality of easy-to-use open and write logs
- */
-//: Log
-class Log {
-
- ::osl::File* m_logfile; // fileobject
- rtl::OUString m_logurl; // url of log
- rtl::OStringBuffer m_buf; // content of log
-
- Log();
-
-public:
-
- //> c'tor
- /**
- * constructors argument is a full qualified UNC path
- * @param OUString logfile ( full qualified UNC path )
- */
- Log( const rtl::OUString& logURL )
- : m_logfile( new ::osl::File( logURL ))
- , m_logurl(logURL)
- {} ///< c'tor
-
- //> d'tor
- virtual ~Log() {
- m_logfile->close();
- delete( m_logfile );
- } ///< d'tor
-
- //> inline methods
- // returns a reference to name instance
- inline rtl::OUString getLogURL() { return m_logurl; }
- inline rtl::OString getName() { return rtl::OUStringToOString(
- m_logurl, RTL_TEXTENCODING_ASCII_US ); }
- ///< inline methods
-
- // open logfile for overwrite (default) or append
- ::osl::FileBase::RC open( sal_Bool append = sal_False );
- ::osl::FileBase::RC close() { return m_logfile->close(); }
-
-
- // write methods without (default) or with echo on display
- ::osl::FileBase::RC write( const sal_Char* buf, sal_Bool v = sal_False );
- ::osl::FileBase::RC write( const rtl::OString& buf,
- sal_Bool v = sal_False );
- // ::osl::FileBase::RC write( rtl::OStringBuffer const& buf,
- // sal_Bool v = sal_False );
- ::osl::FileBase::RC write( const rtl::OUString& buf,
- rtl_TextEncoding enc = RTL_TEXTENCODING_ASCII_US,
- sal_Bool v = sal_False );
-
-}; ///:~ Log
-
-Log &operator <<( Log &_aLog, const sal_Char * _sValue );
-Log &operator <<( Log &_aLog, rtl::OString const& _sValue );
-Log &operator <<( Log &_aLog, rtl::OUString const& _sValue );
-// Log &operator <<( Log &_aLog, rtl::OStringBuffer const& _sValue );
-
-#endif
diff --git a/testshl2/inc/testshl/nocopy.hxx b/testshl2/inc/testshl/nocopy.hxx
deleted file mode 100644
index 660bb1892e46..000000000000
--- a/testshl2/inc/testshl/nocopy.hxx
+++ /dev/null
@@ -1,13 +0,0 @@
-#ifndef NOCOPY_HXX
-#define NOCOPY_HXX
-
-// prevent illegal copies
-class NOCOPY
-{
- NOCOPY(NOCOPY const&);
- NOCOPY& operator=(NOCOPY const&);
-public:
- NOCOPY(){}
-};
-
-#endif
diff --git a/testshl2/inc/testshl/result/SynchronizedObject.h b/testshl2/inc/testshl/result/SynchronizedObject.h
deleted file mode 100644
index 6994fdb1692e..000000000000
--- a/testshl2/inc/testshl/result/SynchronizedObject.h
+++ /dev/null
@@ -1,82 +0,0 @@
-#ifndef CPPUNIT_SYNCHRONIZEDOBJECT_H
-#define CPPUNIT_SYNCHRONIZEDOBJECT_H
-
-#include <cppunit/Portability.h>
-#include <testshl/nocopy.hxx>
-
-namespace CppUnit
-{
-
-/*! \brief Base class for synchronized object.
- *
- * Synchronized object are object which members are used concurrently by mutiple
- * threads.
- *
- * This class define the class SynchronizationObject which must be subclassed
- * to implement an actual lock.
- *
- * Each instance of this class holds a pointer on a lock object.
- *
- * See src/msvc6/MfcSynchronizedObject.h for an example.
- */
-class CPPUNIT_API SynchronizedObject
-{
-public:
- /*! \brief Abstract synchronization object (mutex)
- */
- class SynchronizationObject
- {
- public:
- SynchronizationObject() {}
- virtual ~SynchronizationObject() {}
-
- virtual void lock() {}
- virtual void unlock() {}
- };
-
- /*! Constructs a SynchronizedObject object.
- */
- SynchronizedObject( SynchronizationObject *syncObject =0 );
-
- /// Destructor.
- virtual ~SynchronizedObject();
-
-protected:
- /*! \brief Locks a synchronization object in the current scope.
- */
- class ExclusiveZone : NOCOPY
- {
- SynchronizationObject *m_syncObject;
-
- public:
- ExclusiveZone( SynchronizationObject *syncObject )
- : m_syncObject( syncObject )
- {
- m_syncObject->lock();
- }
-
- ~ExclusiveZone()
- {
- m_syncObject->unlock ();
- }
- };
-
- virtual void setSynchronizationObject( SynchronizationObject *syncObject );
-
-protected:
- SynchronizationObject *m_syncObject;
-
-private:
- /// Prevents the use of the copy constructor.
- SynchronizedObject( const SynchronizedObject &copy );
-
- /// Prevents the use of the copy operator.
- void operator =( const SynchronizedObject &copy );
-};
-
-
-
-} // namespace CppUnit
-
-
-#endif // CPPUNIT_SYNCHRONIZEDOBJECT_H
diff --git a/testshl2/inc/testshl/result/TestListener.h b/testshl2/inc/testshl/result/TestListener.h
deleted file mode 100644
index 0814f21b7e2f..000000000000
--- a/testshl2/inc/testshl/result/TestListener.h
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef CPPUNIT_TESTLISTENER_H // -*- C++ -*-
-#define CPPUNIT_TESTLISTENER_H
-
-#include <cppunit/Portability.h>
-
-
-namespace CppUnit {
-
-class Exception;
-class Test;
-class TestFailure;
-
-
-/*! \brief Listener for test progress and result.
- * \ingroup TrackingTestExecution
- *
- * Implementing the Observer pattern a TestListener may be registered
- * to a TestResult to obtain information on the testing progress. Use
- * specialized sub classes of TestListener for text output
- * (TextTestProgressListener). Do not use the Listener for the test
- * result output, use a subclass of Outputter instead.
- *
- * The test framework distinguishes between failures and errors.
- * A failure is anticipated and checked for with assertions. Errors are
- * unanticipated problems signified by exceptions that are not generated
- * by the framework.
- *
- * \see TestResult
- */
-class CPPUNIT_API TestListener
-{
-public:
- virtual ~TestListener() {}
-
- /// Called when just before a TestCase is run.
- virtual void startTest( Test *test ) =0 ;
-
- /*! Called when a failure occurs while running a test.
- * \see TestFailure.
- * \warning \a failure is a temporary object that is destroyed after the
- * method call. Use TestFailure::clone() to create a duplicate.
- */
- virtual void addFailure( const TestFailure &failure ) =0;
-
- /// Called just after a TestCase was run (even if a failure occured).
- virtual void endTest( Test *test ) =0;
-
- // additional info
- virtual void addInfo(Test *test, const char*) =0;
-
- // info in which node we are
- // helper functions to create tree structures
- // old: virtual void enterNode( const char* ) =0;
- // old: virtual void leaveNode( const char* ) =0;
-};
-
-
-} // namespace CppUnit
-
-#endif // CPPUNIT_TESTLISTENER_H
-
-
diff --git a/testshl2/inc/testshl/result/TestResult.h b/testshl2/inc/testshl/result/TestResult.h
deleted file mode 100644
index 22b5d2346664..000000000000
--- a/testshl2/inc/testshl/result/TestResult.h
+++ /dev/null
@@ -1,123 +0,0 @@
-#ifndef CPPUNIT_TESTRESULT_H
-#define CPPUNIT_TESTRESULT_H
-
-#include <cppunit/Portability.h>
-
-#if CPPUNIT_NEED_DLL_DECL
-#ifdef _MSC_VER
-#pragma warning( push )
-#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
-#endif
-#endif
-
-#include <testshl/result/SynchronizedObject.h>
-#include <vector>
-#include <string>
-#include <deque>
-//!io #include <iostream>
-
-#include "testshl/result/optionhelper.hxx"
-#include "cppunit/TestFailure.h"
-
-class Outputter;
-namespace CppUnit {
-
-class Exception;
-class Test;
-// class TestFailure;
-class TestListener;
-
-#if CPPUNIT_NEED_DLL_DECL
- template class CPPUNIT_API std::deque<TestListener *>;
-#endif
-
-/*! \brief Manages TestListener.
- * \ingroup TrackingTestExecution
- *
- * A single instance of this class is used when running the test. It is usually
- * created by the test runner (TestRunner).
- *
- * This class shouldn't have to be inherited from. Use a TestListener
- * or one of its subclasses to be informed of the ongoing tests.
- * Use a Outputter to receive a test summary once it has finished
- *
- * TestResult supplies a template method 'setSynchronizationObject()'
- * so that subclasses can provide mutual exclusion in the face of multiple
- * threads. This can be useful when tests execute in one thread and
- * they fill a subclass of TestResult which effects change in another
- * thread. To have mutual exclusion, override setSynchronizationObject()
- * and make sure that you create an instance of ExclusiveZone at the
- * beginning of each method.
- *
- * \see Test, TestListener, TestResultCollector, Outputter.
- */
-class CPPUNIT_API TestResult : protected SynchronizedObject
-{
-protected:
- OptionHelper m_aOptionHelper;
-
-public:
- TestResult( GetOpt & _aOptions, SynchronizationObject *syncObject = 0 );
- virtual ~TestResult();
-
- virtual void addListener( TestListener *listener );
- virtual void removeListener( TestListener *listener );
-
- virtual void reset();
- virtual void stop();
-
- virtual bool shouldStop() const;
-
- virtual void startTest( Test *test );
- virtual void addError( Test *test, Exception *e, ErrorType::num eType=ErrorType::ET_ERROR);
- virtual void addFailure( Test *test, Exception *e );
- virtual void endTest( Test *test );
-
- // LLA: additionals
- virtual void addInfo(Test *test, const char *sInfo);
-
- virtual void enterNode(const char* Node);
- virtual void leaveNode(const char* Node);
- virtual std::string getNodeName();
-
- // if true, execution is allowed.
- virtual bool isAllowedToExecute(std::string const & sName);
- bool isOnlyShowJobs() {return m_aOptionHelper.isOnlyShowJobs();}
- bool isOptionWhereAmI();
-
- virtual void print(Outputter &);
- void setExitValue(int _nValue) {m_nExitValue = _nValue;}
- int getExitValue() {return m_nExitValue;}
-
-protected:
- void addFailure( const TestFailure &failure );
-
-protected:
- typedef std::deque<TestListener *> TestListeners;
- TestListeners m_listeners;
- bool m_stop;
-
- // this vector is used to expand the test name with a current node name
- std::vector<std::string> m_aCurrentNodeNames;
-
- //# std::vector<std::string> m_aNodes;
-
-private:
- TestResult( const TestResult &other );
- TestResult &operator =( const TestResult &other );
- int m_nExitValue;
-};
-
-
-} // namespace CppUnit
-
-
-#if CPPUNIT_NEED_DLL_DECL
-#ifdef _MSC_VER
-#pragma warning( pop )
-#endif
-#endif
-
-#endif // CPPUNIT_TESTRESULT_H
-
-
diff --git a/testshl2/inc/testshl/result/TestResultCollector.h b/testshl2/inc/testshl/result/TestResultCollector.h
deleted file mode 100644
index ddbe517f8935..000000000000
--- a/testshl2/inc/testshl/result/TestResultCollector.h
+++ /dev/null
@@ -1,165 +0,0 @@
-#ifndef CPPUNIT_TESTRESULTCOLLECTOR_H
-#define CPPUNIT_TESTRESULTCOLLECTOR_H
-
-#include <cppunit/Portability.h>
-
-#if CPPUNIT_NEED_DLL_DECL
-#ifdef _MSC_VER
-#pragma warning( push )
-#pragma warning( disable: 4251 ) // X needs to have dll-interface to be used by clients of class Z
-#endif
-#endif
-
-#include <testshl/result/TestResult.h>
-#include <testshl/result/TestSucessListener.h>
-#include <deque>
-#include <vector>
-
-namespace CppUnit
-{
-
-
-#if CPPUNIT_NEED_DLL_DECL
- template class CPPUNIT_API std::deque<TestFailure *>;
- template class CPPUNIT_API std::deque<Test *>;
-#endif
-
-
-/*! \brief Collects test result.
- * \ingroup WritingTestResult
- * \ingroup BrowsingCollectedTestResult
- *
- * A TestResultCollector is a TestListener which collects the results of executing
- * a test case. It is an instance of the Collecting Parameter pattern.
- *
- * The test framework distinguishes between failures and errors.
- * A failure is anticipated and checked for with assertions. Errors are
- * unanticipated problems signified by exceptions that are not generated
- * by the framework.
- * \see TestListener, TestFailure.
- */
-
-class OneStringContainer
-{
- std::string m_sName;
-protected:
- OneStringContainer() {}
-public:
- OneStringContainer(std::string const& _sName)
- :m_sName(_sName){}
- std::string getString() const {return m_sName;}
- virtual ~OneStringContainer(){}
-};
-
-// -----------------------------------------------------------------------------
-class TestEnvelope : public OneStringContainer
-{
- Test* m_pTest;
-public:
- TestEnvelope():m_pTest(NULL){}
-
- TestEnvelope(Test* _pTest, std::string const& _sName)
- : OneStringContainer(_sName),
- m_pTest(_pTest)
- {}
-
- Test* getTest() {return m_pTest;}
- virtual ~TestEnvelope(){}
-
-};
-
-// -----------------------------------------------------------------------------
-class TestInfo : public TestEnvelope
-{
-public:
- TestInfo(Test* _pTest, std::string const& _sName)
- :TestEnvelope(_pTest, _sName)
- {}
-};
-
-// -----------------------------------------------------------------------------
-class TestFailureEnvelope : public OneStringContainer
-{
- TestFailure* m_pTestFailure;
-public:
- TestFailureEnvelope():m_pTestFailure(NULL){}
-
- TestFailureEnvelope(TestFailure* _pTestFailure, std::string const& _sName)
- :OneStringContainer(_sName),
- m_pTestFailure(_pTestFailure)
- {}
-
- TestFailure* getTestFailure() {return m_pTestFailure;}
- virtual ~TestFailureEnvelope(){}
-
-};
-// -----------------------------------------------------------------------------
-
-class CPPUNIT_API TestResultCollector : public TestSucessListener
-{
- TestResult* m_pResult;
-public:
- typedef std::deque<TestFailureEnvelope *> TestFailures;
- typedef std::deque<TestEnvelope *> Tests;
- typedef std::vector<TestInfo *> TestInfos;
-
-
- /*! Constructs a TestResultCollector object.
- */
- TestResultCollector( TestResult *_pResult, SynchronizationObject *syncObject = 0 );
-
- /// Destructor.
- virtual ~TestResultCollector();
-
- void startTest( Test *test );
- void endTest( Test *test );
-
- void addFailure( const TestFailure &failure );
-
- virtual void reset();
-
- virtual int runTests() const;
- virtual int testErrors() const;
- virtual int testFailures() const;
- virtual int testFailuresTotal() const;
-
- virtual const TestFailures& failures() const;
- virtual const Tests &tests() const;
- virtual std::string getInfo(Test*);
-
- virtual void addInfo(Test *test, const char *sInfo);
-
- // virtual void enterNode(const char* Node);
- // virtual void leaveNode(const char* Node);
-
-protected:
- Tests m_tests;
- TestFailures m_failures;
- TestInfos m_aInfos;
-
- int m_testErrors;
-
- // this vector is used to expand the test name with a current node name
- // std::vector<std::string> m_aCurrentNodeNames;
- // std::string getNodeName();
-private:
- /// Prevents the use of the copy constructor.
- TestResultCollector( const TestResultCollector &copy );
-
- /// Prevents the use of the copy operator.
- void operator =( const TestResultCollector &copy );
-};
-
-
-
-} // namespace CppUnit
-
-
-#if CPPUNIT_NEED_DLL_DECL
-#ifdef _MSC_VER
-#pragma warning( pop )
-#endif
-#endif
-
-
-#endif // CPPUNIT_TESTRESULTCOLLECTOR_H
diff --git a/testshl2/inc/testshl/result/TestSucessListener.h b/testshl2/inc/testshl/result/TestSucessListener.h
deleted file mode 100644
index 3eb53b9fc13f..000000000000
--- a/testshl2/inc/testshl/result/TestSucessListener.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef CPPUNIT_TESTSUCESSLISTENER_H
-#define CPPUNIT_TESTSUCESSLISTENER_H
-
-#include <testshl/result/SynchronizedObject.h>
-#include <testshl/result/TestListener.h>
-
-
-namespace CppUnit
-{
-
-/*! \brief TestListener that checks if any test case failed.
- * \ingroup TrackingTestExecution
- */
-class CPPUNIT_API TestSucessListener : public TestListener,
- public SynchronizedObject
-{
-public:
- /*! Constructs a TestSucessListener object.
- */
- TestSucessListener( SynchronizationObject *syncObject = 0 );
-
- /// Destructor.
- virtual ~TestSucessListener();
-
- virtual void reset();
-
- void addFailure( const TestFailure &failure );
-
- /// Returns whether the entire test was successful or not.
- virtual bool wasSuccessful() const;
-
-private:
- bool m_sucess;
-};
-
-
-} // namespace CppUnit
-
-
-#endif // CPPUNIT_TESTSUCESSLISTENER_H
diff --git a/testshl2/inc/testshl/result/TextTestResult.h b/testshl2/inc/testshl/result/TextTestResult.h
deleted file mode 100644
index e2ba0ffba427..000000000000
--- a/testshl2/inc/testshl/result/TextTestResult.h
+++ /dev/null
@@ -1,62 +0,0 @@
-#ifndef CPPUNIT_TEXTTESTRESULT_H
-#define CPPUNIT_TEXTTESTRESULT_H
-
-#include <testshl/result/TestResult.h>
-#include <testshl/result/TestResultCollector.h>
-#include <ostream>
-
-class GetOpt;
-namespace CppUnit {
-
-class SourceLine;
-class Exception;
-class Test;
-
-/*! \brief Holds printable test result (DEPRECATED).
- * \ingroup TrackingTestExecution
- *
- * deprecated Use class TextTestProgressListener and TextOutputter instead.
- */
-class CPPUNIT_API TextTestResult : public TestResult
-/* public TestResultCollector*/
-{
- TestResultCollector m_aResulter;
-public:
- TextTestResult(GetOpt& _aOptions);
-
- virtual void addFailure( const TestFailure &failure );
- virtual void startTest( Test *test );
- virtual void endTest( Test *test );
-
- virtual void print( std::ostream &stream );
-protected:
-
- virtual void printFailures( std::ostream &stream );
- virtual void printHeader( std::ostream &stream );
-
- virtual void printFailure( TestFailure *failure,
- int failureNumber,
- std::ostream &stream );
- virtual void printFailureListMark( int failureNumber,
- std::ostream &stream );
- virtual void printFailureTestName( TestFailure *failure,
- std::ostream &stream );
- virtual void printFailureType( TestFailure *failure,
- std::ostream &stream );
- virtual void printFailureLocation( SourceLine sourceLine,
- std::ostream &stream );
- virtual void printFailureDetail( Exception *thrownException,
- std::ostream &stream );
- virtual void printFailureWarning( std::ostream &stream );
- virtual void printStatistics( std::ostream &stream );
-};
-
-/** insertion operator for easy output */
-std::ostream &operator <<( std::ostream &stream,
- TextTestResult &result );
-
-} // namespace CppUnit
-
-#endif // CPPUNIT_TEXTTESTRESULT_H
-
-
diff --git a/testshl2/inc/testshl/result/callbackfunc.h b/testshl2/inc/testshl/result/callbackfunc.h
deleted file mode 100644
index 606bf7179163..000000000000
--- a/testshl2/inc/testshl/result/callbackfunc.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef _callbackfunc_h
-#define _callbackfunc_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
- // this is the entry point from the DLL back to the executable.
- long CallbackDispatch(int x, ...);
-
-//# void TestResult_startTest(hTestResult _pResult, hTest _pTest);
-//# void TestResult_addFailure( hTestResult _pResult, hTest _pTest, hException _pException );
-//# void TestResult_addError( hTestResult _pResult, hTest _pTest, hException _pException );
-//# void TestResult_endTest( hTestResult _pResult, hTest _pTest );
-//# bool TestResult_shouldStop(hTestResult _pResult);
-//# void TestResult_addInfo( hTestResult _pResult, hTest _pTest, const char* _sInfo );
-//#
-//# void TestResult_enterNode( hTestResult _pResult, const char* _sInfo );
-//# void TestResult_leaveNode( hTestResult _pResult, const char* _sInfo );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/testshl2/inc/testshl/result/emacsTestResult.hxx b/testshl2/inc/testshl/result/emacsTestResult.hxx
deleted file mode 100644
index 3f64060d75cb..000000000000
--- a/testshl2/inc/testshl/result/emacsTestResult.hxx
+++ /dev/null
@@ -1,79 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef cppunit_emacstestresult_h
-#define cppunit_emacstestresult_h
-
-#include <testshl/result/TestResult.h>
-#include <testshl/result/TestResultCollector.h>
-#include <ostream>
-#include "testshl/getopt.hxx"
-
-class Outputter;
-namespace CppUnit {
-
-class SourceLine;
-class Exception;
-class Test;
-
-/*! \brief Holds printable test result (DEPRECATED).
- * \ingroup TrackingTestExecution
- *
- * deprecated Use class TextTestProgressListener and TextOutputter instead.
- */
- class CPPUNIT_API emacsTestResult : public TestResult
-
-/* ,public TestResultCollector*/
- {
- GetOpt & m_aOptions;
- // OptionHelper m_aOptionHelper;
- TestResultCollector m_aResulter;
-
- public:
- emacsTestResult(GetOpt & _aOptions);
-
- // virtual void addFailure( const TestFailure &failure );
- // virtual void startTest( Test *test );
- // virtual void endTest( Test *test );
-
- virtual void print( Outputter &stream );
-
- protected:
- virtual void printHeader( Outputter &stream );
- // virtual void printTestLine( Outputter &stream, Test* pTest, std::string const& _sNodeName, std::string const& _sInfo);
- virtual void printFailureLine( Outputter &stream, TestFailure* pFailure, std::string const& _sNodeName );
- };
-
-/** insertion operator for easy output */
-// std::ostream &operator <<( std::ostream &stream,
-// emacsTestResult &result );
-
-} // namespace CppUnit
-
-#endif // CPPUNIT_testshlTESTRESULT_H
-
-
diff --git a/testshl2/inc/testshl/result/log.hxx b/testshl2/inc/testshl/result/log.hxx
deleted file mode 100644
index f57c9af0e119..000000000000
--- a/testshl2/inc/testshl/result/log.hxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-#ifndef __QADEV_REGSCAN_LOG_HXX__
-#define __QADEV_REGSCAN_LOG_HXX__
-
-#include <time.h>
-#include <rtl/ustring.hxx>
-#include <rtl/strbuf.hxx>
-#include <sal/types.h>
-#include <osl/thread.h>
-#include <osl/file.hxx>
-
-#include <testshl/nocopy.hxx>
-
-//!io #include <iostream>
-#include <vector>
-
-// using namespace std;
-
-
-/**
- * Log derives the interface of the ::osl::File class ( is-a relation ).
- * Its members (has-a relation) are the (full qualified)name of the log
- * and an OStringBuffer which represents the content of the logfile.
- * It provides the functionality of easy-to-use open and write logs
- */
-//: Log
-class Log : NOCOPY {
-
- ::osl::File* m_logfile; // fileobject
- rtl::OUString m_logurl; // url of log
- rtl::OStringBuffer m_buf; // content of log
-
- Log();
-
-public:
-
- //> c'tor
- /**
- * constructors argument is a full qualified UNC path
- * @param OUString logfile ( full qualified UNC path )
- */
- Log( const rtl::OUString& logURL )
- : m_logfile( new ::osl::File( logURL ))
- , m_logurl(logURL)
- {} ///< c'tor
-
- //> d'tor
- virtual ~Log()
- {
- m_logfile->close();
- delete( m_logfile );
- } ///< d'tor
-
- //> inline methods
- // returns a reference to name instance
- inline rtl::OUString getLogURL() { return m_logurl; }
- inline rtl::OString getName() { return rtl::OUStringToOString(
- m_logurl, RTL_TEXTENCODING_ASCII_US ); }
- ///< inline methods
-
- // open logfile for overwrite (default) or append
- ::osl::FileBase::RC open( sal_Bool append = sal_False );
- ::osl::FileBase::RC close() { return m_logfile->close(); }
-
-
- // write methods without (default) or with echo on display
- ::osl::FileBase::RC write( const sal_Char* buf, sal_Bool v = sal_False );
- ::osl::FileBase::RC write( const rtl::OString& buf,
- sal_Bool v = sal_False );
- //! ::osl::FileBase::RC write( rtl::OStringBuffer& buf,
- //! sal_Bool v = sal_False );
- ::osl::FileBase::RC write( const rtl::OUString& buf,
- rtl_TextEncoding enc = RTL_TEXTENCODING_ASCII_US,
- sal_Bool v = sal_False );
-
-}; ///:~ Log
-
-#endif
diff --git a/testshl2/inc/testshl/result/optionhelper.hxx b/testshl2/inc/testshl/result/optionhelper.hxx
deleted file mode 100644
index 6b67bacf0472..000000000000
--- a/testshl2/inc/testshl/result/optionhelper.hxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef optionhelper_hxx
-#define optionhelper_hxx
-
-#include <string>
-
-#include <sal/types.h>
-
-#include "testshl/nocopy.hxx"
-#include "testshl/getopt.hxx"
-#include "testshl/joblist.hxx"
-
-// -----------------------------------------------------------------------------
-
-typedef std::vector<rtl::OString> OStringList;
-
-//!? Better: OptionHelper
-class OptionHelper : NOCOPY
-{
- GetOpt & m_aOption;
- JobList m_aJobOnlyList;
- JobList m_aJobExcludeList;
- OStringList m_aJobFilter;
-
- std::string m_sProjectId;
- std::string m_sBuildId;
-
- std::string getProjectId() const;
- std::string getBuildId() const;
- std::string createDateTag(std::string const& _sProjectId, std::string const& _sBuildId);
-
- void handleJobs();
-public:
- OptionHelper(GetOpt & _aOption)
- :m_aOption(_aOption)
- {
- if (m_aOption.hasOpt("-projectid"))
- m_sProjectId = m_aOption.getOpt("-projectid");
-
- if (m_aOption.hasOpt("-buildid"))
- m_sBuildId = m_aOption.getOpt("-buildid");
-
- handleJobs();
- }
-
- static std::string integerToAscii(sal_Int32 nValue);
- static std::string twoDigits(std::string const& _sValue);
-
- std::string createDateTag();
- bool showErrors();
- bool showTests();
-
- JobList getJobOnlyList() {return m_aJobOnlyList;}
- JobList getJobExcludeList() {return m_aJobExcludeList;}
-
- bool isAllowedToExecute(std::string const& _sNode, std::string const& _sName);
-
- bool isOnlyShowJobs() {return m_aOption.hasOpt("-onlyshowjobs") == sal_True ? true : false;}
- GetOpt& getOptions() {return m_aOption;}
- bool isVerbose() {return m_aOption.hasOpt("-verbose") == sal_True ? true : false;}
- bool isOptionWhereAmI() {return m_aOption.hasOpt("-whereami") == sal_True ? true : false;}
-};
-
-// -----------------------------------------------------------------------------
-
-
-#endif
-
-
diff --git a/testshl2/inc/testshl/result/outputter.hxx b/testshl2/inc/testshl/result/outputter.hxx
deleted file mode 100644
index 9394a39a1ccd..000000000000
--- a/testshl2/inc/testshl/result/outputter.hxx
+++ /dev/null
@@ -1,82 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-//
-
-#ifndef outputter_hxx
-#define outputter_hxx
-
-#include <string>
-#include <ostream>
-#include <memory>
-#include "testshl/log.hxx"
-#include <sal/types.h>
-#include "testshl/nocopy.hxx"
-
-// #include <fstream>
-
-class Outputter : NOCOPY
-{
- std::auto_ptr<Log> m_pLog;
- std::ostream* m_pStream;
-
- void writeToAll(const sal_Char* _pStr);
-public:
- class endl
- {
- char c;
- public:
- endl():c('\0'){}
- };
-public:
- Outputter(Log * _pLog )
- :m_pLog(_pLog),
- m_pStream(NULL) {}
-
- Outputter(std::ostream& _aStream)
- :m_pLog(NULL),
- m_pStream(&_aStream) {}
-
- ~Outputter();
-
- void write(const sal_Char*);
- void write(std::string const&);
- void write(sal_Int32);
- // void write(double);
-};
-
-Outputter& operator <<( Outputter &stream, const sal_Char* );
-Outputter& operator <<( Outputter &stream, std::string const& );
-Outputter& operator <<( Outputter &stream, sal_Int32 );
-// Outputter& operator <<( Outputter &stream, double );
-
-Outputter& operator <<( Outputter &stream, Outputter::endl const&);
-
-// Outputter& operator <<( Outputter &stream, const char* );
-
-#endif
-
diff --git a/testshl2/inc/testshl/result/testshlTestResult.h b/testshl2/inc/testshl/result/testshlTestResult.h
deleted file mode 100644
index 22a50a9a841e..000000000000
--- a/testshl2/inc/testshl/result/testshlTestResult.h
+++ /dev/null
@@ -1,72 +0,0 @@
-#ifndef cppunit_testshltestresult_h
-#define cppunit_testshltestresult_h
-
-#include <map>
-#include <testshl/result/TestResult.h>
-#include <testshl/result/TestResultCollector.h>
-#include <ostream>
-#include "testshl/getopt.hxx"
-
-class Outputter;
-
-namespace CppUnit {
-
-class SourceLine;
-class Exception;
-class Test;
-
-struct ltstr
-{
- bool operator()(const CppUnit::Test* p1, const CppUnit::Test* p2) const
- {
- return p1 < p2;
- }
-};
-typedef std::map<CppUnit::Test*, bool, ltstr> TestPtrList;
-
-
-/*! \brief Holds printable test result (DEPRECATED).
- * \ingroup TrackingTestExecution
- *
- * deprecated Use class TextTestProgressListener and TextOutputter instead.
- */
- class CPPUNIT_API testshlTestResult : public TestResult
-
-/* ,public TestResultCollector*/
- {
- GetOpt & m_aOptions;
- // OptionHelper m_aOptionHelper;
- TestResultCollector m_aResulter;
-
- public:
- testshlTestResult(GetOpt & _aOptions);
- virtual ~testshlTestResult();
-
- // virtual void addFailure( const TestFailure &failure );
- // virtual void startTest( Test *test );
- // virtual void endTest( Test *test );
-
- virtual void print( Outputter &stream );
-
- protected:
- virtual void printHeader( Outputter &stream );
-
- void printLines(Outputter &stream, HashMap & _aJobList);
- void printFailedTests(Outputter &stream, TestPtrList &aFailedTests);
- void printTestLines(Outputter &stream, TestPtrList &aFailedTests);
- void printUnknownLines(Outputter &stream, HashMap & _aJobList);
-
- virtual void printTestLine( Outputter &stream, Test* pTest, std::string const& _sNodeName, std::string const& _sInfo);
- virtual void printFailureLine( Outputter &stream, TestFailure* pFailure, std::string const& _sNodeName );
- virtual void printUnknownLine( Outputter &stream, std::string const& _sTestName);
- };
-
-/** insertion operator for easy output */
- Outputter &operator <<( Outputter &stream,
- testshlTestResult &result );
-
-} // namespace CppUnit
-
-#endif // CPPUNIT_testshlTESTRESULT_H
-
-
diff --git a/testshl2/inc/testshl/signaltest.h b/testshl2/inc/testshl/signaltest.h
deleted file mode 100644
index 6886d60be906..000000000000
--- a/testshl2/inc/testshl/signaltest.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef SIGNALTEST_H
-#define SIGNALTEST_H
-
-#include <string>
-#include "cppunit/Test.h"
-#include <testshl/autoregister/htestresult.h>
-
-namespace CppUnit
-{
-
-class CPPUNIT_API SignalTest : public Test
-{
-public:
-
- SignalTest( std::string const& Name );
-
- ~SignalTest();
-
- virtual void run(hTestResult pResult);
- virtual int countTestCases() const;
- std::string getName() const;
- std::string toString() const;
-
-private:
- SignalTest( const SignalTest &other );
- SignalTest &operator=( const SignalTest &other );
-
-private:
- const std::string m_sName;
-};
-
-} // namespace CppUnit
-
-
-#endif
diff --git a/testshl2/inc/testshl/simpleheader.hxx b/testshl2/inc/testshl/simpleheader.hxx
deleted file mode 100644
index c910a7bdcd0f..000000000000
--- a/testshl2/inc/testshl/simpleheader.hxx
+++ /dev/null
@@ -1,43 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef CPPUNIT_SIMPLEHEADER_HXX
-#define CPPUNIT_SIMPLEHEADER_HXX
-
-// This file contains only the cppunit header files, for simplification.
-
-#include <cppunit/TestFixture.h>
-#include <cppunit/TestCaller.h>
-#include <cppunit/TestSuite.h>
-#include <cppunit/TestAssert.h>
-#include <testshl/autoregister/registertestfunction.h>
-#include <cppunit/extensions/HelperMacros.h>
-#include <testshl/additionalfunc.hxx>
-#include <testshl/cmdlinebits.hxx>
-#include <testshl/checkboom.hxx>
-
-#endif
diff --git a/testshl2/inc/testshl/stringhelper.hxx b/testshl2/inc/testshl/stringhelper.hxx
deleted file mode 100644
index 4e30c2d2d447..000000000000
--- a/testshl2/inc/testshl/stringhelper.hxx
+++ /dev/null
@@ -1,39 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef STRINGHELPER_HXX
-#define STRINGHELPER_HXX
-
-#include <rtl/ustring.hxx>
-#include <rtl/string.hxx>
-
-inline void operator <<= (rtl::OString& _rAsciiString, const rtl::OUString& _rUnicodeString)
-{
- _rAsciiString = rtl::OUStringToOString(_rUnicodeString,RTL_TEXTENCODING_ASCII_US);
-}
-
-#endif
diff --git a/testshl2/inc/testshl/taghelper.hxx b/testshl2/inc/testshl/taghelper.hxx
deleted file mode 100644
index 1100256e6dee..000000000000
--- a/testshl2/inc/testshl/taghelper.hxx
+++ /dev/null
@@ -1,88 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef TAGHELPER_HXX
-#define TAGHELPER_HXX
-
-#include <map>
-#include <sal/types.h>
-#include <testshl/nocopy.hxx>
-#include <cppunit/tagvalues.hxx>
-
-/* Tags are a general mechanism of extensible data arrays for parameter
- * specification and property inquiry. In practice, tags are used in arrays,
- * or chain of arrays.
- *
- */
-
-typedef sal_IntPtr TagData;
-
-//# struct TagItem
-//# {
-//# Tag ti_Tag; /* identifies the type of data */
-//# TagData ti_Data; /* type-specific data */
-//# };
-
-/* constants for Tag.ti_Tag, control tag values */
-#define TAG_DONE (Tag(0L)) /* terminates array of TagItems. ti_Data unused */
-#define TAG_END (Tag(0L)) /* synonym for TAG_DONE */
-#define TAG_IGNORE (Tag(1L)) /* ignore this item, not end of array */
-#define TAG_MORE (Tag(2L)) /* ti_Data is pointer to another array of TagItems
- * note that this tag terminates the current array
- */
-#define TAG_SKIP (Tag(3L)) /* skip this and the next ti_Data items */
-
-/* differentiates user tags from control tags */
-#define TAG_USER (Tag(1L<<31))
-
-// -----------------------------------------------------------------------------
-class TagHelper /* : NOCOPY */
-{
- typedef std::map<Tag, TagData> TagItems;
- TagItems m_aTagItems;
-
-public:
- TagHelper(){}
- void insert(Tag _nTag, TagData _nData)
- {
- m_aTagItems[_nTag] = _nData;
- }
- // const TagItems& get() const { return m_aTagItems; }
-
- TagData GetTagData(Tag _aTagValue, TagData _aDefaultValue = 0 /* NULL */) const
- {
- TagItems::const_iterator it = m_aTagItems.find(_aTagValue);
- if (it != m_aTagItems.end())
- return (*it).second;
- else
- return _aDefaultValue;
- }
-};
-
-#endif
-
-
diff --git a/testshl2/inc/testshl/tresstatewrapper.h b/testshl2/inc/testshl/tresstatewrapper.h
deleted file mode 100644
index 0f6830451caf..000000000000
--- a/testshl2/inc/testshl/tresstatewrapper.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef TESTSTATEWRAPPER_H
-#define TESTSTATEWRAPPER_H
-
-#ifdef _RTL_TRES_H_
-#error "This is old code, please remove the include of rtl/tres.h"
-#endif
-
-#include <sal/types.h>
-#include "testshl/autoregister/registertestfunction.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-// typedef void* hTestResult;
-typedef hTestResult rtlTestResult;
-
-// -----------------------------------------------------------------------------
-void c_rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName);
-void c_rtl_tres_state_end(hTestResult _aResult, const sal_Char* _pName);
-
-// -----------------------------------------------------------------------------
-// the old test state function, which here convert all values for using with the
-// new testshl tool
-
-sal_Bool SAL_CALL c_rtl_tres_state(
- hTestResult pResult,
- sal_Bool bSuccess,
- char const * pTestMsg,
- char const * pFuncName);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/testshl2/inc/testshl/tresstatewrapper.hxx b/testshl2/inc/testshl/tresstatewrapper.hxx
deleted file mode 100644
index c90a5fe2535b..000000000000
--- a/testshl2/inc/testshl/tresstatewrapper.hxx
+++ /dev/null
@@ -1,57 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef teststatewrapper_hxx
-#define teststatewrapper_hxx
-
-#include <testshl/nocopy.hxx>
-#include <sal/types.h>
-
-#include <testshl/simpleheader.hxx>
-#include <cppunit/callbackfunc_fktptr.h>
-
-// This is a hack, because it's possible that the testshl directory doesn't exist.
-#ifdef LOAD_TRESSTATEWRAPPER_LOCAL
-#include "tresstatewrapper.h"
-#else
-#include <testshl/tresstatewrapper.h>
-#endif
-
-// -----------------------------------------------------------------------------
-// helper class to mark the start off old test code
-// the name is need in the test result generator
-class rtl_tres_state_start : NOCOPY
-{
- const sal_Char* m_pName;
- hTestResult m_aResult;
-public:
- rtl_tres_state_start(hTestResult _aResult, const sal_Char* _pName);
- ~rtl_tres_state_start();
-};
-
-#endif
-
diff --git a/testshl2/inc/testshl/versionhelper.hxx b/testshl2/inc/testshl/versionhelper.hxx
deleted file mode 100644
index efa28bef0bda..000000000000
--- a/testshl2/inc/testshl/versionhelper.hxx
+++ /dev/null
@@ -1,84 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef AUTOREGISTER_HXX
-#define AUTOREGISTER_HXX
-
-#include <stdio.h>
-#include <vector>
-#include <ostream>
-#include <iostream>
-
-#include <rtl/ustring.hxx>
-#include <rtl/string.hxx>
-
-#include "dynamicregister.hxx"
-
-// -----------------------------------------------------------------------------
-// ---------------------------------- Version ----------------------------------
-// -----------------------------------------------------------------------------
-// extern "C" const struct VersionInfo *GetVersionInfo();
-
-// this is a Hack, but at the moment, no change to handle this behaviour better.
-struct VersionInfo
-{
- const char* pTime;
- const char* pDate;
- const char* pUpd;
- const char* pMinor;
- const char* pBuild;
- const char* pInpath;
-};
-typedef const struct VersionInfo* (*FktGetVersionInfoPtr)();
-
-// -----------------------------------------------------------------------------
-class VersionHelper : public DynamicLibraryHelper
-{
- const VersionInfo *m_pInfo;
-
-public:
- VersionHelper(rtl::OUString const& _sDLLName, GetOpt & _aOptions);
-// void print(std::ostream& _aStream);
- void printall(FILE*);
-
- rtl::OString getTime() const;
- rtl::OString getDate() const;
- rtl::OString getUpd() const;
- rtl::OString getMinor() const;
- rtl::OString getBuild() const;
- rtl::OString getInpath() const;
-
- bool isOk() const;
-};
-
-/** insertion operator for easy output */
-// std::ostream &operator <<( std::ostream &stream,
-// VersionHelper &version );
-
-
-#endif
-
diff --git a/testshl2/inc/testshl/winstuff.hxx b/testshl2/inc/testshl/winstuff.hxx
deleted file mode 100644
index 830275883e0a..000000000000
--- a/testshl2/inc/testshl/winstuff.hxx
+++ /dev/null
@@ -1,40 +0,0 @@
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#ifndef WINSTUFF_HXX
-#define WINSTUFF_HXX
-
-#include <sal/types.h>
-
-// Isolated into own compilation unit, to avoid interference with
-// windows headers
-void WinDebugBreak();
-void WinSleep( sal_uInt32 sec );
-sal_uInt32 WinGetCurrentProcessId();
-void WinTerminateApp( sal_uInt32 dwPID, sal_uInt32 dwTimeout );
-
-#endif