update cppcheck shim

This commit is contained in:
github-actions[bot]
2026-05-01 02:20:44 +00:00
commit 0cf4fbec38
3 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import os
import sys
DIR = os.path.join(os.path.dirname(__file__), "install")
def _run():
binary = os.path.join(DIR, "cppcheck")
os.execvp(binary, ["cppcheck"] + sys.argv[1:])
def smoketest():
import subprocess
binary = os.path.join(DIR, "cppcheck")
result = subprocess.run([binary, "--version"], capture_output=True, text=True, check=True)
print(result.stdout.strip())