diff options
author | William Salmon <will.salmon@codethink.co.uk> | 2019-06-10 11:50:20 +0100 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-07-12 06:57:52 +0000 |
commit | f8da4743c5d5b4785d646d06f8c6d271776794ae (patch) | |
tree | b98a40036259a54ea8efa4971c9d0b82c45dbdac /tests/sandboxes/project | |
parent | 33272aa7764c03f7d0b3a7b36f08636f883c3e69 (diff) | |
download | buildstream-willsalmon/platformRefactor.tar.gz |
test for BST_FORCE_SANDBOX and BST_FORCE_BACKENDwillsalmon/platformRefactor
Diffstat (limited to 'tests/sandboxes/project')
-rw-r--r-- | tests/sandboxes/project/elements/base.bst | 5 | ||||
-rw-r--r-- | tests/sandboxes/project/elements/base/base-alpine.bst | 17 | ||||
-rw-r--r-- | tests/sandboxes/project/elements/import-file1.bst | 5 | ||||
-rw-r--r-- | tests/sandboxes/project/files/file1.txt | 0 | ||||
-rw-r--r-- | tests/sandboxes/project/project.conf | 23 |
5 files changed, 50 insertions, 0 deletions
diff --git a/tests/sandboxes/project/elements/base.bst b/tests/sandboxes/project/elements/base.bst new file mode 100644 index 000000000..428afa736 --- /dev/null +++ b/tests/sandboxes/project/elements/base.bst @@ -0,0 +1,5 @@ +# elements/base.bst + +kind: stack +depends: + - base/base-alpine.bst diff --git a/tests/sandboxes/project/elements/base/base-alpine.bst b/tests/sandboxes/project/elements/base/base-alpine.bst new file mode 100644 index 000000000..c5833095d --- /dev/null +++ b/tests/sandboxes/project/elements/base/base-alpine.bst @@ -0,0 +1,17 @@ +kind: import + +description: | + Alpine Linux base for tests + + Generated using the `tests/integration-tests/base/generate-base.sh` script. + +sources: + - kind: tar + base-dir: '' + (?): + - arch == "x86-64": + ref: 3eb559250ba82b64a68d86d0636a6b127aa5f6d25d3601a79f79214dc9703639 + url: "alpine:integration-tests-base.v1.x86_64.tar.xz" + - arch == "aarch64": + ref: 431fb5362032ede6f172e70a3258354a8fd71fcbdeb1edebc0e20968c792329a + url: "alpine:integration-tests-base.v1.aarch64.tar.xz" diff --git a/tests/sandboxes/project/elements/import-file1.bst b/tests/sandboxes/project/elements/import-file1.bst new file mode 100644 index 000000000..a729ba03d --- /dev/null +++ b/tests/sandboxes/project/elements/import-file1.bst @@ -0,0 +1,5 @@ +kind: import +description: This is the test element +sources: +- kind: local + path: files/file1.txt diff --git a/tests/sandboxes/project/files/file1.txt b/tests/sandboxes/project/files/file1.txt new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/sandboxes/project/files/file1.txt diff --git a/tests/sandboxes/project/project.conf b/tests/sandboxes/project/project.conf new file mode 100644 index 000000000..ddfe47b6d --- /dev/null +++ b/tests/sandboxes/project/project.conf @@ -0,0 +1,23 @@ +# Project config for frontend build test +name: test +element-path: elements +aliases: + alpine: https://bst-integration-test-images.ams3.cdn.digitaloceanspaces.com/ + project_dir: file://{project_dir} +options: + linux: + type: bool + description: Whether to expect a linux platform + default: True + arch: + type: arch + description: Current architecture + values: + - x86-64 + - aarch64 +split-rules: + test: + - | + /tests + - | + /tests/* |