< prev index next >

test/java/lang/management/OperatingSystemMXBean/TestSystemLoadAvg.sh

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 #
  25 # @test

  26 # @summary  Tests OperatingSystemMXBean.getSystemLoadAverage() api.
  27 # @author   Mandy Chung
  28 # @bug      6336608 6367473 6511738
  29 #
  30 # @modules java.management
  31 # @run build GetSystemLoadAverage
  32 # @run shell/timeout=300 TestSystemLoadAvg.sh
  33 #
  34 
  35 #
  36 # This test tests the system load average on linux and solaris.
  37 # On windows tests if it returns -1.0 The verification is done
  38 # by the GetSystemLoadAverage class.  By default it takes no
  39 # input argument which verifies the system load average with
  40 # /usr/bin/uptime command. Or specify "-1.0" as the input argument
  41 # indicatiing that the platform doesn't support the system load average.
  42 
  43 #Set appropriate jdk
  44 #
  45 
  46 if [ ! -z "${TESTJAVA}" ] ; then
  47      jdk="$TESTJAVA"
  48 else
  49      echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
  50      exit 1




   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 #
  25 # @test
  26 # @bug      6336608 6367473 6511738
  27 # @summary  Tests OperatingSystemMXBean.getSystemLoadAverage() api.
  28 # @author   Mandy Chung

  29 #

  30 # @run build GetSystemLoadAverage
  31 # @run shell/timeout=300 TestSystemLoadAvg.sh
  32 #
  33 
  34 #
  35 # This test tests the system load average on linux and solaris.
  36 # On windows tests if it returns -1.0 The verification is done
  37 # by the GetSystemLoadAverage class.  By default it takes no
  38 # input argument which verifies the system load average with
  39 # /usr/bin/uptime command. Or specify "-1.0" as the input argument
  40 # indicatiing that the platform doesn't support the system load average.
  41 
  42 #Set appropriate jdk
  43 #
  44 
  45 if [ ! -z "${TESTJAVA}" ] ; then
  46      jdk="$TESTJAVA"
  47 else
  48      echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
  49      exit 1


< prev index next >