< prev index next >

test/java/net/URL/B5086147.sh

Print this page
rev 1540 : 6867657: Many JSN tests do not run under cygwin
Reviewed-by: ohair
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>


  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 OS=`uname -s`
  27 case "$OS" in
  28   SunOS | Linux | Darwin | AIX )
  29     exit 0
  30     ;;




  31   Windows* )
  32     PS=";"
  33     FS="\\"
  34     ;;
  35   * )
  36     echo "Unrecognized system!"
  37     exit 1;
  38     ;;
  39 esac
  40 ${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}B5086147.java
  41 
  42 failures=0
  43 
  44 echo ''
  45 ${TESTJAVA}${FS}bin${FS}java B5086147
  46 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
  47 
  48 if [ "$failures" != "0" ]; then
  49     echo $failures tests failed
  50     exit 1;
  51 fi


  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any
  23 # questions.
  24 #
  25 
  26 OS=`uname -s`
  27 case "$OS" in
  28   SunOS | Linux | Darwin | AIX )
  29     exit 0
  30     ;;
  31   CYGWIN* )
  32     PS=";"
  33     FS="/"
  34     ;;
  35   Windows* )
  36     PS=";"
  37     FS="\\"
  38     ;;
  39   * )
  40     echo "Unrecognized system!"
  41     exit 1;
  42     ;;
  43 esac
  44 ${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}B5086147.java
  45 
  46 failures=0
  47 
  48 echo ''
  49 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} B5086147
  50 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
  51 
  52 if [ "$failures" != "0" ]; then
  53     echo $failures tests failed
  54     exit 1;
  55 fi
< prev index next >