< prev index next >

test/jdk/java/awt/Toolkit/AutoShutdown/ShowExitTest/ShowExitTest.sh

Print this page
rev 59383 : [mq]: final
   1 #!/bin/ksh -p
   2 
   3 #
   4 # Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
   5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6 #
   7 # This code is free software; you can redistribute it and/or modify it
   8 # under the terms of the GNU General Public License version 2 only, as
   9 # published by the Free Software Foundation.
  10 #
  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 #


  46    echo "exit status was $status"
  47    exit $status
  48  } #end of fail()
  49 
  50 #Call this from anywhere to pass the test with a message
  51 # usage: pass "reason why the test passed if applicable"
  52 pass()
  53  { echo "The test passed!!!"
  54    echo "$*" 1>&2
  55    exit 0
  56  } #end of pass()
  57 
  58 # end of subroutines
  59 
  60 
  61 # The beginning of the script proper
  62 
  63 # Checking for proper OS
  64 OS=`uname -s`
  65 case "$OS" in
  66    SunOS )
  67       VAR="One value for Sun"
  68       DEFAULT_JDK=/
  69       FILESEP="/"
  70       PATHSEP=":"
  71       TMP="/tmp"
  72       ;;
  73 
  74    Linux )
  75       VAR="A different value for Linux"
  76       DEFAULT_JDK=/
  77       FILESEP="/"
  78       PATHSEP=":"
  79       TMP="/tmp"
  80       ;;
  81 
  82    Darwin )
  83       VAR="A different value for MacOSX"
  84       DEFAULT_JDK=/usr
  85       FILESEP="/"
  86       PATHSEP=":"
  87       TMP="/tmp"
  88       ;;
  89 
  90    Windows* )
  91       VAR="A different value for Win32"
  92       DEFAULT_JDK="C:/Program Files/Java/jdk1.8.0"
  93       FILESEP="\\"


   1 #!/bin/ksh -p
   2 
   3 #
   4 # Copyright (c) 2007, 2020, Oracle and/or its affiliates. All rights reserved.
   5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   6 #
   7 # This code is free software; you can redistribute it and/or modify it
   8 # under the terms of the GNU General Public License version 2 only, as
   9 # published by the Free Software Foundation.
  10 #
  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 #


  46    echo "exit status was $status"
  47    exit $status
  48  } #end of fail()
  49 
  50 #Call this from anywhere to pass the test with a message
  51 # usage: pass "reason why the test passed if applicable"
  52 pass()
  53  { echo "The test passed!!!"
  54    echo "$*" 1>&2
  55    exit 0
  56  } #end of pass()
  57 
  58 # end of subroutines
  59 
  60 
  61 # The beginning of the script proper
  62 
  63 # Checking for proper OS
  64 OS=`uname -s`
  65 case "$OS" in








  66    Linux )
  67       VAR="A different value for Linux"
  68       DEFAULT_JDK=/
  69       FILESEP="/"
  70       PATHSEP=":"
  71       TMP="/tmp"
  72       ;;
  73 
  74    Darwin )
  75       VAR="A different value for MacOSX"
  76       DEFAULT_JDK=/usr
  77       FILESEP="/"
  78       PATHSEP=":"
  79       TMP="/tmp"
  80       ;;
  81 
  82    Windows* )
  83       VAR="A different value for Win32"
  84       DEFAULT_JDK="C:/Program Files/Java/jdk1.8.0"
  85       FILESEP="\\"


< prev index next >