From e6c758cf3b6e834bcde04167e69e6bbb2d7ee476 Mon Sep 17 00:00:00 2001 From: Daniel Koepping Date: Sat, 28 Nov 2026 12:25:51 -0600 Subject: [PATCH] release build tests (#2506) --- panda/tests/test_build.py | 66 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 panda/tests/test_build.py diff --git a/panda/tests/test_build.py b/panda/tests/test_build.py new file mode 100644 index 0000000000..5584ba866d --- /dev/null +++ b/panda/tests/test_build.py @@ -0,0 +1,66 @@ +#!/usr/bin/env python3 +import os +import shutil +import struct +import sys +import subprocess +import tempfile +import unittest + +ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__), "..")) +# RM0468 4.5.1: FLASH_CR and FLASH_OPTCR only unlock with these keys +FLASH_KEYS = (0x45670123, 0xCDEF89AB) +OPT_KEYS = (0x08192A3B, 0x4C5D6E7F) + + +def word(w): + return struct.pack("