db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Trivial Update of "RunningTheApacheDerbyTestSuiteOnPhoneMeAdvanced" by OleSolberg
Date Tue, 12 May 2009 13:28:03 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by OleSolberg:
http://wiki.apache.org/db-derby/RunningTheApacheDerbyTestSuiteOnPhoneMeAdvanced

------------------------------------------------------------------------------
  #format wiki
  #language en
  
+ [[Anchor(Main)]]
  = Running the Apache Derby test suite on phoneME Advanced =
  
  Since phoneME b96 (r17519) it is possible to run the Derby testsuite (....suites.All) on
the phoneME Advanced(aka cdc) virtual machine (cvm) for '''Linux X86''' without having to
locally modify the phoneME source or build script.
@@ -17, +18 @@

  The following describes how to build a variant of phoneME Advanced that is able to run the
Derby testsuite (....suites.All).
  
  == Download phoneME Advanced ==
- Create a directory to hold the PhoneME Advanced source:{{{
+ Create a directory to hold the phoneME Advanced source:{{{
    PHONE_ME_SRC=${SOME_WHERE}/phoneme-advanced # your choice...
    mkdir -p ${PHONE_ME_SRC}
    cd ${PHONE_ME_SRC} }}}
@@ -58, +59 @@

  Alternatively, if you want to build ''with'' {{{jsr169}}} included, add this:{{{
    JSR169=${SOME_WHERE}/jsr169 # Where you have downloaded JSR169...
    MK_WITH_JSR169="${MK_WITHOUT_JSR169} USE_JDBC=true JDBC_DIR=${JSR169}/jdbc_cdc1.0/cdcfoundation"}}}
- This assumes you have downloaded and built {{{jsr169}}} to ${JSR169}/. See A.1. for how
to prepare {{{jsr169.jar}}}.
+ This assumes you have downloaded and built {{{jsr169}}} to ${JSR169}/. See [#A1 A.1.] for
how to prepare {{{jsr169.jar}}}.
  In this case you do not need to use {{{"-Xbootclasspath/a:..../jsr169.jar"}}} when running
{{{cvm}}}.
  
  and then build ''with'' {{{jsr169}}} included in {{{cvm}}}:
@@ -79, +80 @@

  Show cvm info:{{{
    ${CVM} -version}}}
  
- Observe that to run Derby on phoneME Advanced / {{{cvm}}}, Derby must be built with Foundation
Profile 1.1. See A.2.
+ Observe that to run Derby on phoneME Advanced / {{{cvm}}}, Derby must be built with Foundation
Profile 1.1. See [#A2 A.2.]
  
  === Testing Derby on the build ===
  For initial testing of Derby on {{{cvm}}} do:
@@ -125, +126 @@

  
  
  -----
+ [[Anchor(A1)]]
  = A.1. - Building jsr169 =
  See http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedBuildingJDBCandRMI for
the general description.
  
@@ -165, +167 @@

    JDBCOp=jsr169
    ${JDK_HOME}/bin/jar cvf ${JDBCOp}.jar java/sql/*.class javax/sql/*.class}}}
  
- {{{${JDBCOp}.jar (${JSR169_CLASSES}/jsr169.jar)}}} can now be used to build PhoneME Advanced
''to include'' {{{jsr169}}}. See above.
+ {{{${JDBCOp}.jar (${JSR169_CLASSES}/jsr169.jar)}}} can now be used to build PhoneME Advanced
''to include'' {{{jsr169}}}. See [#Main above].
  
  Or, if you did not have jsr169.jar available from some other source, you will need to use
it running {{{cvm}}} with {{{"-Xbootclasspath/a:..../jsr169.jar"}}}.
  
  
  ----
+ [[Anchor(A2)]]
  = A.2. - Building Derby for jsr169 =
  
  Your {{{ant.properties}}} file must contain something like: {{{
@@ -182, +185 @@

  Follow 'Downloads' - http://java.sun.com/javame/downloads/index.jsp
  
  Click 'Download' of
+ "Foundation Profile 1.1 Reference Implementation (JSR 219) Foundation Profile RI with Security
Optional Package Documentation"
- "Foundation Profile 1.1 Reference Implementation (JSR 219)
- Foundation Profile RI with Security Optional Package
- Documentation"
  which (per 2008-12-29) brings you to
  
  https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=fp-1.1-fr-ri-oth-JPR@CDS-CDS_JCP
@@ -192, +193 @@

  Click 'Continue'.
  
  Select and download (to an empty directory e.g. {{{${HOME}/FP1.1)}}}:
- 'Foundation Profile RI'
+ 'Foundation Profile RI' 
  'fp-1_1-fr-ri.zip'
- 
+ {{{
  'cd ${HOME}/FP1.1'
- 'unzip fp-1_1-fr-ri.zip'
+ 'unzip fp-1_1-fr-ri.zip'}}}
  
  The file 'copyright.txt' and the directory {{{'Optimized_nosym/'}}} are extracted.
  The 'btclasses.zip' and'foundation.jar' file which must be used for
@@ -208, +209 @@

  
  
  
- Alternatively you can use "your own" {{{${CDC_HOME}/btclasses.zip}}} and {{{${CDC_HOME}/lib/foundation.jar}}}
from A.1.
+ Alternatively you can use "your own" {{{${CDC_HOME}/btclasses.zip}}} and {{{${CDC_HOME}/lib/foundation.jar}}}
from [#A1 A.1.]
- For {{{jdbc.jar}}} aka {{{jsr169.jar}}} you can use "your own" {{{${JDBCOp}.jar (${JSR169_CLASSES}/jsr169.jar)}}}
from A.1.
+ For {{{jdbc.jar}}} aka {{{jsr169.jar}}} you can use "your own" {{{${JDBCOp}.jar (${JSR169_CLASSES}/jsr169.jar)}}}
from [#A1 A.1.]
  
  -----
  = A.3. =
- I tested building and running on 
+ Building phoneME Advanced / {{{cvm}}} and testing Derby with the build has been done on
(at least) the following platforms: 
+ Building:
    Fedora release 7 (Moonshine) 32bits - Linux 2.6.23.15-80.fc7PAE #1 SMP Sun Feb 10 17:14:36
EST 2008 GNU/Linux
  and
-   Ubuntu Linux .... 32bits - Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009
GNU/Linux on xVM/VirtualBox on OpenSolaris.
+   Ubuntu Linux .... 32bits - Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009
GNU/Linux on xVM/VirtualBox on !OpenSolaris.
  
- and ran the test suite on
+ Running the Apache Derby test suite on
    * Fedora release 7 (Moonshine) 32bits - Linux 2.6.23.15-80.fc7PAE #1 SMP Sun Feb 10 17:14:36
EST 2008 GNU/Linux
    * Red Hat Enterprise Linux Server release 5.1 (Tikanga) 64bits - Linux 2.6.18-53.1.14.el5
#1 SMP Tue Feb 19 07:18:46 EST 2008 GNU/Linux
    * Ubuntu Linux .... 32bits - Linux 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007
GNU/Linux
-   * Ubuntu Linux .... 32bits - Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009
GNU/Linux on xVM/VirtualBox on OpenSolaris.
+   * Ubuntu Linux .... 32bits - Linux 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009
GNU/Linux on xVM/VirtualBox on !OpenSolaris.
  

Mime
View raw message