# MobileGL - tools/cts/scripts/test_wgl_glcts_pipeline.py # Copyright (c) 2025-2026 MobileGL-Dev # Licensed under the GNU Lesser General Public License v3.0: # https://www.gnu.org/licenses/gpl-3.0.txt # https://www.gnu.org/licenses/lgpl-3.0.txt # SPDX-License-Identifier: LGPL-3.0-only # End of Source File Header import argparse import json from pathlib import Path import struct import tempfile import unittest import wgl_glcts_pipeline as pipeline def write_fake_pe(path: Path, machine: int = pipeline.PE_MACHINE_AMD64, payload: bytes = b"") -> None: data = bytearray(0x88) data[0:2] = b"MZ" struct.pack_into("