jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh
changeset 1084 4d4d63dfdef9
parent 2 90ce3da70b43
child 1247 b4c26443dee5
equal deleted inserted replaced
1082:53833ff90c45 1084:4d4d63dfdef9
    23 # have any questions.
    23 # have any questions.
    24 #
    24 #
    25 
    25 
    26 
    26 
    27 # @test
    27 # @test
    28 # @bug 6265810
    28 # @bug 6265810 6705893
       
    29 # @build CheckEngine
    29 # @run shell jrunscript-cpTest.sh
    30 # @run shell jrunscript-cpTest.sh
    30 # @summary Test -cp option to set classpath
    31 # @summary Test -cp option to set classpath
    31 
    32 
    32 . ${TESTSRC-.}/common.sh
    33 . ${TESTSRC-.}/common.sh
    33 
    34 
    34 setup
    35 setup
       
    36 ${JAVA} -cp ${TESTCLASSES} CheckEngine
       
    37 if [ $? -eq 2 ]; then
       
    38     echo "No js engine found and engine not required; test vacuously passes."
       
    39     exit 0
       
    40 fi
    35 
    41 
    36 rm -f Hello.class
    42 rm -f Hello.class
    37 ${JAVAC} ${TESTSRC}/Hello.java -d .
    43 ${JAVAC} ${TESTSRC}/Hello.java -d .
    38 
    44 
    39 # we check whether classpath setting for app classes
    45 # we check whether classpath setting for app classes