summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTristan van Berkom <tristan@codethink.co.uk>2020-09-11 14:38:24 +0900
committerTristan van Berkom <tristan@codethink.co.uk>2020-09-18 12:38:49 +0900
commit055e5314d0b36fd33bae9f5e3ba4f5fd753ecdc2 (patch)
tree55caf5acfd02f04805c6089d525ca93b612ff0b2 /tests
parent320a51e9b53e0b22e76be3da5839e4e3a9da4c00 (diff)
downloadbuildstream-055e5314d0b36fd33bae9f5e3ba4f5fd753ecdc2.tar.gz
tests/cachekey: Added new cachekey test for new BuildElement configuration
Diffstat (limited to 'tests')
-rw-r--r--tests/cachekey/project/elements/build3.bst13
-rw-r--r--tests/cachekey/project/elements/build3.expected1
-rw-r--r--tests/cachekey/project/target.bst1
-rw-r--r--tests/cachekey/project/target.expected2
4 files changed, 16 insertions, 1 deletions
diff --git a/tests/cachekey/project/elements/build3.bst b/tests/cachekey/project/elements/build3.bst
new file mode 100644
index 000000000..e1422862f
--- /dev/null
+++ b/tests/cachekey/project/elements/build3.bst
@@ -0,0 +1,13 @@
+# This tests that staging into an alternative
+# prefix affects the cache key
+#
+kind: manual
+sources:
+- kind: local
+ path: files/local
+
+depends:
+- elements/build1.bst
+- filename: elements/build1.bst
+ config:
+ location: /opt
diff --git a/tests/cachekey/project/elements/build3.expected b/tests/cachekey/project/elements/build3.expected
new file mode 100644
index 000000000..7b3aabe9f
--- /dev/null
+++ b/tests/cachekey/project/elements/build3.expected
@@ -0,0 +1 @@
+c8bae677ec6af58543e4b779a295c9f6bee0c1eface38d9be62a66c247a68ba5 \ No newline at end of file
diff --git a/tests/cachekey/project/target.bst b/tests/cachekey/project/target.bst
index cabf3f7bf..30f8660a6 100644
--- a/tests/cachekey/project/target.bst
+++ b/tests/cachekey/project/target.bst
@@ -22,6 +22,7 @@ depends:
- sources/zip2.bst
- elements/build1.bst
- elements/build2.bst
+- elements/build3.bst
- elements/compose1.bst
- elements/compose2.bst
- elements/compose3.bst
diff --git a/tests/cachekey/project/target.expected b/tests/cachekey/project/target.expected
index cdffef609..9ea9991e9 100644
--- a/tests/cachekey/project/target.expected
+++ b/tests/cachekey/project/target.expected
@@ -1 +1 @@
-19f1ae47ae0ab8883ff17c89f4c323ac0ef1e28b35d369c8a398350de60ca0eb \ No newline at end of file
+cb3b1bbf3d8b7be1a0ee7305c1056e95225f84b2c2b5189cfee69a66dcbd0786 \ No newline at end of file