FileCheck is a Python-native clone of LLVM's FileCheck tool, designed for flexible and powerful pattern matching in text. It allows developers to define a sequence of regular expression-based checks against a source buffer, enabling robust testing of compiler outputs, log files, or any structured text. The current version is 1.0.3, and it maintains an active release cadence with regular bug fixes and new features.
pip install filecheckVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use the `filecheck` library to validate text against a series of `CHECK` directives. It covers basic `CHECK`, `CHECK-NEXT`, `CHECK-NOT`, and `CHECK-LABEL` directives, error handling, and using custom `check_prefixes`.
Review existing FileCheck directives and update your test logic if you relied on errors for empty captures. Consider adding explicit checks for captured values if their emptiness is critical.
Upgrade to version 1.0.2 or newer to ensure correct and strict whitespace matching behavior. Review any existing checks that might have subtly relied on the previous, less strict behavior.
Upgrade to version 1.0.2 or newer to ensure the `--match-full-lines` flag (or its programmatic equivalent `match_full_lines=True`) functions as intended.
Review your project's licensing compatibility if you are using versions older than 1.0.1 and plan to upgrade, or if your project has specific licensing requirements.
No dependency data recorded yet.