summaryrefslogtreecommitdiffstats
path: root/sal/test/bootstrap.pl
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2004-12-23 10:35:48 +0000
committerVladimir Glazounov <vg@openoffice.org>2004-12-23 10:35:48 +0000
commitf56498300942650a8e2d7898cb4953ad49658b9e (patch)
tree635ef0bf9d3cbbe73876b29983ff8d1ecb647e45 /sal/test/bootstrap.pl
parentINTEGRATION: CWS mhu05 (1.31.42); FILE MERGED (diff)
downloadcore-f56498300942650a8e2d7898cb4953ad49658b9e.tar.gz
core-f56498300942650a8e2d7898cb4953ad49658b9e.zip
INTEGRATION: CWS mhu05 (1.5.346); FILE MERGED
2004/12/06 08:49:49 kr 1.5.346.2: #i27888# fixed minor glitch: test reports fault despite there is none 2004/11/25 18:39:21 mhu 1.5.346.1: #i37371# Fixed unit test script mistakes.
Diffstat (limited to 'sal/test/bootstrap.pl')
-rwxr-xr-xsal/test/bootstrap.pl26
1 files changed, 12 insertions, 14 deletions
diff --git a/sal/test/bootstrap.pl b/sal/test/bootstrap.pl
index 9292ec015064..d34ab007b773 100755
--- a/sal/test/bootstrap.pl
+++ b/sal/test/bootstrap.pl
@@ -5,9 +5,9 @@ eval 'exec perl -wS $0 ${1+"$@"}'
#
# $RCSfile: bootstrap.pl,v $
#
-# $Revision: 1.5 $
+# $Revision: 1.6 $
#
-# last change: $Author: kr $ $Date: 2002-01-07 16:16:14 $
+# last change: $Author: vg $ $Date: 2004-12-23 11:35:48 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -66,15 +66,24 @@ eval 'exec perl -wS $0 ${1+"$@"}'
my $rc;
my $state = 1;
-my $comment;
+my $comment = "";
$ENV{MYBOOTSTRAPTESTVALUE}=0;
+
$rc = system "./testbootstrap", 1, "-env:MYBOOTSTRAPTESTVALUE=1";
if (!$rc) {
$comment = $comment . "commandline over environment test not passed\n";
$state = 0;
}
+$rc = system "./testbootstrap", "0", "-env:INIFILENAME=";
+if (!$rc) {
+ $comment = $comment . "exe custom ini test not passed\n";
+ $state = 0;
+}
+
+delete $ENV{MYBOOTSTRAPTESTVALUE};
+
$rc = system "./testbootstrap.bin", "file";
if (!$rc) {
$comment = $comment . "extensions cut test not passed with .bin\n";
@@ -110,15 +119,8 @@ if (!$rc) {
$state = 0;
}
-$rc = system "./testbootstrap", "0", "-env:INIFILENAME=";
-if (!$rc) {
- $comment = $comment . "exe custom ini test not passed\n";
- $state = 0;
-}
-
if ($ENV{GUI} eq "WNT") {
$comment = $comment . '$SYSUSERHOME not testable under windows' . "\n";
- $state = 0;
}
else {
$rc = system "./testbootstrap", "file://$ENV{HOME}", '-env:MYBOOTSTRAPTESTVALUE=$SYSUSERHOME';
@@ -130,7 +132,6 @@ else {
if ($ENV{GUI} eq "WNT") {
$comment = $comment . '$SYSUSERCONFIG' . " not testable under windows\n";
- $state = 0;
}
else {
$rc = system "./testbootstrap", "file://$ENV{HOME}", '-env:MYBOOTSTRAPTESTVALUE=$SYSUSERCONFIG';
@@ -142,7 +143,6 @@ else {
if ($ENV{GUI} eq "WNT") {
$comment = $comment . '$SYSBINDIR' . " not testable under windows\n";
- $state = 0;
}
else {
$rc = system "./testbootstrap", "file://$ENV{PWD}", '-env:MYBOOTSTRAPTESTVALUE=$SYSBINDIR';
@@ -174,8 +174,6 @@ if (!$rc) {
$state = 0;
}
-delete $ENV{MYBOOTSTRAPTESTVALUE};
-
$rc = system "./testbootstrap", "defaultvalue", "-env:INIFILENAME=", "-env:Default=defaultvalue", "-env:USEDEFAULT=1";
if (!$rc) {