Skip to content

Add flexibility for .err and .out comparison in cabal-install integration tests #2872

Closed
@BardurArantsson

Description

@BardurArantsson

As discussed in #2868 (comment) it would be nice to have a little more flexibility for the matching used for ".err" and ".out" files in the cabal-install integration tests. This would allow for better handling of Windows (".exe" appears in the "program name" portion of output) and perhaps also in other cases where a little flexibility is required.

(Mostly copied from that thread:)

A reasonable start would be line-by-line regex comparison where each .out or .err file could contain lines like:

   RE:this is a regex
   this is not

If we want to go super-advanced, something like http://llvm.org/docs/CommandGuide/FileCheck.html could also be an option. (I think this may be overkill for our purposes since cabal-install output is usually pretty simple if you can control the inputs.)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions