Files
rk35xx-android14/external/bazel-skylib/docs/diff_test_doc.md
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

1.1 KiB
Executable File

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).

diff_test

diff_test(name, file1, file2, kwargs)

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
kwargs The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. none