jdk/test/sun/security/tools/jarsigner/diffend.sh
changeset 24116 9f9b4ba34aad
parent 22602 0d9a07b0d7e9
equal deleted inserted replaced
24077:0809c9a4d36e 24116:9f9b4ba34aad
    83 # With the fake .RSA file, to trigger the if (wasSigned) block
    83 # With the fake .RSA file, to trigger the if (wasSigned) block
    84 
    84 
    85 rm diffend.jar
    85 rm diffend.jar
    86 zip diffend.jar META-INF/MANIFEST.MF META-INF/x.RSA 1
    86 zip diffend.jar META-INF/MANIFEST.MF META-INF/x.RSA 1
    87 
    87 
    88 ${TESTJAVA}${FS}bin${FS}jarsigner \
    88 ${TESTJAVA}${FS}bin${FS}jarsigner ${TESTTOOLVMOPTS} \
    89     -keystore ${TESTSRC}${FS}JarSigning.keystore \
    89     -keystore ${TESTSRC}${FS}JarSigning.keystore \
    90     -storepass bbbbbb \
    90     -storepass bbbbbb \
    91     -digestalg SHA1 \
    91     -digestalg SHA1 \
    92     -signedjar diffend.new.jar \
    92     -signedjar diffend.new.jar \
    93     diffend.jar c
    93     diffend.jar c
    97 # Without the fake .RSA file, to trigger the else block
    97 # Without the fake .RSA file, to trigger the else block
    98 
    98 
    99 rm diffend.jar
    99 rm diffend.jar
   100 zip diffend.jar META-INF/MANIFEST.MF 1
   100 zip diffend.jar META-INF/MANIFEST.MF 1
   101 
   101 
   102 ${TESTJAVA}${FS}bin${FS}jarsigner \
   102 ${TESTJAVA}${FS}bin${FS}jarsigner ${TESTTOOLVMOPTS} \
   103     -keystore ${TESTSRC}${FS}JarSigning.keystore \
   103     -keystore ${TESTSRC}${FS}JarSigning.keystore \
   104     -storepass bbbbbb \
   104     -storepass bbbbbb \
   105     -digestalg SHA1 \
   105     -digestalg SHA1 \
   106     -signedjar diffend.new.jar \
   106     -signedjar diffend.new.jar \
   107     diffend.jar c
   107     diffend.jar c