test/java/awt/appletviewer/IOExceptionIfEncodedURLTest/IOExceptionIfEncodedURLTest.sh

Print this page




 172    if [ -n "$1" ] ;
 173       then TESTJAVA=$1
 174       else echo "no JDK specified on command line so using default!"
 175      TESTJAVA=$DEFAULT_JDK
 176    fi
 177    TESTSRC=.
 178    TESTCLASSES=.
 179    STANDALONE=1;
 180 fi
 181 echo "JDK under test is: $TESTJAVA"
 182 
 183 #Deal with .class files:
 184 if [ -n "${STANDALONE}" ] ;
 185    then
 186    #if standalone, remind user to cd to dir. containing test before running it
 187    echo "Just a reminder: cd to the dir containing this test when running it"
 188    # then compile all .java files (if there are any) into .class files
 189    if [ -a *.java ] ;
 190       then echo "Reminder, this test should be in its own directory with all"
 191       echo "supporting files it needs in the directory with it."
 192       ${TESTJAVA}/bin/javac ./*.java ;
 193    fi
 194    # else in harness so copy all the class files from where jtreg put them
 195    # over to the scratch directory this test is running in.
 196    else cp ${TESTCLASSES}/*.class . ;
 197 fi
 198 
 199 #if in test harness, then copy the entire directory that the test is in over
 200 # to the scratch directory.  This catches any support files needed by the test.
 201 #if [ -z "${STANDALONE}" ] ;
 202 #   then cp ${TESTSRC}/* .
 203 #fi
 204 
 205 #Just before executing anything, make sure it has executable permission!
 206 chmod 777 ./*
 207 
 208 ###############  YOUR TEST CODE HERE!!!!!!!  #############
 209 
 210 #All files required for the test should be in the same directory with
 211 # this file.  If converting a standalone test to run with the harness,
 212 # as long as all files are in the same directory and it returns 0 for




 172    if [ -n "$1" ] ;
 173       then TESTJAVA=$1
 174       else echo "no JDK specified on command line so using default!"
 175      TESTJAVA=$DEFAULT_JDK
 176    fi
 177    TESTSRC=.
 178    TESTCLASSES=.
 179    STANDALONE=1;
 180 fi
 181 echo "JDK under test is: $TESTJAVA"
 182 
 183 #Deal with .class files:
 184 if [ -n "${STANDALONE}" ] ;
 185    then
 186    #if standalone, remind user to cd to dir. containing test before running it
 187    echo "Just a reminder: cd to the dir containing this test when running it"
 188    # then compile all .java files (if there are any) into .class files
 189    if [ -a *.java ] ;
 190       then echo "Reminder, this test should be in its own directory with all"
 191       echo "supporting files it needs in the directory with it."
 192       ${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} ${TESTJAVACOPTS} ./*.java ;
 193    fi
 194    # else in harness so copy all the class files from where jtreg put them
 195    # over to the scratch directory this test is running in.
 196    else cp ${TESTCLASSES}/*.class . ;
 197 fi
 198 
 199 #if in test harness, then copy the entire directory that the test is in over
 200 # to the scratch directory.  This catches any support files needed by the test.
 201 #if [ -z "${STANDALONE}" ] ;
 202 #   then cp ${TESTSRC}/* .
 203 #fi
 204 
 205 #Just before executing anything, make sure it has executable permission!
 206 chmod 777 ./*
 207 
 208 ###############  YOUR TEST CODE HERE!!!!!!!  #############
 209 
 210 #All files required for the test should be in the same directory with
 211 # this file.  If converting a standalone test to run with the harness,
 212 # as long as all files are in the same directory and it returns 0 for