Skip to content

Commit

Permalink
Add lcov 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten committed Aug 20, 2024
1 parent 1ca11f4 commit 8758c00
Show file tree
Hide file tree
Showing 10 changed files with 1,726 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/lcov/2.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module(name = "lcov", version = "2.1")

bazel_dep(name = "rules_perl", version = "0.2.3.bcr.1")
bazel_dep(name = "rules_cpan", version = "1.0.0")

cpan = use_extension("@rules_cpan//cpan:extensions.bzl", "cpan")
cpan.install(
name = "cpan_deps",
lock = "//:cpanfile.snapshot.lock.json",
)
use_repo(cpan, "cpan_deps")
39 changes: 39 additions & 0 deletions modules/lcov/2.1/overlay/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
load("@rules_perl//perl:perl.bzl", "perl_binary", "perl_library")

package(default_visibility = ["//visibility:public"])

exports_files(["**/*"])

perl_library(
name = "liblcov",
srcs = glob(["lib/**/*"]),
deps = ["@cpan_deps"],
)

[
perl_binary(
name = bin,
srcs = ["bin/" + bin],
deps = [":liblcov"],
)
for bin in [
"fix.pl",
"gendesc",
"genhtml",
"geninfo",
"genpng",
"get_changes.sh",
"get_version.sh",
"lcov",
"perl2lcov",
"py2lcov",
"xml2lcov",
]
]

sh_test(
name = "integration_test",
srcs = ["integration_test.sh"],
data = ["@lcov//:genhtml"],
args = ["$(rootpath @lcov//:genhtml)"],
)
1 change: 1 addition & 0 deletions modules/lcov/2.1/overlay/MODULE.bazel
10 changes: 10 additions & 0 deletions modules/lcov/2.1/overlay/cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
requires 'Capture::Tiny';
requires 'DateTime';
requires 'Devel::Cover';
requires 'Digest::MD5';
requires 'File::Spec';
requires 'JSON::XS';
requires 'Memory::Process';
requires 'Module::Load::Conditional';
requires 'Scalar::Util';
requires 'Time::HiRes';
Loading

0 comments on commit 8758c00

Please sign in to comment.