[gdb/testsuite] Add gdb.src/pre-commit.exp Add a test-case running the pre-commit hooks, as suggested here [1]. [1] https://sourceware.org/pipermail/gdb-patches/2025-October/221441.html