libqb/tests/start.test
Chrissie Caulfield 78df90b180
tests: Run IPC with use-filesystem-sockets active (#455)
* tests: Run IPC with use-filesystem-sockets active

Provide an LD_PRELOAD library that simulates the presence
of /etc/libqb/use-filesystem-sockets so that we can test
that functionality without actually having the file on
the system and affecting everything else running on the
box.

* use $() rather than ``

* Cope with spaces in directory names

* Docs: quote DOXYGEN2MAN in Makefile.am rather than configure.ac
2022-03-21 09:10:35 +00:00

14 lines
354 B
Bash
Executable File

#!/bin/sh
#
# Generate a unique(ish) name for the IPCs we will use in the tests and
# save it in a file for all of the tests to use. This way we know for sure
# which sockets are our and which we can ignore.
# The test programs all add "qb-test-<name>-" to the front of this.
#
NAME="$$-$(date +%s)"
printf "$NAME" > ipc-test-name
mkdir -p $SOCKETDIR