diff options
Diffstat (limited to 'tests/integration/project')
-rw-r--r-- | tests/integration/project/elements/sockets/make-builddir-socket.bst | 14 | ||||
-rw-r--r-- | tests/integration/project/elements/sockets/make-install-root-socket.bst | 16 |
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} |