Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d95a69b9
Kaydet (Commit)
d95a69b9
authored
Ock 13, 2003
tarafından
Lars Langhans
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
signal file
üst
a7e44fbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
testshl.cxx
testshl2/source/testshl.cxx
+25
-7
No files found.
testshl2/source/testshl.cxx
Dosyayı görüntüle @
d95a69b9
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: testshl.cxx,v $
* $RCSfile: testshl.cxx,v $
*
*
* $Revision: 1.
1
$
* $Revision: 1.
2
$
*
*
* last change: $Author: lla $ $Date: 2003-01-
09 11:06:03
$
* last change: $Author: lla $ $Date: 2003-01-
13 09:48:44
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -102,6 +102,10 @@ using namespace std;
...
@@ -102,6 +102,10 @@ using namespace std;
#include "cppunit/result/testshlTestResult.h"
#include "cppunit/result/testshlTestResult.h"
#include "cppunit/result/emacsTestResult.hxx"
#include "cppunit/result/emacsTestResult.hxx"
// Prototype for signal handling
void
setSignalFilename
(
GetOpt
&
opt
);
// -----------------------------------------------------------------------------
Log
initLog
(
GetOpt
&
_aOptions
)
Log
initLog
(
GetOpt
&
_aOptions
)
{
{
...
@@ -141,7 +145,8 @@ int _cdecl main( int argc, char* argv[] )
...
@@ -141,7 +145,8 @@ int _cdecl main( int argc, char* argv[] )
"-logPath=s, destination path for logging"
,
"-logPath=s, destination path for logging"
,
"-noerrors, shows all tests, but not it's errors."
,
"-noerrors, shows all tests, but not it's errors."
,
"-onlyerrors, shows only the failed test functions"
,
"-onlyerrors, shows only the failed test functions"
,
"-tc=s@, name(s) of testcase(s) to generate"
,
/* "-tc=s@, name(s) of testcase(s) to generate", */
"-sf=s, absolute path and name to the signal file."
,
"-jobonly=s, job control file, these jobs should only executed."
,
"-jobonly=s, job control file, these jobs should only executed."
,
"-jobfilter=s, use a filter for just some tests."
,
"-jobfilter=s, use a filter for just some tests."
,
"-onlyshowjobs, show only all jobs, do no tests."
,
"-onlyshowjobs, show only all jobs, do no tests."
,
...
@@ -167,11 +172,22 @@ int _cdecl main( int argc, char* argv[] )
...
@@ -167,11 +172,22 @@ int _cdecl main( int argc, char* argv[] )
{
{
logPth
=
opt
.
getOpt
(
"-logPth"
);
logPth
=
opt
.
getOpt
(
"-logPth"
);
}
}
setSignalFilename
(
opt
);
bool
bLibrary
=
true
;
if
(
opt
.
getParams
().
empty
())
if
(
opt
.
getParams
().
empty
())
{
{
std
::
cerr
<<
"error: At least on library should given."
<<
std
::
endl
;
// no library is given, but if a jobonly list is given, we should generate UNKNOWN errors.
opt
.
showUsage
();
if
(
!
opt
.
hasOpt
(
"-jobonly"
))
exit
(
0
);
{
std
::
cerr
<<
"error: At least on library should given."
<<
std
::
endl
;
opt
.
showUsage
();
exit
(
0
);
}
else
{
bLibrary
=
false
;
}
}
}
/* show usage screen if too less parameters */
/* show usage screen if too less parameters */
...
@@ -186,7 +202,9 @@ int _cdecl main( int argc, char* argv[] )
...
@@ -186,7 +202,9 @@ int _cdecl main( int argc, char* argv[] )
//# CmdLineBits nCmdlinebitflags = createFlags( argc, argv );
//# CmdLineBits nCmdlinebitflags = createFlags( argc, argv );
//# rtl::OUString suLibraryName = rtl::OUString::createFromAscii(argv[1]);
//# rtl::OUString suLibraryName = rtl::OUString::createFromAscii(argv[1]);
rtl
::
OUString
suLibraryName
=
rtl
::
OStringToOUString
(
opt
.
getFirstParam
(),
RTL_TEXTENCODING_ASCII_US
);
rtl
::
OUString
suLibraryName
;
if
(
bLibrary
)
suLibraryName
=
rtl
::
OStringToOUString
(
opt
.
getFirstParam
(),
RTL_TEXTENCODING_ASCII_US
);
// Log aLog = initLog(opt);
// Log aLog = initLog(opt);
AutomaticRegisterHelper
aHelper
(
suLibraryName
,
opt
/*, &aJobs*/
);
AutomaticRegisterHelper
aHelper
(
suLibraryName
,
opt
/*, &aJobs*/
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment