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 <code>file2</code>. | none | 29| <a id="diff_test-file2"></a>file2 | Label of the file to compare to <code>file1</code>. | none | 30| <a id="diff_test-kwargs"></a>kwargs | The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. | none | 31 32 33