From ooo-commits-return-7990-apmail-incubator-ooo-commits-archive=incubator.apache.org@incubator.apache.org Mon Apr 2 03:48:56 2012 Return-Path: X-Original-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5CA939C8A for ; Mon, 2 Apr 2012 03:48:56 +0000 (UTC) Received: (qmail 37077 invoked by uid 500); 2 Apr 2012 03:48:56 -0000 Delivered-To: apmail-incubator-ooo-commits-archive@incubator.apache.org Received: (qmail 37007 invoked by uid 500); 2 Apr 2012 03:48:54 -0000 Mailing-List: contact ooo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-commits@incubator.apache.org Received: (qmail 36982 invoked by uid 99); 2 Apr 2012 03:48:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 03:48:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Apr 2012 03:48:46 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 841FC238899C; Mon, 2 Apr 2012 03:48:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1308234 - in /incubator/ooo/ooo-site/trunk/content/porting/freebsd: ./ images/ qa/ Date: Mon, 02 Apr 2012 03:48:24 -0000 To: ooo-commits@incubator.apache.org From: pfg@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120402034824.841FC238899C@eris.apache.org> Author: pfg Date: Mon Apr 2 03:48:23 2012 New Revision: 1308234 URL: http://svn.apache.org/viewvc?rev=1308234&view=rev Log: Some minor reorganization of the FreeBSD porting site. - Add new set of images contributed by Drew Jensen (THANKS!). - Move QA to it's own directory. Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/ incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd-fancy.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd-aoo-btn-rb.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-1a.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-300x100.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo.png (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl (with props) incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/qa_ooo115_fbsd.diff incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc1 incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc2 Removed: incubator/ooo/ooo-site/trunk/content/porting/freebsd/QA.html incubator/ooo/ooo-site/trunk/content/porting/freebsd/ooocheckout.pl incubator/ooo/ooo-site/trunk/content/porting/freebsd/oooqa11.sh incubator/ooo/ooo-site/trunk/content/porting/freebsd/oooqa20.sh incubator/ooo/ooo-site/trunk/content/porting/freebsd/oooupdate.pl incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa_ooo115_fbsd.diff incubator/ooo/ooo-site/trunk/content/porting/freebsd/testtoolrc1 incubator/ooo/ooo-site/trunk/content/porting/freebsd/testtoolrc2 Modified: incubator/ooo/ooo-site/trunk/content/porting/freebsd/index.html Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd-fancy.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd-fancy.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd-fancy.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/aoo-freebsd.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd-aoo-btn-rb.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd-aoo-btn-rb.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd-aoo-btn-rb.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-1a.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-1a.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-1a.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-300x100.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-300x100.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo-300x100.png ------------------------------------------------------------------------------ svn:mime-type = image/png Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo.png URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo.png?rev=1308234&view=auto ============================================================================== Binary file - no diff available. Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/images/freebsd_logo.png ------------------------------------------------------------------------------ svn:mime-type = image/png Modified: incubator/ooo/ooo-site/trunk/content/porting/freebsd/index.html URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/index.html?rev=1308234&r1=1308233&r2=1308234&view=diff ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/index.html (original) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/index.html Mon Apr 2 03:48:23 2012 @@ -5,8 +5,10 @@ -

Apache OpenOffice FreeBSD porting status page

-
+

Apache OpenOffice FreeBSD porting status page

+
+

