annotate test/sun/nio/cs/Test4200310.sh @ 3261:a06412e13bf7

6962318: Update copyright year Reviewed-by: xdono
author ohair
date Tue, 28 Dec 2010 15:53:50 -0800
parents 6bc450d87125
children
rev   line source
sherman@395 1 #
ohair@3261 2 # Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
sherman@395 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
sherman@395 4 #
sherman@395 5 # This code is free software; you can redistribute it and/or modify it
sherman@395 6 # under the terms of the GNU General Public License version 2 only, as
sherman@395 7 # published by the Free Software Foundation.
sherman@395 8 #
sherman@395 9 # This code is distributed in the hope that it will be useful, but WITHOUT
sherman@395 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
sherman@395 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
sherman@395 12 # version 2 for more details (a copy is included in the LICENSE file that
sherman@395 13 # accompanied this code).
sherman@395 14 #
sherman@395 15 # You should have received a copy of the GNU General Public License version
sherman@395 16 # 2 along with this work; if not, write to the Free Software Foundation,
sherman@395 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
sherman@395 18 #
ohair@2362 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 20 # or visit www.oracle.com if you need additional information or have any
ohair@2362 21 # questions.
sherman@395 22 #
sherman@395 23 # @test
sherman@395 24 # @bug 4200310
sherman@395 25 # @summary make sure class files are not duplicated between rt.jar,
sherman@395 26 # charsets.jar, and localedata.jar
sherman@395 27 # @author Norbert Lindenberg
sherman@395 28 # @run shell Test4200310.sh
sherman@395 29
ptisnovs@2392 30 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/rt.jar" > class-list
ptisnovs@2392 31 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/charsets.jar" >> class-list
ptisnovs@2392 32 2>&1 $TESTJAVA/bin/jar -tf "$TESTJAVA/jre/lib/ext/localedata.jar" >> class-list
sherman@395 33 duplicates=`grep '\.class$' class-list | sort | uniq -d`
sherman@395 34
sherman@395 35 rm -f class-list
sherman@395 36 if [ "$duplicates" != "" ]; then
sherman@395 37 echo FAILED: $duplicates are duplicated between rt.jar, charsets.jar, and localedata.jar
sherman@395 38 exit 1
sherman@395 39 fi
sherman@395 40
sherman@395 41 exit 0