diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2007-12-06 16:17:22 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2007-12-06 16:17:22 +0000 |
commit | 207fc736841564c4f454a280f29978b211984992 (patch) | |
tree | 16d9ae52d314e29e2d08427622649d30a880d5de /smoketestoo_native | |
parent | 4f8547619bef0d83fa2cdcfb9117c7543f9904f8 (diff) |
INTEGRATION: CWS smoketest19 (1.26.6); FILE MERGED
2007/11/22 15:16:08 kz 1.26.6.2: fixes for cygwin
2007/11/21 18:24:39 kz 1.26.6.1: #i83822# Support for pkgformat installed
Diffstat (limited to 'smoketestoo_native')
-rwxr-xr-x | smoketestoo_native/smoketest.pl | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/smoketestoo_native/smoketest.pl b/smoketestoo_native/smoketest.pl index 112bfe2da4e7..95eac41a1749 100755 --- a/smoketestoo_native/smoketest.pl +++ b/smoketestoo_native/smoketest.pl @@ -7,9 +7,9 @@ eval 'exec perl -wS $0 ${1+"$@"}' # # $RCSfile: smoketest.pl,v $ # -# $Revision: 1.26 $ +# $Revision: 1.27 $ # -# last change: $Author: ihi $ $Date: 2007-08-17 13:41:16 $ +# last change: $Author: vg $ $Date: 2007-12-06 17:17:22 $ # # The Contents of this file are made available subject to # the terms of GNU Lesser General Public License Version 2.1. @@ -209,6 +209,9 @@ else { $PRODUCT="StarOffice"; } +if ($ENV{PKGFORMAT} eq "installed") { + $packpackage = $ENV{PKGFORMAT}; # take it for all environments +} $StandDir = $ENV{SOLARSRC} . $PathSeparator; $SHIP = defined $ENV{SHIPDRIVE} ? $ENV{SHIPDRIVE} . $PathSeparator : "shipdrive_not_set"; $PORDUCT = "$SHIP$ENV{INPATH}$PathSeparator$PRODUCT$PathSeparator$packpackage$PathSeparator"; @@ -257,7 +260,7 @@ if ( $ARGV[0] ) { ( $script_name = $0 ) =~ s/^.*\b(\w+)\.pl$/$1/; -$id_str = ' $Revision: 1.26 $ '; +$id_str = ' $Revision: 1.27 $ '; $id_str =~ /Revision:\s+(\S+)\s+\$/ ? ($script_rev = $1) : ($script_rev = "-"); @@ -489,7 +492,23 @@ sub doTest { sub doInstall { my ($installsetpath, $dest_installdir) = @_; my ($DirArray, $mask, $file, $Command, $optdir, $rpmdir, $system, $mach, $basedir, $output_ref, $olddir, $newdir); - if (($gui eq "WNT") or ($gui eq $cygwin)) { + if ($ENV{PKGFORMAT} eq "installed") { + createPath ($dest_installdir, $error_setup); + $Command = "$COPY_DIR \"$installsetpath\" \"$dest_installdir\""; + execute_Command ($Command, $error_setup, $show_Message, $command_withoutOutput); + @DirArray = (); + getSubDirsFullPath ($dest_installdir, \@DirArray); + if ($#DirArray == 0) { + $basedir = $DirArray[0] . $PathSeparator; + } + elsif ($#DirArray == -1) { + print_error ($error_setup, $show_Message); + } + else { + $basedir = $dest_installdir; + } + } + elsif (($gui eq "WNT") or ($gui eq $cygwin)) { $mask = "\\.msi\$"; getSubFiles ("$installsetpath", \@DirArray, $mask); if ($#DirArray == -1) { |