diff options
Diffstat (limited to 'tests/integration/project')
20 files changed, 146 insertions, 0 deletions
diff --git a/tests/integration/project/elements/autotools/amhello.bst b/tests/integration/project/elements/autotools/amhello.bst new file mode 100644 index 000000000..ee3a029d8 --- /dev/null +++ b/tests/integration/project/elements/autotools/amhello.bst @@ -0,0 +1,10 @@ +kind: autotools +description: Autotools test + +depends: +- base.bst + +sources: +- kind: tar + url: project_dir:/files/amhello.tar.gz + ref: 9ba123fa4e660929e9a0aa99f0c487b7eee59c5e7594f3284d015640b90f5590 diff --git a/tests/integration/project/elements/base.bst b/tests/integration/project/elements/base.bst new file mode 100644 index 000000000..6f2c56fa9 --- /dev/null +++ b/tests/integration/project/elements/base.bst @@ -0,0 +1,6 @@ +# elements/base.bst + +kind: stack +depends: + - base/base-sdk.bst + - base/usermerge.bst diff --git a/tests/integration/project/elements/base/base-sdk.bst b/tests/integration/project/elements/base/base-sdk.bst new file mode 100644 index 000000000..6b7418e99 --- /dev/null +++ b/tests/integration/project/elements/base/base-sdk.bst @@ -0,0 +1,18 @@ +kind: import +description: Import the base freedesktop SDK +(?): + - linux == True: + sources: + - kind: ostree + url: gnomesdk:repo/ + gpg-key: keys/gnome-sdk.gpg + track: runtime/org.freedesktop.BaseSdk/x86_64/1.6 + ref: 48b8c907522d3edeb0fb9f36c6515ce1ef5fb80a6e4e5dd54033b3fd6ad784d0 + - linux == False: + sources: + - kind: tar + url: gnome7:tarballs/gnome-sdk.tar.xz + ref: 96d5062a19fa9ac3439f8a502664f8d46860bad7efd28e7909b03ddbcdbe66e6 +config: + source: files + target: usr diff --git a/tests/integration/project/elements/base/usermerge.bst b/tests/integration/project/elements/base/usermerge.bst new file mode 100644 index 000000000..fb9cffba9 --- /dev/null +++ b/tests/integration/project/elements/base/usermerge.bst @@ -0,0 +1,6 @@ +kind: import +description: Some symlinks for the flatpak runtime environment +sources: + - kind: tar + url: project_dir:/files/usrmerge.tar.xz + ref: 96e4458fafb85c10fe6271ad8839754b6eabeceac8523f8f602dea6470db5961 diff --git a/tests/integration/project/elements/cmake/step7.bst b/tests/integration/project/elements/cmake/step7.bst new file mode 100644 index 000000000..625bb8583 --- /dev/null +++ b/tests/integration/project/elements/cmake/step7.bst @@ -0,0 +1,10 @@ +kind: cmake +description: Cmake test + +depends: + - base.bst + +sources: + - kind: tar + url: project_dir:/files/step7.tar.gz + ref: 9591707afbae77751730b4af4c52a18b1cdc4378237bc64055f099bc95c330db diff --git a/tests/integration/project/elements/compose/amhello.bst b/tests/integration/project/elements/compose/amhello.bst new file mode 100644 index 000000000..bec7e312a --- /dev/null +++ b/tests/integration/project/elements/compose/amhello.bst @@ -0,0 +1,11 @@ +kind: autotools +description: Autotools test + +depends: + - filename: base.bst + type: build + +sources: + - kind: tar + url: project_dir:/files/amhello.tar.gz + ref: 9ba123fa4e660929e9a0aa99f0c487b7eee59c5e7594f3284d015640b90f5590 diff --git a/tests/integration/project/elements/compose/test.bst b/tests/integration/project/elements/compose/test.bst new file mode 100644 index 000000000..870dc7daa --- /dev/null +++ b/tests/integration/project/elements/compose/test.bst @@ -0,0 +1,10 @@ +kind: script + +depends: + - filename: base.bst + type: build + +config: + commands: + - "mkdir -p %{install-root}/tests" + - "echo 'This is a test' > %{install-root}/tests/test" diff --git a/tests/integration/project/elements/script/script-layout.bst b/tests/integration/project/elements/script/script-layout.bst new file mode 100644 index 000000000..11ca353e3 --- /dev/null +++ b/tests/integration/project/elements/script/script-layout.bst @@ -0,0 +1,23 @@ +kind: script +description: Write to root using a script element + +variables: + install-root: /buildstream/nstall + build-root: /buildstream/uild + +depends: + - filename: base.bst + type: build + - filename: script/script.bst + type: build + +config: + layout: + - element: base.bst + destination: / + + - element: script/script.bst + destination: /buildstream/uild + + commands: + - "cp %{build-root}/test %{install-root}" diff --git a/tests/integration/project/elements/script/script.bst b/tests/integration/project/elements/script/script.bst new file mode 100644 index 000000000..ffca23ab7 --- /dev/null +++ b/tests/integration/project/elements/script/script.bst @@ -0,0 +1,10 @@ +kind: script +description: Script test + +depends: + - filename: base.bst + type: build + +config: + commands: + - "echo 'Hi' > %{install-root}/test" diff --git a/tests/integration/project/elements/stack/another-hi.bst b/tests/integration/project/elements/stack/another-hi.bst new file mode 100644 index 000000000..eb98dea36 --- /dev/null +++ b/tests/integration/project/elements/stack/another-hi.bst @@ -0,0 +1,11 @@ +kind: script +description: Another hi test + +depends: + - filename: base.bst + type: build + +config: + commands: + - "mkdir -p /buildstream/install" + - "echo 'Another hi' > /buildstream/install/another-hi" diff --git a/tests/integration/project/elements/stack/hi.bst b/tests/integration/project/elements/stack/hi.bst new file mode 100644 index 000000000..adbf81537 --- /dev/null +++ b/tests/integration/project/elements/stack/hi.bst @@ -0,0 +1,8 @@ +kind: script +depends: + - filename: base.bst + type: build +config: + commands: + - "mkdir -p /buildstream/install" + - "echo 'Hi' > /buildstream/install/hi" diff --git a/tests/integration/project/elements/stack/stack.bst b/tests/integration/project/elements/stack/stack.bst new file mode 100644 index 000000000..bbfc31ad4 --- /dev/null +++ b/tests/integration/project/elements/stack/stack.bst @@ -0,0 +1,5 @@ +kind: stack +description: Stack test +depends: + - stack/hi.bst + - stack/another-hi.bst diff --git a/tests/integration/project/files/amhello.tar.gz b/tests/integration/project/files/amhello.tar.gz Binary files differnew file mode 100644 index 000000000..afe189908 --- /dev/null +++ b/tests/integration/project/files/amhello.tar.gz diff --git a/tests/integration/project/files/hello.tar.xz b/tests/integration/project/files/hello.tar.xz Binary files differnew file mode 100644 index 000000000..72ec9b399 --- /dev/null +++ b/tests/integration/project/files/hello.tar.xz diff --git a/tests/integration/project/files/import-source/subdir/test.txt b/tests/integration/project/files/import-source/subdir/test.txt new file mode 100644 index 000000000..d73906c87 --- /dev/null +++ b/tests/integration/project/files/import-source/subdir/test.txt @@ -0,0 +1 @@ +This is another test diff --git a/tests/integration/project/files/import-source/test.txt b/tests/integration/project/files/import-source/test.txt new file mode 100644 index 000000000..0527e6bd2 --- /dev/null +++ b/tests/integration/project/files/import-source/test.txt @@ -0,0 +1 @@ +This is a test diff --git a/tests/integration/project/files/step7.tar.gz b/tests/integration/project/files/step7.tar.gz Binary files differnew file mode 100644 index 000000000..f9643afce --- /dev/null +++ b/tests/integration/project/files/step7.tar.gz diff --git a/tests/integration/project/files/usrmerge.tar.xz b/tests/integration/project/files/usrmerge.tar.xz Binary files differnew file mode 100644 index 000000000..e54fbbb43 --- /dev/null +++ b/tests/integration/project/files/usrmerge.tar.xz diff --git a/tests/integration/project/keys/gnome-sdk.gpg b/tests/integration/project/keys/gnome-sdk.gpg Binary files differnew file mode 100644 index 000000000..8434b686c --- /dev/null +++ b/tests/integration/project/keys/gnome-sdk.gpg diff --git a/tests/integration/project/project.conf b/tests/integration/project/project.conf new file mode 100644 index 000000000..a677129fb --- /dev/null +++ b/tests/integration/project/project.conf @@ -0,0 +1,16 @@ +# Project config for frontend build test +name: test +element-path: elements +aliases: + gnome7: https://gnome7.codethink.co.uk/ + gnomesdk: https://sdk.gnome.org/ + project_dir: file://{project_dir} +options: + linux: + type: bool + description: Whether to expect a linux platform + default: True +split-rules: + test: + - | + /tests/* |