summaryrefslogtreecommitdiff
path: root/test/test-functions
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-03-04 01:55:46 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-03-04 01:55:46 +0000
commit45dbd7b6cb772f5c598e830e6c3ed7124a7b41e4 (patch)
treee932d577ca9688517bd0f311c75bc88bc436d255 /test/test-functions
parent9f0cd100d0dbc7c9b55e99bacb4034402a60b389 (diff)
tests: add create_strace_wrapper
Very handy for early-boot debugging See https://github.com/systemd/systemd/pull/2781#discussion_r54782628
Diffstat (limited to 'test/test-functions')
-rw-r--r--test/test-functions11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test-functions b/test/test-functions
index 6667e0524f..b3ca4c3171 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -194,6 +194,17 @@ EOF
chmod 0755 $_valgrind_wrapper
}
+create_strace_wrapper() {
+ local _strace_wrapper=$initdir/$ROOTLIBDIR/systemd-under-strace
+ ddebug "Create $_strace_wrapper"
+ cat >$_strace_wrapper <<EOF
+#!/bin/bash
+
+exec strace -D -o /strace.out $ROOTLIBDIR/systemd "\$@"
+EOF
+ chmod 0755 $_strace_wrapper
+}
+
install_fsck() {
dracut_install /sbin/fsck*
dracut_install -o /bin/fsck*