summaryrefslogtreecommitdiffstats
path: root/tests/helpers
diff options
context:
space:
mode:
authorKarel Zak2015-04-24 17:09:17 +0200
committerKarel Zak2015-04-24 17:09:17 +0200
commit28f47fd2e0cc76ea2dafd0bd384d8586d4c901e3 (patch)
treee495a11a92b90c2e7ebd98248f2fff9a0129aeb9 /tests/helpers
parenttest_uuidd: add pid, tid and idx back to object (diff)
downloadkernel-qcow2-util-linux-28f47fd2e0cc76ea2dafd0bd384d8586d4c901e3.tar.gz
kernel-qcow2-util-linux-28f47fd2e0cc76ea2dafd0bd384d8586d4c901e3.tar.xz
kernel-qcow2-util-linux-28f47fd2e0cc76ea2dafd0bd384d8586d4c901e3.zip
test_uuidd: add comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/helpers')
-rw-r--r--tests/helpers/test_uuidd.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/helpers/test_uuidd.c b/tests/helpers/test_uuidd.c
index f098c4ac4..1262e359d 100644
--- a/tests/helpers/test_uuidd.c
+++ b/tests/helpers/test_uuidd.c
@@ -5,6 +5,23 @@
* SAP Technology Group
*
* Copyright (C) 2015 Karel Zak <kzak@redhat.com>
+ *
+ *
+ * The test heavily uses shared memory, to enlarge maximal size of shared
+ * segment use:
+ *
+ * echo "4294967295" > /proc/sys/kernel/shmm
+ *
+ * The test is compiled against in-tree libuuid, if you want to test uuidd
+ * installed to the system then make sure that libuuid uses the same socket
+ * like the running uuidd. You can start the uuidd manually, for example:
+ *
+ * uuidd --debug --no-fork --no-pid --socket /run/uuidd/request
+ *
+ * if the $localstatedir (as defined by build-system) is /run. If you want
+ * to overwrite the built-in default then use:
+ *
+ * make uuidd uuidgen localstatedir=/var
*/
#include <error.h>
#include <libgen.h>