From d76fe462f6fe40b374e992b86b9c12b0db861179 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Thu, 27 Jan 2022 12:49:44 -0800 Subject: [PATCH] Have FileCheck dump all input on errors. (#1050) I'm hoping this improves debugability. --- executable_semantics/testdata/lit.cfg.py | 5 ++++- toolchain/driver/testdata/lit.cfg.py | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/executable_semantics/testdata/lit.cfg.py b/executable_semantics/testdata/lit.cfg.py index ad4ba539ab49..088dd25e8ac0 100644 --- a/executable_semantics/testdata/lit.cfg.py +++ b/executable_semantics/testdata/lit.cfg.py @@ -35,5 +35,8 @@ config.substitutions.append( ) config.substitutions.append(("%{not}", fullpath("llvm-project/llvm/not"))) config.substitutions.append( - ("%{FileCheck}", fullpath("llvm-project/llvm/FileCheck")) + ( + "%{FileCheck}", + fullpath("llvm-project/llvm/FileCheck --dump-input-filter=all"), + ) ) diff --git a/toolchain/driver/testdata/lit.cfg.py b/toolchain/driver/testdata/lit.cfg.py index 47c48bd43242..e975c265d658 100644 --- a/toolchain/driver/testdata/lit.cfg.py +++ b/toolchain/driver/testdata/lit.cfg.py @@ -28,5 +28,8 @@ config.substitutions.append( ) config.substitutions.append(("%{not}", fullpath("llvm-project/llvm/not"))) config.substitutions.append( - ("%{FileCheck}", fullpath("llvm-project/llvm/FileCheck")) + ( + "%{FileCheck}", + fullpath("llvm-project/llvm/FileCheck --dump-input-filter=all"), + ) )