summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-01-25 19:01:44 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2023-01-26 13:30:53 +0100
commit859ecb6b4b9845006c14a20da21f5ec8c4fb085e (patch)
treea94072963ba017a51dc767f147fd6f8aa7fcb19d /etc
parent3979ba259fe932c408844c5b43a9fdf77067230d (diff)
downloadrules-cc-859ecb6b4b9845006c14a20da21f5ec8c4fb085e.tar.gz
Test creating libraries from CMake project
Diffstat (limited to 'etc')
-rw-r--r--etc/imports/gtest.TARGETS6
-rw-r--r--etc/imports/libs.TARGETS3
-rw-r--r--etc/repos.json22
-rw-r--r--etc/repos.template.json22
4 files changed, 51 insertions, 2 deletions
diff --git a/etc/imports/gtest.TARGETS b/etc/imports/gtest.TARGETS
new file mode 100644
index 0000000..a9b2217
--- /dev/null
+++ b/etc/imports/gtest.TARGETS
@@ -0,0 +1,6 @@
+{ "tree":
+ { "type": "install"
+ , "dirs": [[["TREE", null, "."], "googletest"]]
+ , "tainted": ["test"]
+ }
+}
diff --git a/etc/imports/libs.TARGETS b/etc/imports/libs.TARGETS
new file mode 100644
index 0000000..f455122
--- /dev/null
+++ b/etc/imports/libs.TARGETS
@@ -0,0 +1,3 @@
+{ "tree":
+ {"type": "tree", "deps": [["@", "gtest", "", "tree"]], "tainted": ["test"]}
+}
diff --git a/etc/repos.json b/etc/repos.json
index 0e26865..06158d3 100644
--- a/etc/repos.json
+++ b/etc/repos.json
@@ -7,7 +7,11 @@
}
, "tests":
{ "repository": {"type": "file", "path": "tests"}
- , "bindings": {"test-just": "just", "test-rules": "test-rules"}
+ , "bindings":
+ { "test-just": "just"
+ , "test-rules": "test-rules"
+ , "test-libs": "test-libs"
+ }
}
, "imports": {"repository": {"type": "file", "path": "etc/imports"}}
, "test-rules":
@@ -15,6 +19,22 @@
, "target_root": "imports"
, "target_file_name": "rules.TARGETS"
}
+ , "test-libs":
+ { "repository": "imports"
+ , "target_file_name": "libs.TARGETS"
+ , "bindings": {"gtest": "gtest"}
+ }
+ , "gtest":
+ { "repository":
+ { "type": "archive"
+ , "fetch": "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz"
+ , "content": "cbd19f97df3ab86b174520cd850d238617c156e0"
+ , "sha256": "ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363"
+ , "subdir": "googletest-1.13.0"
+ }
+ , "target_root": "imports"
+ , "target_file_name": "gtest.TARGETS"
+ }
, "just":
{ "repository":
{ "type": "git"
diff --git a/etc/repos.template.json b/etc/repos.template.json
index 1b54fe9..4bdd1dc 100644
--- a/etc/repos.template.json
+++ b/etc/repos.template.json
@@ -7,7 +7,11 @@
}
, "tests":
{ "repository": {"type": "file", "path": "tests"}
- , "bindings": {"test-just": "just", "test-rules": "test-rules"}
+ , "bindings":
+ { "test-just": "just"
+ , "test-rules": "test-rules"
+ , "test-libs": "test-libs"
+ }
}
, "imports": {"repository": {"type": "file", "path": "etc/imports"}}
, "test-rules":
@@ -15,5 +19,21 @@
, "target_root": "imports"
, "target_file_name": "rules.TARGETS"
}
+ , "test-libs":
+ { "repository": "imports"
+ , "target_file_name": "libs.TARGETS"
+ , "bindings": {"gtest": "gtest"}
+ }
+ , "gtest":
+ { "repository":
+ { "type": "archive"
+ , "fetch": "https://github.com/google/googletest/archive/refs/tags/v1.13.0.tar.gz"
+ , "content": "cbd19f97df3ab86b174520cd850d238617c156e0"
+ , "sha256": "ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363"
+ , "subdir": "googletest-1.13.0"
+ }
+ , "target_root": "imports"
+ , "target_file_name": "gtest.TARGETS"
+ }
}
}