summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-10-24 15:10:45 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-10-24 15:10:45 +0000
commit6f6d0f69dbad77ac26204bc98c9aff590d0c32e9 (patch)
tree8416e147e06816861687b609ccfc5c9352294cd3
parent500c9960e0c5ecdaa49c91a2a2d8997aed7cd947 (diff)
INTEGRATION: CWS lo8 (1.1.2); FILE ADDED
2005/06/08 16:27:30 lo 1.1.2.1: restructuring of project and fix for #i44847#
-rw-r--r--xmerge/source/palmtests/bin/README6
-rwxr-xr-xxmerge/source/palmtests/bin/rd24
-rwxr-xr-xxmerge/source/palmtests/bin/spose108
3 files changed, 138 insertions, 0 deletions
diff --git a/xmerge/source/palmtests/bin/README b/xmerge/source/palmtests/bin/README
new file mode 100644
index 000000000000..36fbcc6e1298
--- /dev/null
+++ b/xmerge/source/palmtests/bin/README
@@ -0,0 +1,6 @@
+To run the spose script, you must set the following environmental variables:
+
+ POSE2_EXE = Directory and name of the POSE executable file.
+ POSE3_EXE = Directory and name of the POSE executable file.
+ POSE_PRC = Directory containing the PRC files to be loaded
+ into the emulator
diff --git a/xmerge/source/palmtests/bin/rd b/xmerge/source/palmtests/bin/rd
new file mode 100755
index 000000000000..db2dc56aee6b
--- /dev/null
+++ b/xmerge/source/palmtests/bin/rd
@@ -0,0 +1,24 @@
+#!/bin/ksh
+#
+# Directories commonly used by this script...
+#
+
+#export LBHOME=$ZPHOME/lib
+#export CVHOME=$ZPHOME/converters
+#export CVHOME=/export/home/test/qadir/qa-new/classes
+
+# Set up classpath to include needed ZenSync jars. Honor the users
+# CLASSPATH by leaving it first. This allows users to specify their
+# own versions of the jar files in their CLASSPATH if they wish to
+# override these defaults.
+#
+
+export CLASSPATH=$CLASSES_DIR/xerces.jar:$CLASSES_DIR/jmc.jar:$CLASSES_DIR/xmerge.jar:$CLASSES_DIR/minicalc.jar:$CLASSES_DIR/aportisdoc.jar:$CLASSES_DIR/wordsmith.jar
+
+echo "The classpath is $CLASSPATH"
+
+# Run the test driver, passing along args.
+#
+# java com.sun.star.comp.documentconversion.test.Driver $*
+java -cp $CLASSPATH org.openoffice.xmerge.test.Driver $*
+
diff --git a/xmerge/source/palmtests/bin/spose b/xmerge/source/palmtests/bin/spose
new file mode 100755
index 000000000000..29f6a9fe5218
--- /dev/null
+++ b/xmerge/source/palmtests/bin/spose
@@ -0,0 +1,108 @@
+#!/bin/perl
+#
+# spose - start pose
+#
+
+use Getopt::Std;
+
+# Location of needed files
+#
+$pose2_exe = $ENV{'POSE2_EXE'};
+$pose3_exe = $ENV{'POSE3_EXE'};
+$pose_prc = $ENV{'POSE_PRC'};
+
+
+if (getopts('23qmwo:r:d:v') != 1)
+{
+ &usage();
+}
+
+$apps_load = "";
+
+if ($opt_q)
+{
+ &add_app("$pose_prc/Quickword.PRC");
+}
+if ($opt_m)
+{
+ &add_app("$pose_prc/MiniCalc.prc");
+}
+if ($opt_w)
+{
+ &add_app("$pose_prc/WordSmith.PRC");
+}
+if ($opt_o)
+{
+ &add_app("$opt_o");
+}
+if ($opt_r)
+{
+ $run_prog .= "-run_app $opt_r";
+}
+if ($opt_d)
+{
+ $directory = $opt_d;
+ @files = `/bin/ls -1 $directory/*.pdb`;
+
+ for ($i=0; $i <= $#files; $i++)
+ {
+ $add_file = "$files[$i]";
+ chomp $add_file;
+ &add_app("$add_file");
+ }
+}
+
+if ($opt_3)
+{
+ $pose_exe = $pose3_exe;
+}
+else
+{
+ $pose_exe = $pose2_exe;
+}
+if ($pose_exe eq "")
+{
+ print "\nPose not found: Please set \n POSE2_EXE\n or POSE3_EXE\n";
+ exit 0;
+}
+if ($opt_v)
+{
+ print ("\n$pose_exe $apps_load $run_prog &\n\n");
+}
+else
+{
+ system ("$pose_exe $apps_load $run_prog &");
+}
+
+exit 0;
+
+sub usage
+{
+ print "\nUsage: getopt [ -m ] [ -q ] [ -w ] [ -o <PrcFile> ] [ -r <RunProg> ]\n";
+ print " -2 Runs pose version 3.2 [ current default ]\n";
+ print " -3 Runs pose version 3.3\n";
+ print " -d Load all PDB files in specified directory\n";
+ print " -m Load MiniCalc PRC file\n";
+ print " -q Load QuickWord PRC file\n";
+ print " -w Load WordSmith PRC file\n";
+ print " -o <PrcFile> Other PRC files to load\n";
+ print " -r <RunProg> Program to run on startup\n";
+ print " -v Display the command instead of running\n\n";
+ exit(-1);
+}
+
+sub add_app
+{
+ my $new_app = $_[0];
+
+ if ($apps_load ne "")
+ {
+ $apps_load .= ",";
+ }
+ else
+ {
+ $apps_load = "-load_apps ";
+ }
+
+ $apps_load .= "$new_app";
+}