mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-27 17:43:27 +00:00
eda4929c72
* chore: add windows binaries * chore: fix/exclude windows brokenness * chore: try to see why diff tests fail on windows * fix: rm bazelisk rc again for windows * fix: try our own diff_test * chore: use only our own diff_test
42 lines
772 B
Python
42 lines
772 B
Python
load("//lib:diff_test.bzl", "diff_test")
|
|
load(":pkg.bzl", "pkg")
|
|
|
|
not_windows = select({
|
|
# 2023/10/10 18:59:00 lstat lib\tests\copy_directory_bin_action\d\d\s1 failed:
|
|
# CreateFile .\1: The system cannot find the file specified.
|
|
"@platforms//os:windows": ["@platforms//:incompatible"],
|
|
"//conditions:default": [],
|
|
})
|
|
|
|
pkg(
|
|
name = "pkg",
|
|
src = "d",
|
|
out = "d2",
|
|
target_compatible_with = not_windows,
|
|
)
|
|
|
|
pkg(
|
|
name = "pkg2",
|
|
src = "pkg",
|
|
out = "d3",
|
|
target_compatible_with = not_windows,
|
|
)
|
|
|
|
diff_test(
|
|
name = "copy_test",
|
|
file1 = ":d",
|
|
file2 = ":pkg",
|
|
)
|
|
|
|
diff_test(
|
|
name = "hardlink_test",
|
|
file1 = ":d",
|
|
file2 = ":pkg2",
|
|
)
|
|
|
|
diff_test(
|
|
name = "sanity_test",
|
|
file1 = ":pkg",
|
|
file2 = ":pkg2",
|
|
)
|