|
1 The unit tests in this directory depend on a native launcher library |
|
2 (libInheritedChannel.so). This library is built by executing |
1 |
3 |
2 The unit tests in this directory depend on a native launcher library |
4 $ make test-image-jdk-jtreg-native |
3 (libLauncher.so). This native library is built off-line and the |
|
4 resulting libLauncher.so for each processor/OS combination is checked |
|
5 into the workspace. The reason for this is because the test environment |
|
6 may not have the required compilers/build environment. |
|
7 |
5 |
8 In order to rebuild libLauncher.so the following is required :- |
6 in the root directory of the OpenJDK clone. It will generate |
|
7 libInheritedChannel.so in two locations: |
9 |
8 |
10 1. Check-out each of the shared libraries (sccs edit) |
9 $ $JDK_ROOT/build/$PLATFORM/support/test/jdk/jtreg/native/lib/libInheritedChannel.so |
|
10 $ $JDK_ROOT/build/$PLATFORM/images/test/jdk/jtreg/native/libInheritedChannel.so |
11 |
11 |
12 2. Edit Launcher.c with the appropriate changes |
12 The test may then be run using jtreg for example as follows: |
13 |
13 |
14 3. Execute the make script (gnumake all) on each processor/OS so |
14 $ jtreg -s -w:/tmp -r:/tmp -va -dir:$JDK_ROOT/test/jdk \ |
15 that the appropriate lib/<platform>/libLauncher.so is built. |
15 -nativepath:$JDK_ROOT/build/$PLATFORM/support/test/jdk/jtreg/native/lib \ |
16 |
16 java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java |
17 4. Test the changes |
|
18 |
|
19 5. Check-in each of the shared library (sccs delget) |
|
20 |
|
21 |
|
22 For step 4 (re-building libLauncher.so) the following environment is required: |
|
23 |
|
24 (a) JAVA_HOME needs to be set to J2SE directory, eg:- |
|
25 export JAVA_HOME=/usr/local/java/jdk1.5/solaris-sparc |
|
26 |
|
27 (b) For Solaris the SOS8 'cc' needs to be on the PATH, check using: |
|
28 # cc -V |
|
29 cc: Sun C 5.5 2003/03/12 |
|
30 |
|
31 (c) Execute the make script :- |
|
32 Solaris: gnumake all |
|
33 Linux: gmake all |
|