Skip to content

Commit 8b8489e

Browse files
authored
Add check (#3460)
This library is a dependency of open62541's tests, which we'd like to build. Ideally we'll drop use of rules_foreign_cc in favor of natively building the library, but that requires wrangling some complexity around configured files.
1 parent f511240 commit 8b8489e

File tree

6 files changed

+81
-0
lines changed

6 files changed

+81
-0
lines changed

modules/check/0.15.2/MODULE.bazel

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module(
2+
name = "check",
3+
version = "0.15.2",
4+
compatibility_level = 0,
5+
)
6+
7+
bazel_dep(
8+
name = "rules_foreign_cc",
9+
version = "0.13.0",
10+
)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--- /dev/null
2+
+++ BUILD.bazel
3+
@@ -0,0 +1,14 @@
4+
+load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
5+
+
6+
+filegroup(
7+
+ name="all_srcs",
8+
+ srcs= glob(["**"]),
9+
+)
10+
+
11+
+cmake(
12+
+ name="check",
13+
+ lib_source = ":all_srcs",
14+
+ out_static_libs = ["libcheck.a"],
15+
+ linkopts =["-lrt"],
16+
+ visibility = ["//visibility:public"],
17+
+)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- MODULE.bazel
2+
+++ MODULE.bazel
3+
@@ -0,0 +1,10 @@
4+
+module(
5+
+ name = "check",
6+
+ version = "0.15.2",
7+
+ compatibility_level = 0,
8+
+)
9+
+
10+
+bazel_dep(
11+
+ name = "rules_foreign_cc",
12+
+ version = "0.13.0",
13+
+)

modules/check/0.15.2/presubmit.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
matrix:
2+
platform:
3+
- debian10
4+
- ubuntu2004
5+
bazel:
6+
- 8.x
7+
- 7.x
8+
tasks:
9+
verify_targets:
10+
name: Verify build targets
11+
platform: ${{ platform }}
12+
bazel: ${{ bazel }}
13+
build_targets:
14+
- '@check//:check'

modules/check/0.15.2/source.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"url": "https://github.com/libcheck/check/releases/download/0.15.2/check-0.15.2.tar.gz",
3+
"integrity": "sha256-qN5OC6z7TXbdHGGN7SY1I7U7hdkqFG2INesaUpMvogo=",
4+
"strip_prefix": "check-0.15.2",
5+
"patches": {
6+
"add_build_file.patch": "sha256-8Xq7WLYk1k54AWpedJcQjixvHXyGd/tPqgKFJxTzY1A=",
7+
"module_dot_bazel.patch": "sha256-+xh4zRz0/HENCGs8EH3lrcblSI2j7PbAlqvgaXV7deY="
8+
},
9+
"patch_strip": 0
10+
}

modules/check/metadata.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://libcheck.github.io/check/",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "mbeards",
7+
"name": "Michael Beardsworth"
8+
}
9+
],
10+
"repository": [
11+
"github:libcheck/check"
12+
],
13+
"versions": [
14+
"0.15.2"
15+
],
16+
"yanked_versions": {}
17+
}

0 commit comments

Comments
 (0)