diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2018-08-10 19:51:52 +0100 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2018-08-13 01:17:21 +0100 |
commit | c2cc62e75093501fdf0c03087e3ae7df8bf3f4e0 (patch) | |
tree | 293bcf0b1ca191967625fde538b9adbc431ce350 | |
parent | 7a13c83466cd71cb32603c72c404c7664edd5b93 (diff) | |
download | buildstream-c2cc62e75093501fdf0c03087e3ae7df8bf3f4e0.tar.gz |
remote source: Add cachekey test
Add cachekey tests for the recently added `remote` source plugin to
ensure that future changes do not break API compatibility.
-rw-r--r-- | tests/cachekey/project/sources/remote1.bst | 6 | ||||
-rw-r--r-- | tests/cachekey/project/sources/remote1.expected | 1 | ||||
-rw-r--r-- | tests/cachekey/project/sources/remote2.bst | 7 | ||||
-rw-r--r-- | tests/cachekey/project/sources/remote2.expected | 1 | ||||
-rw-r--r-- | tests/cachekey/project/target.bst | 2 | ||||
-rw-r--r-- | tests/cachekey/project/target.expected | 2 |
6 files changed, 18 insertions, 1 deletions
diff --git a/tests/cachekey/project/sources/remote1.bst b/tests/cachekey/project/sources/remote1.bst new file mode 100644 index 000000000..44836faa6 --- /dev/null +++ b/tests/cachekey/project/sources/remote1.bst @@ -0,0 +1,6 @@ +kind: import + +sources: +- kind: remote + url: https://example.com/foo.bar + ref: 6c9f6f68a131ec6381da82f2bff978083ed7f4f7991d931bfa767b7965ebc94b diff --git a/tests/cachekey/project/sources/remote1.expected b/tests/cachekey/project/sources/remote1.expected new file mode 100644 index 000000000..0dfd062aa --- /dev/null +++ b/tests/cachekey/project/sources/remote1.expected @@ -0,0 +1 @@ +f51945f0a4fae358c4587669a725417d969f04ee2c3e5c3440e07492b1c6de77
\ No newline at end of file diff --git a/tests/cachekey/project/sources/remote2.bst b/tests/cachekey/project/sources/remote2.bst new file mode 100644 index 000000000..ef30e8754 --- /dev/null +++ b/tests/cachekey/project/sources/remote2.bst @@ -0,0 +1,7 @@ +kind: import + +sources: +- kind: remote + url: https://example.com/foo.bar + executable: true + ref: 6c9f6f68a131ec6381da82f2bff978083ed7f4f7991d931bfa767b7965ebc94b diff --git a/tests/cachekey/project/sources/remote2.expected b/tests/cachekey/project/sources/remote2.expected new file mode 100644 index 000000000..071c443d6 --- /dev/null +++ b/tests/cachekey/project/sources/remote2.expected @@ -0,0 +1 @@ +f8e6e83e39edc14225e8680852fa1fdb1fc093bdd552e99911006b4329f43293
\ No newline at end of file diff --git a/tests/cachekey/project/target.bst b/tests/cachekey/project/target.bst index 325cd235e..174215a49 100644 --- a/tests/cachekey/project/target.bst +++ b/tests/cachekey/project/target.bst @@ -13,6 +13,8 @@ depends: - sources/patch1.bst - sources/patch2.bst - sources/patch3.bst +- sources/remote1.bst +- sources/remote2.bst - sources/tar1.bst - sources/tar2.bst - sources/zip1.bst diff --git a/tests/cachekey/project/target.expected b/tests/cachekey/project/target.expected index e5847c94e..232d71098 100644 --- a/tests/cachekey/project/target.expected +++ b/tests/cachekey/project/target.expected @@ -1 +1 @@ -0f64d5abf95ea4d5c8e13978e4d8e52fa707a02c9554247ca70a21d7933c4ede
\ No newline at end of file +b11fe7a9883cee2846a6148703b53785dd031482b359ca56d1ff22b08a1b5cd2
\ No newline at end of file |