summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-19 12:13:13 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-19 12:13:13 +0000
commit5461627212a244fec2c6d8be1b04ed63b8984ece (patch)
tree009b236d3a7fbe95c8c5c87f196450ffa57f7087
parent91738998922724f68e7d7e354749656e61cd2f3c (diff)
INTEGRATION: CWS qadev5 (1.8.2); FILE MERGED
2003/04/17 12:12:59 lla 1.8.2.2: #108721# version if in verbose mode. 2003/04/15 13:22:03 lla 1.8.2.1: #108721# new parameter for better working with testshl2
-rw-r--r--testshl2/source/testshl.cxx19
1 files changed, 17 insertions, 2 deletions
diff --git a/testshl2/source/testshl.cxx b/testshl2/source/testshl.cxx
index ffa70690126b..4d5e79c7733e 100644
--- a/testshl2/source/testshl.cxx
+++ b/testshl2/source/testshl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: testshl.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: vg $ $Date: 2003-04-01 13:16:57 $
+ * last change: $Author: vg $ $Date: 2003-05-19 13:13:13 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -167,12 +167,14 @@ int _cdecl main( int argc, char* argv[] )
"-sf=s, absolute path and name to the signal file.",
//! new (helpful if at debug time)
"-dntsf, if given, do not touch signal file, also if one exist.",
+ "-rmsf, remove signalfile.",
"-jobonly=s, job control file, these jobs should only executed.",
"-jobfilter=s, use a filter for just some tests.",
"-onlyshowjobs, show only all jobs, do no tests.",
"-forward=s, this string will forwarded to the test libraries.",
"-projectid=s, this text is added to the date output line.",
"-buildid=s, this text is added to the date output line.",
+ "-waitforkey, wait until key pressed.",
"-verbose, be verbose.",
"-h:s, display help or help on option",
"-help:s, see -h",
@@ -180,6 +182,10 @@ int _cdecl main( int argc, char* argv[] )
};
GetOpt opt( argv, optionSet );
+ if ( opt.hasOpt("-verbose") )
+ {
+ fprintf(stderr, "testshl2 $Revision: 1.9 $\n");
+ }
// someone indicates that he needs help
if ( opt.hasOpt( "-h" ) || opt.hasOpt( "-help" ) )
@@ -236,6 +242,15 @@ int _cdecl main( int argc, char* argv[] )
// give the output
pResult->print(*pOutput.get());
+
+ // this is a debug extension, so you can read the output and after a key is pressed the program will end.
+ if (opt.hasOpt("-waitforkey"))
+ {
+ fprintf(stderr, "Press return key.");
+ fflush(stderr);
+ getchar();
+ }
+
return 0;
}