diff options
Diffstat (limited to 'test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.sh')
-rw-r--r-- | test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.sh | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.sh b/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.sh new file mode 100644 index 000000000..2bc9fd10c --- /dev/null +++ b/test/sun/java2d/X11SurfaceData/SharedMemoryPixmapsTest/SharedMemoryPixmapsTest.sh @@ -0,0 +1,51 @@ +# +# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved. +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. +# +# This code is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 2 only, as +# published by the Free Software Foundation. +# +# This code is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# version 2 for more details (a copy is included in the LICENSE file that +# accompanied this code). +# +# You should have received a copy of the GNU General Public License version +# 2 along with this work; if not, write to the Free Software Foundation, +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +# +# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, +# CA 95054 USA or visit www.sun.com if you need additional information or +# have any questions. +# + +#!/bin/sh +# @test +# @bug 6363434 6588884 +# @summary Verify that shared memory pixmaps are not broken +# by filling a VolatileImage with red color and copying it +# to the screen. +# Note that we force the use of shared memory pixmaps. +# @author Dmitri.Trembovetski + +echo "TESTJAVA=${TESTJAVA}" +echo "TESTSRC=${TESTSRC}" +echo "TESTCLASSES=${TESTCLASSES}" +cd ${TESTSRC} +${TESTJAVA}/bin/javac -d ${TESTCLASSES} SharedMemoryPixmapsTest.java +cd ${TESTCLASSES} + +NO_J2D_DGA=true +J2D_PIXMAPS=shared +export NO_J2D_DGA J2D_PIXMAPS + +${TESTJAVA}/bin/java SharedMemoryPixmapsTest + +if [ $? -ne 0 ]; then + echo "Test failed!" + exit 1 +fi + +exit 0 |