summaryrefslogtreecommitdiff
path: root/tests/integration/project
diff options
context:
space:
mode:
authorrichardmaw-codethink <richard.maw@codethink.co.uk>2018-09-14 09:46:07 +0000
committerrichardmaw-codethink <richard.maw@codethink.co.uk>2018-09-14 09:46:07 +0000
commitf86ab8f6f5623da2988ab1ea7b83e8a655632177 (patch)
treeb3dd4602f754c9fa242dfc30f3bea6cca3fdb1c7 /tests/integration/project
parentfc7f83ac1d48e4d9684296153082ce32231bdcb0 (diff)
parentf06f234a964b15ed35554739affb43f084d32604 (diff)
downloadbuildstream-f86ab8f6f5623da2988ab1ea7b83e8a655632177.tar.gz
Merge branch 'richardmaw/builddir-sockets' into 'master'
Fix: While caching build artifact: "Cannot extract [path to socket file] into staging-area. Unsupported type." See merge request BuildStream/buildstream!783
Diffstat (limited to 'tests/integration/project')
-rw-r--r--tests/integration/project/elements/sockets/make-builddir-socket.bst14
-rw-r--r--tests/integration/project/elements/sockets/make-install-root-socket.bst16
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/integration/project/elements/sockets/make-builddir-socket.bst b/tests/integration/project/elements/sockets/make-builddir-socket.bst
new file mode 100644
index 000000000..c19cd85b0
--- /dev/null
+++ b/tests/integration/project/elements/sockets/make-builddir-socket.bst
@@ -0,0 +1,14 @@
+kind: manual
+
+depends:
+- filename: base.bst
+ type: build
+
+config:
+ build-commands:
+ - |
+ python3 -c '
+ from socket import socket, AF_UNIX, SOCK_STREAM
+ s = socket(AF_UNIX, SOCK_STREAM)
+ s.bind("testsocket")
+ '
diff --git a/tests/integration/project/elements/sockets/make-install-root-socket.bst b/tests/integration/project/elements/sockets/make-install-root-socket.bst
new file mode 100644
index 000000000..85171bf54
--- /dev/null
+++ b/tests/integration/project/elements/sockets/make-install-root-socket.bst
@@ -0,0 +1,16 @@
+kind: manual
+
+depends:
+- filename: base.bst
+ type: build
+
+config:
+ install-commands:
+ - |
+ python3 -c '
+ from os.path import join
+ from sys import argv
+ from socket import socket, AF_UNIX, SOCK_STREAM
+ s = socket(AF_UNIX, SOCK_STREAM)
+ s.bind(join(argv[1], "testsocket"))
+ ' %{install-root}