blob: 654b7bac088b60fdee4035b43c26b015a18dcc5e [file] [log] [blame]
"""Tool for comparing Verilog source code.
"""
load("//bazel:sh_test_with_runfiles_lib.bzl", "sh_test_with_runfiles_lib")
licenses(["notice"])
cc_binary(
name = "verible-verilog-diff",
srcs = ["verilog_diff.cc"],
visibility = ["//visibility:public"],
deps = [
"//common/strings:obfuscator",
"//common/util:enum_flags",
"//common/util:file_util",
"//common/util:init_command_line",
"//common/util:logging",
"//verilog/analysis:verilog_equivalence",
"@com_google_absl//absl/flags:flag",
"@com_google_absl//absl/strings",
],
)
sh_test_with_runfiles_lib(
name = "diff_user_errors_test",
size = "small",
srcs = ["diff_user_errors_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)
sh_test_with_runfiles_lib(
name = "diff_format_match_test",
size = "small",
srcs = ["diff_format_match_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)
sh_test_with_runfiles_lib(
name = "diff_format_mismatch_test",
size = "small",
srcs = ["diff_format_mismatch_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)
sh_test_with_runfiles_lib(
name = "diff_format_lex_error_test",
size = "small",
srcs = ["diff_format_lex_error_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)
sh_test_with_runfiles_lib(
name = "diff_obfuscate_match_test",
size = "small",
srcs = ["diff_obfuscate_match_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)
sh_test_with_runfiles_lib(
name = "diff_obfuscate_mismatch_test",
size = "small",
srcs = ["diff_obfuscate_mismatch_test.sh"],
args = ["$(location :verible-verilog-diff)"],
data = [":verible-verilog-diff"],
)