1#!/bin/bash 2 3# Copyright (C) 2021 Huawei Device Co., Ltd. 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16set -e 17root_opengl_path=$1 18mkdir -p "suites/acts/acts/testcases/opengldata" 19cp -rf "$root_opengl_path/third_party/vk-gl-cts/external/openglcts/data" "suites/acts/acts/testcases/opengldata" 20cp -rf "$root_opengl_path/third_party/vk-gl-cts/external/openglcts/data/mustpass" "suites/acts/acts/testcases/opengldata" 21 22cp -rf "graphic/graphic_2d/glcts" "suites/acts/acts/testcases/opengldata/mustpass" 23 24mv "suites/acts/acts/testcases/opengldata/mustpass/gl/aosp_mustpass" "suites/acts/acts/testcases/opengldata/mustpass/gl/a_mustpass" 25mv "suites/acts/acts/testcases/opengldata/mustpass/egl/aosp_mustpass" "suites/acts/acts/testcases/opengldata/mustpass/egl/a_mustpass" 26mv "suites/acts/acts/testcases/opengldata/mustpass/gles/aosp_mustpass" "suites/acts/acts/testcases/opengldata/mustpass/gles/a_mustpass" 27 28tar czvf "opengldata.tar.gz" -C "suites/acts/acts/testcases/opengldata" "." 29mv "opengldata.tar.gz" "suites/acts/acts/testcases/opengldata" 30 31cp -rf "$root_opengl_path/test/xts/acts/graphic/gltest/genlocal.py" "suites/acts/acts/testcases/opengldata" 32cp -rf "graphic/graphic_2d/libdeqp_ohos_platform.z.so" "suites/acts/acts/testcases/opengldata" 33cp -rf "graphic/graphic_2d/librosen_context.z.so" "suites/acts/acts/testcases/opengldata" 34cp -rf "xts/acts/libdeqp_amber.z.so" "suites/acts/acts/testcases/opengldata" 35cp -rf "graphic/graphic_2d/libdeqp_spirv.z.so" "suites/acts/acts/testcases/opengldata" 36cp -rf "graphic/graphic_2d/libdeqp_spvremapper.z.so" "suites/acts/acts/testcases/opengldata"