{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"filecheck is a Python implementation of LLVM's FileCheck tool, used to validate text output against patterns defined in check directives embedded in test files or comments.","skillfed_tags":["compiler-testing","pattern-matching","llvm"],"use_cases":["Validate compiler or interpreter output in test suites by embedding CHECK directives in expected-output files","Test MLIR or LLVM IR generation by matching patterns against generated code","Verify code generation correctness in language implementation projects using pattern matching and variable capture","Check diagnostic or error message output from tools by matching against known patterns","Automate regression testing for xDSL or similar domain-specific languages"],"what_it_does":"filecheck is a Python port of LLVM's FileCheck pattern-matching tool for validating text output in tests. It reads check directives (CHECK, CHECK-NEXT, CHECK-NOT, CHECK-LABEL, CHECK-DAG, etc.) from test files or comments and matches them against input text, reporting pass/fail with detailed diagnostics. The package passes 95.8% of LLVM's MLIR filecheck test suite and supports most core features including regex patterns, variable captures, and numeric captures, though numeric substitution (arithmetic on captured values) is not yet implemented.\n\nThe tool is fully type-checked with pyright and formatted with black, making it suitable for integration into compiler testing pipelines, MLIR/xDSL projects, and any workflow that needs pattern-based output validation. It requires Python 3.10 or later and has no external runtime dependencies, keeping installation and deployment simple.","worth_installing":"Yes, if you need LLVM FileCheck semantics in Python for compiler or code-generation testing. The package is stable, dependency-free, and covers 95.8% of LLVM's test suite. Install with caution if your tests rely on numeric substitution (arithmetic on captures), which is not yet supported; otherwise, it's a straightforward drop-in replacement for the C++ FileCheck tool."},"id":"filecheck","links":{"html":"https://skillfed.io/packages/filecheck","md":"https://skillfed.io/packages/filecheck.md","pypi":"https://pypi.org/project/filecheck/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-08-19","license_spdx":null,"license_treatment":"permissive","name":"filecheck","python_support":"supports_current","summary":"A Python-native clone of LLVMs FileCheck tool"},"popularity":{"monthly_downloads":395000,"position":6985,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.3"}
