jdk/test/java/nio/channels/spi/SelectorProvider/inheritedChannel/README
author martin
Wed, 02 Sep 2015 14:11:50 -0700
changeset 32427 c22b7e41adf3
parent 2 90ce3da70b43
permissions -rw-r--r--
8134984: Text files should end in exactly one newline Summary: automated fixup of newlines at end-of-file via the usual perl one-liner Reviewed-by: chegar, sherman
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
The unit tests in this directory depend on a native launcher library
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
(libLauncher.so). This native library is built off-line and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
resulting libLauncher.so for each processor/OS combination is checked
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
into the workspace. The reason for this is because the test environment
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
may not have the required compilers/build environment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
In order to rebuild libLauncher.so the following is required :-
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
1. Check-out each of the shared libraries (sccs edit)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
2. Edit Launcher.c with the appropriate changes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
3. Execute the make script (gnumake all) on each processor/OS so
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
that the appropriate lib/<platform>/libLauncher.so is built.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
4. Test the changes
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
5. Check-in each of the shared library (sccs delget)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
For step 4 (re-building libLauncher.so) the following environment is required:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
(a) JAVA_HOME needs to be set to J2SE directory, eg:-
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
	export JAVA_HOME=/usr/local/java/jdk1.5/solaris-sparc
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
(b) For Solaris the SOS8 'cc' needs to be on the PATH, check using:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
	# cc -V
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
	cc: Sun C 5.5 2003/03/12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
(c) Execute the make script :-
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
	Solaris:	gnumake all
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
	Linux:		gmake all