2
0
Fork 0
mirror of https://github.com/bazelbuild/bazel-skylib synced 2024-11-30 10:41:18 +00:00
bazel-skylib/rules/BUILD
László Csomor be3b1fc838 diff_test: add rule and tests (#136)
This new test rule compares two files and passes
if the files match.

On Linux/macOS/non-Windows, the test compares
files using 'diff'.

On Windows, the test compares files using
'fc.exe'. This utility is available on all Windows
versions I tried (Windows 2008 Server, Windows
2016 Datacenter Core).

See https://github.com/bazelbuild/bazel/issues/5508
See https://github.com/bazelbuild/bazel/issues/4319
2019-04-12 13:35:29 -04:00

42 lines
850 B
Python

load("//:bzl_library.bzl", "bzl_library")
licenses(["notice"])
package(default_visibility = ["//visibility:public"])
bzl_library(
name = "build_test",
srcs = ["build_test.bzl"],
deps = ["//lib:new_sets"],
)
bzl_library(
name = "copy_file",
srcs = ["copy_file.bzl"],
deps = ["//rules/private:copy_file_private"],
)
bzl_library(
name = "write_file",
srcs = ["write_file.bzl"],
deps = ["//rules/private:write_file_private"],
)
bzl_library(
name = "diff_test",
srcs = ["diff_test.bzl"],
)
# Exported for build_test.bzl to make sure of, it is an implementation detail
# of the rule and should not be directly used by anything else.
exports_files(["empty_test.sh"])
filegroup(
name = "test_deps",
testonly = True,
srcs = [
"BUILD",
"empty_test.sh",
] + glob(["*.bzl"]),
)