You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2022/04/15 08:13:11 UTC
[buildstream] 01/01: tests/cachekey: Adding test for default project.conf variables
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/extend-cachekey-tests
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 811f7e927d368f39f5caf23db8c99060a5b94a1e
Author: Tristan van Berkom <tr...@codethink.co.uk>
AuthorDate: Fri Apr 15 17:07:50 2022 +0900
tests/cachekey: Adding test for default project.conf variables
---
tests/cachekey/project/elements/variables1.bst | 31 ++++++++++++++++++++++
.../cachekey/project/elements/variables1.expected | 1 +
tests/cachekey/project/target.bst | 1 +
tests/cachekey/project/target.expected | 2 +-
4 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/tests/cachekey/project/elements/variables1.bst b/tests/cachekey/project/elements/variables1.bst
new file mode 100644
index 000000000..dda5ef817
--- /dev/null
+++ b/tests/cachekey/project/elements/variables1.bst
@@ -0,0 +1,31 @@
+#
+# This cache key test attempts to make use of all of the variables
+# in the default project configuration to ensure their stability.
+#
+kind: manual
+sources:
+- kind: local
+ path: files/local
+
+config:
+ build-commands:
+ - echo "%{prefix}"
+ - echo "%{exec_prefix}"
+ - echo "%{bindir}"
+ - echo "%{sbindir}"
+ - echo "%{libexecdir}"
+ - echo "%{datadir}"
+ - echo "%{sysconfdir}"
+ - echo "%{sharedstatedir}"
+ - echo "%{localstatedir}"
+ - echo "%{lib}"
+ - echo "%{libdir}"
+ - echo "%{debugdir}"
+ - echo "%{includedir}"
+ - echo "%{docdir}"
+ - echo "%{infodir}"
+ - echo "%{mandir}"
+ - echo "%{build-root}"
+ - echo "%{conf-root}"
+ - echo "%{install-root}"
+ - echo "%{strip-binaries}"
diff --git a/tests/cachekey/project/elements/variables1.expected b/tests/cachekey/project/elements/variables1.expected
new file mode 100644
index 000000000..823d4d81c
--- /dev/null
+++ b/tests/cachekey/project/elements/variables1.expected
@@ -0,0 +1 @@
+1905948eb76ebc8ff077a8cd1171e5763beca75eabc64981941e297c31f586f6
\ No newline at end of file
diff --git a/tests/cachekey/project/target.bst b/tests/cachekey/project/target.bst
index c65b8ebe1..d068f825b 100644
--- a/tests/cachekey/project/target.bst
+++ b/tests/cachekey/project/target.bst
@@ -22,3 +22,4 @@ depends:
- elements/import2.bst
- elements/import3.bst
- elements/script1.bst
+- elements/variables1.bst
diff --git a/tests/cachekey/project/target.expected b/tests/cachekey/project/target.expected
index 86987672c..524b42a74 100644
--- a/tests/cachekey/project/target.expected
+++ b/tests/cachekey/project/target.expected
@@ -1 +1 @@
-f8c3972e07321cd129fe153d52b976191c334ee1f4ce47fa93c069af23903d6d
\ No newline at end of file
+94d8bb8fa9545152d59e4b9e141feb2c6190576457350cc6335186b024e99967
\ No newline at end of file