mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-09 14:11:35 +00:00
* 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
14 lines
354 B
Bash
Executable File
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
|