SharedMemoryPixmapsTest.sh revision 2362
4169N/A#
1178N/A# Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.
1178N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1178N/A#
1178N/A# This code is free software; you can redistribute it and/or modify it
1178N/A# under the terms of the GNU General Public License version 2 only, as
1178N/A# published by the Free Software Foundation.
1178N/A#
1178N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1178N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1178N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1178N/A# version 2 for more details (a copy is included in the LICENSE file that
1178N/A# accompanied this code).
1178N/A#
1178N/A# You should have received a copy of the GNU General Public License version
1178N/A# 2 along with this work; if not, write to the Free Software Foundation,
1178N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2362N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
1178N/A# questions.
5176N/A#
0N/A
0N/A#!/bin/sh
4033N/A# @test
4935N/A# @bug 6363434 6588884
0N/A# @summary Verify that shared memory pixmaps are not broken
0N/A# by filling a VolatileImage with red color and copying it
0N/A# to the screen.
1178N/A# Note that we force the use of shared memory pixmaps.
4033N/A# @author Dmitri.Trembovetski
1178N/A
1178N/Aecho "TESTJAVA=${TESTJAVA}"
4033N/Aecho "TESTSRC=${TESTSRC}"
1178N/Aecho "TESTCLASSES=${TESTCLASSES}"
1178N/Acd ${TESTSRC}
4033N/A${TESTJAVA}/bin/javac -d ${TESTCLASSES} SharedMemoryPixmapsTest.java
0N/Acd ${TESTCLASSES}
1178N/A
4033N/ANO_J2D_DGA=true
1178N/AJ2D_PIXMAPS=shared
1178N/Aexport NO_J2D_DGA J2D_PIXMAPS
4935N/A
1178N/A${TESTJAVA}/bin/java SharedMemoryPixmapsTest
1178N/A
4935N/Aif [ $? -ne 0 ]; then
1178N/A echo "Test failed!"
1178N/A exit 1
4033N/Afi
0N/A
1178N/Aexit 0
4033N/A