roll: pigweed pw_compilation_testing: Consolidate generic (non-GN) functionality

- Move more code into the generic enumerate_tests and run_test functions
  to prepare for a Bazel implementation.
- Only check if a test is disabled if compilation succeeds. This speeds
  up tests since it removes a preprocessor invocation from most tests.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/322873
Original-Revision: 2c0b581240be92bda0d6377a0e3a74f800c75406

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: a764d26aefecc6..2c0b581240be92
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8703421521657704289
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I9f5df8ddd0a6c7b42ce62c4a0c207bdf6ad32483
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/323632
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index a02c8ec..8710f6c 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -42,8 +42,8 @@
     module_name = "pigweed",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2025-09-18.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8703432557126129825.
-    commit = "a764d26aefecc6922982f95f1d12d1c47abd6a66",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8703421521657704289.
+    commit = "2c0b581240be92bda0d6377a0e3a74f800c75406",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
 )