jstatLineCounts1.sh revision 5175:2dc35f14bf17
197403Sobrien# 297403Sobrien# Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved. 3132720Skan# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 497403Sobrien# 5132720Skan# This code is free software; you can redistribute it and/or modify it 697403Sobrien# under the terms of the GNU General Public License version 2 only, as 7132720Skan# published by the Free Software Foundation. 897403Sobrien# 997403Sobrien# This code is distributed in the hope that it will be useful, but WITHOUT 1097403Sobrien# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1197403Sobrien# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12132720Skan# version 2 for more details (a copy is included in the LICENSE file that 1397403Sobrien# accompanied this code). 1497403Sobrien# 1597403Sobrien# You should have received a copy of the GNU General Public License version 1697403Sobrien# 2 along with this work; if not, write to the Free Software Foundation, 1797403Sobrien# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18132720Skan# 19169691Skan# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20169691Skan# or visit www.oracle.com if you need additional information or have any 2197403Sobrien# questions. 2297403Sobrien# 2397403Sobrien 2497403Sobrien# @test 2597403Sobrien# @bug 4990825 2697403Sobrien# @run shell jstatLineCounts1.sh 2797403Sobrien# @summary Test that output of 'jstat -gcutil 0 250 5' has expected line counts 2897403Sobrien 2997403Sobrien. ${TESTSRC-.}/../../jvmstat/testlibrary/utils.sh 3097403Sobrien 3197403Sobriensetup 3297403Sobrienverify_os 3397403Sobrien 3497403SobrienJSTAT="${TESTJAVA}/bin/jstat" 3597403Sobrien 3697403Sobrien${JSTAT} -J-XX:+UsePerfData -J-Duser.language=en -gcutil 0 250 5 2>&1 | awk -f ${TESTSRC}/lineCounts1.awk 3797403Sobrien