summaryrefslogtreecommitdiff
path: root/tests/integration/project
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2018-10-09 16:36:08 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2018-11-14 13:30:34 +0000
commit90ca007ef3e97ff7d19ec96e8833c5c005f59b11 (patch)
tree9e5050319825003ab6fe0ccb6fe6535736739701 /tests/integration/project
parente9e088239b178b28a9916407cb6804941095eb26 (diff)
downloadbuildstream-90ca007ef3e97ff7d19ec96e8833c5c005f59b11.tar.gz
tests/integration/sandbox-bwrap.py: Test distinguishing sandbox exit code from command
Diffstat (limited to 'tests/integration/project')
-rw-r--r--tests/integration/project/elements/sandbox-bwrap/break-shell.bst9
-rw-r--r--tests/integration/project/elements/sandbox-bwrap/command-exit-42.bst8
-rw-r--r--tests/integration/project/elements/sandbox-bwrap/non-executable-shell.bst9
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/integration/project/elements/sandbox-bwrap/break-shell.bst b/tests/integration/project/elements/sandbox-bwrap/break-shell.bst
new file mode 100644
index 000000000..c93a92350
--- /dev/null
+++ b/tests/integration/project/elements/sandbox-bwrap/break-shell.bst
@@ -0,0 +1,9 @@
+kind: manual
+depends:
+ - base/base-alpine.bst
+
+public:
+ bst:
+ integration-commands:
+ - |
+ chmod a-x /bin/sh
diff --git a/tests/integration/project/elements/sandbox-bwrap/command-exit-42.bst b/tests/integration/project/elements/sandbox-bwrap/command-exit-42.bst
new file mode 100644
index 000000000..c633334ae
--- /dev/null
+++ b/tests/integration/project/elements/sandbox-bwrap/command-exit-42.bst
@@ -0,0 +1,8 @@
+kind: manual
+depends:
+ - base/base-alpine.bst
+
+config:
+ build-commands:
+ - |
+ exit 42
diff --git a/tests/integration/project/elements/sandbox-bwrap/non-executable-shell.bst b/tests/integration/project/elements/sandbox-bwrap/non-executable-shell.bst
new file mode 100644
index 000000000..a57177bb3
--- /dev/null
+++ b/tests/integration/project/elements/sandbox-bwrap/non-executable-shell.bst
@@ -0,0 +1,9 @@
+kind: manual
+
+depends:
+ - sandbox-bwrap/break-shell.bst
+
+config:
+ build-commands:
+ - |
+ exit 42