• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2
3A test rule that compares two binary files.
4
5The rule uses a Bash command (diff) on Linux/macOS/non-Windows, and a cmd.exe
6command (fc.exe) on Windows (no Bash is required).
7
8
9<a id="#diff_test"></a>
10
11## diff_test
12
13<pre>
14diff_test(<a href="#diff_test-name">name</a>, <a href="#diff_test-file1">file1</a>, <a href="#diff_test-file2">file2</a>, <a href="#diff_test-kwargs">kwargs</a>)
15</pre>
16
17A test that compares two files.
18
19The test succeeds if the files' contents match.
20
21
22**PARAMETERS**
23
24
25| Name  | Description | Default Value |
26| :------------- | :------------- | :------------- |
27| <a id="diff_test-name"></a>name |  The name of the test rule.   |  none |
28| <a id="diff_test-file1"></a>file1 |  Label of the file to compare to &lt;code&gt;file2&lt;/code&gt;.   |  none |
29| <a id="diff_test-file2"></a>file2 |  Label of the file to compare to &lt;code&gt;file1&lt;/code&gt;.   |  none |
30| <a id="diff_test-kwargs"></a>kwargs |  The &lt;a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests"&gt;common attributes for tests&lt;/a&gt;.   |  none |
31
32
33