/** * AWK spec test runner - executes parsed awk tests against ag-bash's awk */ import { Bash } from "../../Bash.js"; import type { AwkTestCase } from "./parser.js"; export interface AwkTestResult { testCase: AwkTestCase; passed: boolean; skipped: boolean; skipReason?: string; /** Test was expected to fail (skip) but unexpectedly passed */ unexpectedPass?: boolean; actualOutput?: string; actualStderr?: string; actualStatus?: number; expectedOutput?: string; error?: string; } export interface RunOptions { /** Custom Bash options */ bashEnvOptions?: ConstructorParameters[0]; } /** * Run a single awk test case */ export declare function runAwkTestCase(testCase: AwkTestCase, options?: RunOptions): Promise; /** * Format error message for debugging */ export declare function formatError(result: AwkTestResult): string;