summaryrefslogtreecommitdiff
path: root/integration-tests/compose-test/elements
diff options
context:
space:
mode:
Diffstat (limited to 'integration-tests/compose-test/elements')
-rw-r--r--integration-tests/compose-test/elements/compose-all-test.bst16
-rw-r--r--integration-tests/compose-test/elements/compose-exclude-debug.bst11
-rw-r--r--integration-tests/compose-test/elements/compose-no-debug.bst14
-rw-r--r--integration-tests/compose-test/elements/compose-no-devel.bst14
-rw-r--r--integration-tests/compose-test/elements/compose-no-doc.bst14
-rw-r--r--integration-tests/compose-test/elements/compose-no-locale.bst14
-rw-r--r--integration-tests/compose-test/elements/compose-no-test.bst15
-rw-r--r--integration-tests/compose-test/elements/compose-only-runtime.bst9
-rw-r--r--integration-tests/compose-test/elements/dependencies/amhello-run.bst14
-rw-r--r--integration-tests/compose-test/elements/dependencies/amhello.bst13
-rw-r--r--integration-tests/compose-test/elements/dependencies/base-platform.bst23
-rw-r--r--integration-tests/compose-test/elements/dependencies/base-sdk.bst20
-rw-r--r--integration-tests/compose-test/elements/dependencies/devel-run.bst11
-rw-r--r--integration-tests/compose-test/elements/dependencies/locale-run.bst11
14 files changed, 199 insertions, 0 deletions
diff --git a/integration-tests/compose-test/elements/compose-all-test.bst b/integration-tests/compose-test/elements/compose-all-test.bst
new file mode 100644
index 000000000..78ce497c5
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-all-test.bst
@@ -0,0 +1,16 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/amhello-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - devel
+ - debug
+ - doc
+ - locale
+ - test
diff --git a/integration-tests/compose-test/elements/compose-exclude-debug.bst b/integration-tests/compose-test/elements/compose-exclude-debug.bst
new file mode 100644
index 000000000..6291b349e
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-exclude-debug.bst
@@ -0,0 +1,11 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/amhello-run.bst
+ type: build
+
+config:
+ exclude:
+ - debug
diff --git a/integration-tests/compose-test/elements/compose-no-debug.bst b/integration-tests/compose-test/elements/compose-no-debug.bst
new file mode 100644
index 000000000..5a6517d09
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-no-debug.bst
@@ -0,0 +1,14 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/amhello-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - devel
+ - doc
+ - locale
diff --git a/integration-tests/compose-test/elements/compose-no-devel.bst b/integration-tests/compose-test/elements/compose-no-devel.bst
new file mode 100644
index 000000000..f13f01b88
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-no-devel.bst
@@ -0,0 +1,14 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/devel-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - debug
+ - doc
+ - locale
diff --git a/integration-tests/compose-test/elements/compose-no-doc.bst b/integration-tests/compose-test/elements/compose-no-doc.bst
new file mode 100644
index 000000000..6c47b851b
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-no-doc.bst
@@ -0,0 +1,14 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/amhello-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - devel
+ - debug
+ - locale
diff --git a/integration-tests/compose-test/elements/compose-no-locale.bst b/integration-tests/compose-test/elements/compose-no-locale.bst
new file mode 100644
index 000000000..9e3d62e05
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-no-locale.bst
@@ -0,0 +1,14 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/locale-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - devel
+ - debug
+ - doc
diff --git a/integration-tests/compose-test/elements/compose-no-test.bst b/integration-tests/compose-test/elements/compose-no-test.bst
new file mode 100644
index 000000000..418c2d475
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-no-test.bst
@@ -0,0 +1,15 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+ - filename: dependencies/amhello-run.bst
+ type: build
+
+config:
+ include:
+ - runtime
+ - devel
+ - debug
+ - doc
+ - locale
diff --git a/integration-tests/compose-test/elements/compose-only-runtime.bst b/integration-tests/compose-test/elements/compose-only-runtime.bst
new file mode 100644
index 000000000..401c16dc8
--- /dev/null
+++ b/integration-tests/compose-test/elements/compose-only-runtime.bst
@@ -0,0 +1,9 @@
+kind: compose
+
+depends:
+ - filename: dependencies/amhello.bst
+ type: build
+
+config:
+ include:
+ - runtime
diff --git a/integration-tests/compose-test/elements/dependencies/amhello-run.bst b/integration-tests/compose-test/elements/dependencies/amhello-run.bst
new file mode 100644
index 000000000..a6162155b
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/amhello-run.bst
@@ -0,0 +1,14 @@
+kind: script
+description: Run autotools-built binary
+
+depends:
+ - filename: dependencies/base-platform.bst
+ type: build
+ - filename: dependencies/amhello.bst
+ type: build
+
+config:
+ commands:
+ - "mkdir -p /buildstream/install/tests"
+ - "/usr/bin/hello > /buildstream/install/tests/test"
+ - "echo BLABLABLA %{debugdir} >> /buildstream/install/tests/test"
diff --git a/integration-tests/compose-test/elements/dependencies/amhello.bst b/integration-tests/compose-test/elements/dependencies/amhello.bst
new file mode 100644
index 000000000..2e0915803
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/amhello.bst
@@ -0,0 +1,13 @@
+kind: autotools
+description: Autotools test
+
+depends:
+- filename: dependencies/base-platform.bst
+ type: build
+- filename: dependencies/base-sdk.bst
+ type: build
+
+sources:
+- kind: tar
+ url: file:///home/tristanmaat/Documents/Projects/buildstream/buildstream-tests/compose-test/src/amhello.tar.gz
+ ref: 3aa3c2bf7a488fea24303c4d98d1b5c0a72734f61615b935cf62e4e126b127d2
diff --git a/integration-tests/compose-test/elements/dependencies/base-platform.bst b/integration-tests/compose-test/elements/dependencies/base-platform.bst
new file mode 100644
index 000000000..09c95acb4
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/base-platform.bst
@@ -0,0 +1,23 @@
+kind: import
+description: Import the base freedesktop platform
+config:
+ source: files
+public:
+ bst:
+ integration-commands:
+ - ldconfig
+arches:
+ x86_64:
+ sources:
+ - kind: ostree
+ url: gnomesdk:repo/
+ track: runtime/org.freedesktop.BasePlatform/x86_64/1.4
+ gpg-key: keys/gnome-sdk.gpg
+ ref: c9d09b7250a12ef09d95952fc4f49a35e5f8c2c1dd7141b7eeada4069e6f6576
+ i386:
+ sources:
+ - kind: ostree
+ url: gnomesdk:repo/
+ track: runtime/org.freedesktop.BasePlatform/i386/1.4
+ gpg-key: keys/gnome-sdk.gpg
+ ref: 27ebae91839a454596a273391b0e53063eaa8aca4fc9cb64654582bfbc338c96
diff --git a/integration-tests/compose-test/elements/dependencies/base-sdk.bst b/integration-tests/compose-test/elements/dependencies/base-sdk.bst
new file mode 100644
index 000000000..cd191fd1b
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/base-sdk.bst
@@ -0,0 +1,20 @@
+kind: import
+description: Import the base freedesktop SDK
+config:
+ source: files
+ target: usr
+arches:
+ x86_64:
+ sources:
+ - kind: ostree
+ url: gnomesdk:repo/
+ track: runtime/org.freedesktop.BaseSdk/x86_64/1.4
+ gpg-key: keys/gnome-sdk.gpg
+ ref: 0d9d255d56b08aeaaffb1c820eef85266eb730cb5667e50681185ccf5cd7c882
+ i386:
+ sources:
+ - kind: ostree
+ url: gnomesdk:repo/
+ track: runtime/org.freedesktop.BaseSdk/i386/1.4
+ gpg-key: keys/gnome-sdk.gpg
+ ref: 16036b747c1ec8e7fe291f5b1f667cb942f0267d08fcad962e9b7627d6cf1981
diff --git a/integration-tests/compose-test/elements/dependencies/devel-run.bst b/integration-tests/compose-test/elements/dependencies/devel-run.bst
new file mode 100644
index 000000000..4134fec81
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/devel-run.bst
@@ -0,0 +1,11 @@
+kind: script
+description: Run autotools-built binary
+
+depends:
+ - filename: dependencies/base-platform.bst
+ type: build
+
+config:
+ commands:
+ - "mkdir -p /buildstream/install%{includedir}"
+ - "echo 'You should never see this file!' > /buildstream/install%{includedir}/broken"
diff --git a/integration-tests/compose-test/elements/dependencies/locale-run.bst b/integration-tests/compose-test/elements/dependencies/locale-run.bst
new file mode 100644
index 000000000..52aed047d
--- /dev/null
+++ b/integration-tests/compose-test/elements/dependencies/locale-run.bst
@@ -0,0 +1,11 @@
+kind: script
+description: Run autotools-built binary
+
+depends:
+ - filename: dependencies/base-platform.bst
+ type: build
+
+config:
+ commands:
+ - "mkdir -p /buildstream/install%{datadir}/locale"
+ - "echo 'You should never see this file!' > /buildstream/install%{datadir}/locale/broken"