+
by OpenOffice porting team , NAKATA, Maho , and Jackson Low @@ -18,7 +20,7 @@ by O
  • Build timings (benchmark test)
  • How to use SDK
  • Implementation test -
  • Quality Assurance +
  • Quality Assurance
  • About dictionary
  • Release process
  • Todo @@ -33,7 +35,7 @@ by O

    News

    2012/Feb/29: The FreeBSD port has been merged in the Apache SVN repository. The Apache OpenOffice blog has a new entry from Maho@. -

    Older OpenOffice.org porting news can be found here. +

    Older OpenOffice.org porting news can be found here.

    Top of page


    @@ -43,12 +45,12 @@ by O -

    Obtaining older packages, language packs, and build logs

    +

    Obtaining older packages, language packs, and build logs (DEPRECATED)

    • Current amd64 packages, language packs, and build logs
    • Current i386 packages, language packs, and build logs Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html Mon Apr 2 03:48:23 2012 @@ -0,0 +1,228 @@ + + + +FreeBSD OpenOffice.org porting status page : Quality Assurance and known issues + + +

      FreeBSD OpenOffice.org porting status page : Quality Assurance

      + +

      $Id: QA.html,v 1.21 2005/12/01 07:19:41 maho Exp $

      +by OpenOffice.org porting team +and NAKATA, Maho + +

      Quality Assurance

      +Once porting has been done, it means that the OOo source is buildable. The next step should be to perform Quality Assurance of the FreeBSD ported OpenOffice.org. This consists of several parts. Automated QA testing is also available. Other testcases are always needed. + +

      Automated QA

      +Basic functionality of OpenOffice.org can be tested via automated GUI tools. The testtool connects OOo via TCP/IP, and does partial testing. Before proceeding, you should read +Automated GUI Testing, +Introduction to Automated GUI Testing, and OpenOffice.org TestTool CookBook. + +
      +

      Testing OpenOffice.org 2.0

      +
        +
      • Install OpenOffice.org 2.0 via port: +
        +# cd /usr/ports/editors/openoffice.org-2.0
        +# make install
        +
        +
      • Prepare some directory (this affects .testtoolrc) +
        +% mkdir /work/ooo/2.0
        +
        +
      • Checkout QA test scripts +
        +% cd /work/ooo/2.0
        +% cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co qa/qatesttool
        +
        +CAUTION: you must checkout appropreate qa/qatesttool otherwise meaningless. Please refer qa/qatesttool cvs tags and branches. If you want to test OOo 2.0.0, check out +by: +
        +% cd /work/ooo/2.0
        +% cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co -r OOO200final qa/qatesttool
        +
        +2.0.1 (currently in the works until it will out) +
        +% cd /work/ooo/2.0
        +% cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co -r OOO201 qa/qatesttool
        +
        + +
      • Write .testtoolrc
        +Just copying and pasting this section into ~/.testtollrc is enough. +You can change some directories/profile/hardcoded names, etc., if you'd like.
        +The following part is the most important: +
        +[OooProgramDir]
        +Current=/usr/local/openoffice.org2.0/
        +All=/usr/local/openoffice.org2.0/
        +
        +You must change to another directory if you installed the newer port +(RC2 or 2.0 or 2.0.1 or developer version). you can check by typing: +
        +%cd /usr/ports/editors/openoffice.org-2.0-devel
        +% make -V INSTALLATION_BASEDIR
        +openoffice.org2.0m140
        +
        +for example +and you can download from here testtoolrc2. +please rename to .testtoolrc and change appropreately before using it. + +
      • Install bash via ports +
        +% su
        +Password:
        +# cd /usr/ports/shells/bash
        +# make install clean
        +
        + +
      • Apply following patch to qa/qatesttool/script/unix/OOoTestRun_unix.sh +(just setting sLocation, LD_LIBRARY_PATH and sTestTool appropriately) +
        +--- qa/qatesttool/script/unix/OOoTestRun_unix.sh        Thu Sep  8 17:51:36 2005
        ++++ qa/qatesttool/script/unix/OOoTestRun_unix.sh  Thu Oct 13 11:30:26 2005
        +@@ -43,11 +43,12 @@
        +
        + # set location of testscripts
        + # (the directory, where directory 'qatesttool' exists)
        +-sLocation=/testtool
        ++sLocation=/work/ooo/2.0/qa/
        +
        + # set location of TestTool
        + # (full path including executable 'testtool')
        +-sTestTool=/testtool/linux/testtool
        ++sTestTool=/usr/local/openoffice.org2.0.RC1/program/testtool.bin
        ++LD_LIBRARY_PATH=/usr/local/openoffice.org2.0.RC1/program; export LD_LIBRARY_PATH
        +
        + # set location of close-office file
        + # (see cvs)
        +
        +
        +
      • Run OOoTestRun_unix.sh +
        +% cd /work/ooo/2.0/
        +% bash qa/qatesttool/script/unix/OOoTestRun_unix.sh
        +
        + +
      • running VCL testtool in background +
        +if you are running testtool, you cannot do anything other than QA. you cannot run OOo, you need X terminal dedicated to QA, etc. to QA in background, I wrote a shell script. this does clean test, removing user settings and logs everytime. +oooqa20.sh. You should create a new user like oooqa20, then +
        +login: oooqa20
        +...
        +% bash oooqa20.sh
        +
        +Of course, I assume you are QA expert :) +
        +
      • Diagnostics: Logs are accumulated in qa/qatesttool/errorlog/maho/*res +
      +
      + +

      Testing OpenOffice.org 1.1.5

      +You need the GNU/Linux version of qatesttool to run. Currently, my FreeBSD build of +the testtool are broken and I don't know how to fix it... +
        +
      • Activate linux ABI via ports +
        +# cd /usr/ports/emulators/linux_base-rh-9/
        +# make install
        +
        +
      • Install OpenOffice.org 1.1.5 via port: (do not delete the work directory!!) +and copy the necessary library named libsts645fi.so to /usr/local/OpenOffice.org1.1.5/program/. +
        +# cd /usr/ports/editors/openoffice.org-1.1
        +# make install
        +# cp /usr/ports/editors/openoffice.org-1.1/work/OOo_1.1.5/solver/645/unxfbsd.pro/lib/libsts645fi.so /usr/local/OpenOffice.org1.1.5/program/
        +
        + +
      • Make sure OpenOffice.org 1.1.5 user installation has been completed +
        +% openoffice.org-1.1.5
        +...
        +
        +Do you have ~/.sversionrc and ~/OpenOffice.org1.1.5? +
        +% ls ~/.sversionrc
        +/home/maho/.sversionrc
        +% ls ~/OpenOffice.org1.1.5/
        +LICENSE                         setup@
        +LICENSE.html                    setup.log
        +README                          share/
        +README.html                     soffice@
        +THIRDPARTYLICENSEREADME.html    spadmin@
        +instdb.ins                      user/
        +program/
        +
        +If so, then you're okay. + +
      • Prepare the qa directory +
        +% mkdir /work/ooo/1.1.5
        +
        + +
      • Download the testtool (linux version) +
        +% cd /work/ooo/
        +% fetch http://www.openoffice.org/qa/qatesttool/11beta/tt_645m5_linux.tar.gz
        +% tar xvfz tt_645m5_linux.tar.gz
        +
        + +
      • Checkout QA test scripts for 1.1.5 (tag is ooo115) +
        +% cd /work/ooo/1.1.5
        +% cvs -d:pserver:anoncvs@anoncvs.services.openoffice.org:/cvs co -r ooo115 qa/qatesttool
        +
        +for 1.1.4 and 1.1.3 please use branch (tag) ooo114, ooo113, respectively. +
      • Write ~/.testtoolrc (do not mix with 2.0s one) + you can also download from here testtoolrc1.
        +please rename to .testtoolrc and change appropreately before using it. + +
      • Apply qa_ooo115_fbsd.diff this patch to qa/qatesttool + +
      • Run OOoTestRun_unix.sh +
        +% cd /work/ooo/1.1.5
        +% bash qa/qatesttool/script/unix/OOoTestRun_unix.sh
        +
        + +
      • running VCL testtool in background +
        +if you are running testtool, you cannot do anything other than QA. you cannot run OOo, you need X terminal dedicated to QA, etc. to QA in background, I wrote a shell script. this does clean test, removing user settings and logs everytime. +oooqa11.sh. You should create a new user like oooqa11, then +
        +login: oooqa11
        +...
        +% bash oooqa11.sh
        +
        +Of course, I assume you are QA expert :) +
        + +
      • Diagnostics: +Logs are accumulated at qa/qatesttool/errorlog/maho/*res +
      + +
      +
        +Some pitfalls +
      • [OooProgramDir] +
        +If you install different version of OOo, you must change this. +
        +
      • [Communication] +
        +if you want to run QA 1.1.5 and 2.0 at the same time, you must change the port number, and port numbers +are arbitrary, but never be the same. +
        +
      +
      +
      +Links + +
      + + Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/index.html ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl Mon Apr 2 03:48:23 2012 @@ -0,0 +1,158 @@ +#!/usr/bin/perl +# Copyright 2007 Nakata Maho +# automatically checks out some milestones + +use File::chdir; #ports/devel/p5-File-chdir +use LWP::Simple; #ports/www/p5-LWP-Authen-Wsse +use XML::RSS; #ports/textproc/p5-XML-RSS +use LWP::UserAgent; #ports/??? + +$eis_url = 'http://eis.services.openoffice.org/EIS2/cws.rss.CWSAnnounceNewsFeed/mws'; +$ooo_codeline="680"; +$ooo_checkoutdir="/work/tmp/ooocheckout"; +$ooo_checkoutlog="/work/tmp/ooocheckoutlog"; +$ooo_sourcedir="/home/ftp/pub/OpenOffice.org/sources/"; +$ooo_cvs_server="-z3 -d:pserver:anoncvs\@anoncvs.services.openoffice.org:/cvs"; +$ooo_sourcesite="build.good-day.net"; +$ooo_sourcedir="/pub/OpenOffice.org/sources/"; +$ooo_tag=""; +$ooo_alias=""; +$infinite_mode=1; +$|=1; +$ooo_alreadycheckedout=0; + +sub parse_option { + while ($_ = shift) { + if (substr($_, 0, 1) eq '-') { + if ($_ eq '-help') { + print "ooocheckout [-tag tag]\n"; + exit; + } elsif ($_ eq '-tag') { + $ooo_tag = shift; + $infinite_mode=0; + } else { + die "Invalid option: \"$_\"\n"; + } + } + } +} + +##main +parse_option(@ARGV); +while (1) { + +if(open(CHECKOUTLOG,"<$ooo_checkoutlog")) +{ + +if ( $ooo_tag eq '' || $infinite_mode) { +######################## +# determine newest tag # +######################## +$data_from_web = get($eis_url); +$rss = new XML::RSS; +$rss->parse($data_from_web); + +$item=@{$rss->{'items'}}[0]; +split (' ',$item->{'title'}); +$ooo_tag=@_[1]; +print "Current newst tag is $ooo_tag\n"; +} else { +print "You specified tag : $ooo_tag\n"; +} + +while() { + if(/$ooo_tag/o) { + $ooo_alreadycheckedout=1; + } else { + $ooo_alreadycheckedout=0; + } +} +close(CHECKOUTLOG); +} + +$ooo_archive_name="OOo_" . "$ooo_tag" . "_source.tar.bz2" ; +$ooo_archive_name_md5="OOo_" . "$ooo_tag" . "_source.tar.bz2.md5" ; +$ENV{'LANG'}="C"; +$ENV{'LC_ALL'}="C"; + +######################## +# checkout source code # +######################## +print "Checked out source code tar ball will be : $ooo_archive_name\n"; +my $ua = LWP::UserAgent->new; +$ua->timeout(10); +$url="http://" . "$ooo_sourcesite" . "$ooo_sourcedir". "$ooo_archive_name"; +if ((!head($url) || !$infinite_mode) && !$ooo_alreadycheckedout ) { +if(!head($url)) +{ + print "OOo source doesn't exist on $ooo_sourcesite !\n"; +} +if($infinite_mode) +{ + print "Infinte mode\n"; +} +if($ooo_alreadycheckedout) +{ + print "$ooo_tag has already been checked out\n"; +} + +print "OOo checkout start!\n"; +system("date\n"); +system("mkdir -p $ooo_checkoutdir\n"); +system("rm -rf $ooo_checkoutdir/$ooo_tag\n"); +system("mkdir -p $ooo_checkoutdir/$ooo_tag\n"); + +$CWD="$ooo_checkoutdir/$ooo_tag"; +$ooo_alias="OpenOffice2"; + +if ($ooo_tag=~/SRC680/o) +{ +$ooo_alias="OpenOffice2"; +} + +if ($ooo_tag=~/SRX645/o) +{ +$ooo_alias="OpenOffice"; +} + +system("cvs $ooo_cvs_server checkout -r $ooo_tag $ooo_alias \n"); +system ("cd .. ; tar cvfj $ooo_archive_name $ooo_tag \n"); +system ("cd .. ; md5 $ooo_archive_name > $ooo_archive_name_md5 \n"); + +print "OOo checkout done!\n"; +system("date\n"); +###################### +# upload source code # +###################### +print "scp'ing to master site...\n"; +system ("scp ../$ooo_archive_name $ooo_sourcesite" . ":/home/ftp" . "$ooo_sourcedir\n"); +system ("scp ../$ooo_archive_name_md5 $ooo_sourcesite" . ":/home/ftp" . "$ooo_sourcedir\n"); +open(CHECKOUTLOG,">>$ooo_checkoutlog") || die "cannot open $ooo_checkoutlog\n"; +print CHECKOUTLOG "$ooo_tag\n"; +close(CHECKOUTLOG); +print "scp done\n"; +$ooo_alreadycheckedout=0; +} else { + +if(head($url)) +{ + print "Sleep one hour : OOo source had already been checked out $ooo_sourcesite !\n"; +} + +if($ooo_alreadycheckedout) +{ + print "Sleep one hour : $ooo_tag has already been checked out\n"; +} +system("date\n"); +sleep 3600; +} + +if (!$infinite_mode) { +exit; +} + +} + + + + Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/ooocheckout.pl ------------------------------------------------------------------------------ svn:executable = * Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh Mon Apr 2 03:48:23 2012 @@ -0,0 +1,27 @@ +Xvfb :1002 -screen 0 1024x768x24 -fbdir /work/tmp/oooqa11 & +sleep 5 +DISPLAY=localhost:1002; export DISPLAY +gnome-session & +sleep 30 +cd /work/ooo/1.1.5/ +rm -rf *.core +rm -rf ~/.sversionrc ~/OpenOffice.org1.1.5/ qa/qatesttool/errorlog/maho* +#create response file +TMPBASE=`basename $0` +TMPFILE=`mktemp /tmp/${TMPBASE}.XXXXXX` +cat << EOF >> ${TMPFILE} +[ENVIRONMENT] +INSTALLATIONMODE=INSTALL_WORKSTATION +INSTALLATIONTYPE=WORKSTATION +DESTINATIONPATH=~/OpenOffice.org1.1.5 +OUTERPATH= +LOGFILE=install.log +LANGUAGELIST=01 + +[JAVA] +JavaSupport=preinstalled_or_none + +EOF +/usr/local/bin/openoffice.org-1.1.5-setup -v -nogui -r:${TMPFILE} +bash qa/qatesttool/script/unix/OOoTestRun_unix.sh + Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa11.sh ------------------------------------------------------------------------------ svn:executable = * Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh Mon Apr 2 03:48:23 2012 @@ -0,0 +1,15 @@ +Xvfb :1001 -screen 0 1024x768x24 -fbdir /work/tmp/oooqa20 & +sleep 5 +DISPLAY=localhost:1001; export DISPLAY +gnome-session & +sleep 30 +cd /work/ooo/2.0/ +rm *.core +#cp ~/.testtoolrc2 ~/.testtoolrc +rm -rf ~/.openoffice.org* +rm -rf qa/qatesttool/errorlog/maho +bash qa/qatesttool/script/unix/OOoTestRun_unix.sh + + + + Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooqa20.sh ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl Mon Apr 2 03:48:23 2012 @@ -0,0 +1,115 @@ +#!/usr/bin/perl + +use POSIX 'strftime'; + +#how to use.. +#perl ~/oooupdate.pl -tag OOG680_m3 +#1. checkout ooo ports +#2. update Makefile +#3. build test + +sub parse_option { + while ($_ = shift) { + if (substr($_, 0, 1) eq '-') { + if ($_ eq '-help') { + print "oooupdate [-tag tag]\n"; + exit; + } elsif ($_ eq '-tag') { + $ooo_tag = shift; + $infinite_mode=0; + } else { + die "Invalid option: \"$_\"\n"; + } + } + } +} + +##main + +parse_option(@ARGV); + +$ooo_hostname=`hostname -s`; +chop $ooo_hostname; +$ooo_workdir="/work/OOO/$ooo_hostname/$ooo_tag"; + +if (! -d $ooo_workdir ){ + system("sudo -u maho mkdir -p $ooo_workdir\n"); +} else{ + print "Work directory already exists!\n"; +} + +if ($ooo_tag=~/SRC680/o) { + $ooo_version="openoffice.org-2-devel"; +} +if ($ooo_tag=~/OO[A-Z]680/o) { + $ooo_version="openoffice.org-2-RC"; +} + + +split('_',$ooo_tag); +$ooo_tagprefix=@_[0]; +$ooo_milestone=@_[1]; +$ooo_milestone=~ s/m//; +$ooo_snapdate= strftime "%Y%m%d", localtime; + +print "Tagprefix : $ooo_tagprefix\n"; +print "Miilestone: $ooo_milestone\n"; +print "Snapdate : $ooo_snapdate\n"; + +chdir("$ooo_workdir"); +print "DIR $ooo_workdir\n"; +print "Checkout ports tree $ooo_version\n"; +system("sudo -u maho cvs -d maho\@pcvs.freebsd.org:/home/pcvs co ports/editors/$ooo_version"); +print "checkout done\n"; + +print ("Update Makefile...\n"); +chdir("$ooo_workdir/ports/editors/$ooo_version"); +$makefile_input="Makefile"; +open (MAKEFILEIN,"<$makefile_input") || die "Can't open file $makefile_input\n"; + +$pattern1 = "MILESTONE"; +$pattern2 = "SNAPDATE"; +$pattern3 = "OOOTAG"; + + +$lines=0; +while() +{ + if(/^$pattern1/o) { + $tmp[$lines]="MILESTONE?= $ooo_milestone\n"; + } elsif (/^$pattern2/o) { + $tmp[$lines]="SNAPDATE= $ooo_snapdate\n"; + } elsif (/^$pattern3/o) { + $tmp[$lines]="OOOTAG?= $ooo_tagprefix"."_m\${MILESTONE}\n"; + } else { + $tmp[$lines]=$_; + } + $lines++; +} + +close(MAKEFILEIN); + +$makefile_output="Makefile"; +open (MAKEFILEOUT,">$makefile_output") || die "Can't open file $makefile_output\n"; +for($i=0;$i<$lines;$i++) +{ + print MAKEFILEOUT $tmp[$i]; +} +close(MAKEFILEOUT); + +print "Diff to previous\n"; +system("sudo -u maho cvs -d maho\@pcvs.freebsd.org:/home/pcvs diff -u"); + +print "Making new md5 and sha256\n"; +system("make -DWITH_GPC makesum\n"); + +print "Build start!\n"; +#system("make NUMOFPROCESSES=4 LOCALIZED_LANG=ja install deinstall >log.ja 2>&1\n"); +system("/usr/bin/time -h sudo -u maho make NUMOFPROCESSES=4 >log.en 2>&1\n"); + +print "Install start!\n"; +system("/usr/bin/time -h make NUMOFPROCESSES=4 deinstall package >> log.en 2>&1\n"); + +print "Deinstall\n"; +system("/usr/bin/time -h make NUMOFPROCESSES=4 deinstall >> log.en 2>&1\n"); + Propchange: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/oooupdate.pl ------------------------------------------------------------------------------ svn:eol-style = native Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/qa_ooo115_fbsd.diff URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/qa_ooo115_fbsd.diff?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/qa_ooo115_fbsd.diff (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/qa_ooo115_fbsd.diff Mon Apr 2 03:48:23 2012 @@ -0,0 +1,84 @@ +Index: qa/qatesttool/global/system/inc/sysinfo.inc +=================================================================== +RCS file: /cvs/qa/qatesttool/global/system/inc/sysinfo.inc,v +retrieving revision 1.2.2.1 +diff -u -r1.2.2.1 sysinfo.inc +--- qa/qatesttool/global/system/inc/sysinfo.inc 27 Apr 2004 11:11:37 -0000 1.2.2.1 ++++ qa/qatesttool/global/system/inc/sysinfo.inc 13 Oct 2005 06:03:28 -0000 +@@ -96,6 +96,7 @@ + Global Const SYS_AIX = 15 + Global Const SYS_IRI = 16 + Global Const SYS_HP = 17 ++Global Const SYS_FBSD = 18 + + Global PlatFormGroup(MAX_PLATFORM) as String + Global PlatFormName(MAX_PLATFORM) as String +@@ -120,6 +121,7 @@ + '///+AIXaixunx + '///+Irixiriunx + '///+HP UNIXhpunx ++'///+FreeBSDfbsdunx + '///+ + PlatFormName(SYS_00) = "Unknown" : PlatFormExt(SYS_00) = "a00" + PlatFormName(SYS_W95) = "Win95" : PlatFormExt(SYS_W95) = "w95" +@@ -137,6 +139,7 @@ + PlatFormName(SYS_AIX) = "AIX" : PlatFormExt(SYS_AIX) = "aix" + PlatFormName(SYS_IRI) = "IRIX" : PlatFormExt(SYS_IRI) = "iri" + PlatFormName(SYS_HP) = "HP UNIX" : PlatFormExt(SYS_Hp) = "hp" ++ PlatFormName(SYS_FBSD) = "FreeBSD" : PlatFormExt(SYS_FBSD) = "fbsd" + + PlatFormGroup(SYS_00) = "a00" + PlatFormGroup(SYS_W95) = "w95" +@@ -154,6 +157,7 @@ + PlatFormGroup(SYS_AIX) = "unx" + PlatFormGroup(SYS_IRI) = "unx" + PlatFormGroup(SYS_HP) = "unx" ++ PlatFormGroup(SYS_FBSD) = "unx" + end sub + + '------------------------------------------------------------------------- +@@ -217,6 +221,7 @@ + '///+AIX04 + '///+Irix06 + '///+HP UNIX07 ++'///+FreeBSD08 + '///+ + '///Get the path to testtool.ini/.testtoolrc + if GUI = 4 then +@@ -295,6 +300,7 @@ + case 04 : gSystemnummer = SYS_AIX + case 06 : gSystemnummer = SYS_IRI + case 07 : gSystemnummer = SYS_HP ++ case 08 : gSystemnummer = SYS_FBSD + case else: Print "Unknown OS ("+GUI+"/"+iGuiVersion+") please insert in sysinfo.inc::GetToolPlatform. TestTool will try to use the same environment as Solaris SPARC uses." + gSystemnummer = SYS_SOL + end select +@@ -354,6 +360,7 @@ + case "AIX" : GUI = 15 + case "IRI" : GUI = 16 + case "HP" : GUI = 17 ++ case "FBSD" : GUI = 18 + case else : print "Unknown operating system : '" + GuiString + "'. The should be canceled." + exit sub + end select +Index: qa/qatesttool/script/unix/OOoTestRun_unix.sh +=================================================================== +RCS file: /cvs/qa/qatesttool/script/unix/OOoTestRun_unix.sh,v +retrieving revision 1.1 +diff -u -r1.1 OOoTestRun_unix.sh +--- qa/qatesttool/script/unix/OOoTestRun_unix.sh 9 Sep 2003 17:29:19 -0000 1.1 ++++ qa/qatesttool/script/unix/OOoTestRun_unix.sh 13 Oct 2005 06:03:29 -0000 +@@ -68,11 +68,11 @@ + + # set location of testscripts + # (the directory, where directory 'qatesttool' exists) +-sLocation=/testtool ++sLocation=/work/ooo/1.1.5/qa/ + + # set location of TestTool + # (full path including executable 'testtool') +-sTestTool=/testtool/linux/testtool ++sTestTool=/work/ooo/qatesttool/linux/testtool + + # set location of close-office file + # (see cvs) Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc1 URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc1?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc1 (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc1 Mon Apr 2 03:48:23 2012 @@ -0,0 +1,53 @@ +[Misc] +ServerTimeout=4500 +StopOnSyntaxError=0 +AutoReload=0 +AutoSave=0 +CurrentProfile=_profile_maho +ScriptFontName=Courier +ScriptFontStyle=normal +ScriptFontSize=12 + +[Path] +BaseDir=/work/ooo/1.1.5/qa/qatesttool +LogBaseDir=/work/ooo/1.1.5/qa/qatesttool/errorlog/maho +HIDDir=/work/ooo/1.1.5/qa/qatesttool/global/hid +*.bas=/work/ooo/1.1.5/qa/qatesttool/base/update +LastFilterName=Source files (*.BAS) + +[WinGeom] +WinParams=211,48,1042,894;1;0,0,0,0; + +[OooProgramDir] +Current=/usr/local/openoffice.org1.1.5/ +All=/usr/local/openoffice.org1.1.5/ + +[Communication] +Host=localhost +TTPort=12479 +UnoPort=12480 + +[LRU] +MaxLRU=4 +[_profile_maho] +LogBaseDir=/work/ooo/1.1.5/qa/qatesttool/errorlog/maho +BaseDir=/work/ooo/1.1.5/qa/qatesttool +HIDDir=/work/ooo/1.1.5/qa/qatesttool/global/hid +AutoReload=1 +AutoSave=0 +StopOnSyntaxError=0 +*.bas=/work/ooo/1.1.5/qa/qatesttool/framework/first +LastFilterName=Result files (*.RES) +*.res=/work/ooo/1.1.5/qa/qatesttool/errorlog/maho + +[GUI Platform] +Current=08 + +[Crashreporter] +UseProxy=false +ProxyServer= +ProxyPort= +AllowContact=false +ReturnAddress= + + Added: incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc2 URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc2?rev=1308234&view=auto ============================================================================== --- incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc2 (added) +++ incubator/ooo/ooo-site/trunk/content/porting/freebsd/qa/testtoolrc2 Mon Apr 2 03:48:23 2012 @@ -0,0 +1,54 @@ +[Misc] +ServerTimeout=4500 +StopOnSyntaxError=0 +AutoReload=0 +AutoSave=0 +CurrentProfile=_profile_maho +ScriptFontName=Courier +ScriptFontStyle=normal +ScriptFontSize=12 + +[Path] +BaseDir=/work/ooo/2.0/qa/qatesttool +LogBaseDir=/work/ooo/2.0/qa/qatesttool/errorlog/maho +HIDDir=/work/ooo/2.0/qa/qatesttool/global/hid +*.bas=/work/ooo/2.0/qa/qatesttool/base/update +LastFilterName=Source files (*.BAS) + +[WinGeom] +WinParams=0,0,920,630;1;0,0,0,0; + +[OooProgramDir] +Current=/usr/local/openoffice.org1.9m134/ +All=/usr/local/openoffice.org1.9m134/ + +[Communication] +Host=localhost +TTPort=13479 +UnoPort=13480 + +[LRU] +MaxLRU=4 + +[_profile_maho] +LogBaseDir=/work/ooo/2.0/qa/qatesttool/errorlog/maho +BaseDir=/work/ooo/2.0/qa/qatesttool +HIDDir=/work/ooo/2.0/qa/qatesttool/global/hid +AutoReload=1 +AutoSave=0 +StopOnSyntaxError=0 +*.bas=/work/ooo/2.0/qa/qatesttool/framework/first +LastFilterName=Result files (*.RES) +*.res=/work/ooo/2.0/qa/qatesttool/errorlog/maho + +[GUI Platform] +Current=08 + +[Crashreporter] +UseProxy=false +ProxyServer= +ProxyPort= +AllowContact=false +ReturnAddress= + +