105 fi
106 echo "JDK under test is: $TESTJAVA"
107
108 #if in test harness, then copy the entire directory that the test is in over
109 # to the scratch directory. This catches any support files needed by the test.
110 if [ -z "${STANDALONE}" ] ;
111 then cp ${TESTSRC}/* .
112 fi
113 case "$OS" in
114 Windows* | CYGWIN* )
115 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
116 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
117 --add-exports java.desktop/sun.awt.windows=ALL-UNNAMED ${CP} \
118 *.java
119 status=$?
120 if [ ! $status -eq "0" ]; then
121 fail "Compilation failed";
122 fi
123 ;;
124
125 SunOS | Linux )
126 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
127 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
128 --add-exports java.desktop/sun.awt.X11=ALL-UNNAMED ${CP} \
129 *.java
130 status=$?
131 if [ ! $status -eq "0" ]; then
132 fail "Compilation failed";
133 fi
134 ;;
135
136 Darwin)
137 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
138 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
139 --add-exports java.desktop/sun.lwawt.macosx=ALL-UNNAMED ${CP} \
140 *.java
141 status=$?
142 if [ ! $status -eq "0" ]; then
143 fail "Compilation failed";
144 fi
145 ;;
|
105 fi
106 echo "JDK under test is: $TESTJAVA"
107
108 #if in test harness, then copy the entire directory that the test is in over
109 # to the scratch directory. This catches any support files needed by the test.
110 if [ -z "${STANDALONE}" ] ;
111 then cp ${TESTSRC}/* .
112 fi
113 case "$OS" in
114 Windows* | CYGWIN* )
115 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
116 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
117 --add-exports java.desktop/sun.awt.windows=ALL-UNNAMED ${CP} \
118 *.java
119 status=$?
120 if [ ! $status -eq "0" ]; then
121 fail "Compilation failed";
122 fi
123 ;;
124
125 AIX | Linux | SunOS )
126 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
127 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
128 --add-exports java.desktop/sun.awt.X11=ALL-UNNAMED ${CP} \
129 *.java
130 status=$?
131 if [ ! $status -eq "0" ]; then
132 fail "Compilation failed";
133 fi
134 ;;
135
136 Darwin)
137 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} \
138 --add-exports java.desktop/sun.awt=ALL-UNNAMED \
139 --add-exports java.desktop/sun.lwawt.macosx=ALL-UNNAMED ${CP} \
140 *.java
141 status=$?
142 if [ ! $status -eq "0" ]; then
143 fail "Compilation failed";
144 fi
145 ;;
|