A test rule that compares two binary files.
The rule uses a Bash command (diff) on Linux/macOS/non-Windows, and a cmd.exe command (fc.exe) on Windows (no Bash is required).
A test that compares two files.
The test succeeds if the files' contents match.
PARAMETERS
| Name | Description | Default Value |
|---|---|---|
| name | The name of the test rule. | none |
| file1 | Label of the file to compare to <code>file2</code>. | none |
| file2 | Label of the file to compare to <code>file1</code>. | none |
| failure_message | Additional message to log if the files' contents do not match. | None |
| kwargs | The <a href=“https://bazel.build/reference/be/common-definitions#common-attributes-tests”>common attributes for tests</a>. | none |