2 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
3 # ex: ts=8 sw=4 sts=4 et filetype=sh
5 TEST_DESCRIPTION
="UDEV SYSTEMD_WANTS property"
8 .
$TEST_BASE_DIR/test-functions
13 mkdir
-p $TESTDIR/root
14 mount
${LOOPDEV}p1
$TESTDIR/root
18 eval $
(udevadm info
--export --query=env
--name=${LOOPDEV}p2
)
20 setup_basic_environment
22 # mask some services that we do not want to run in these tests
23 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-hwdb-update.service
24 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-journal-catalog-update.service
25 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.service
26 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-networkd.socket
27 ln -s /dev
/null
$initdir/etc
/systemd
/system
/systemd-resolved.service
29 # setup the testsuite service
30 cat >$initdir/etc
/systemd
/system
/testsuite.service
<<EOF
32 Description=Testsuite service
35 ExecStart=/bin/bash -x /testsuite.sh
40 cp testsuite.sh
$initdir/
45 ddebug
"umount $TESTDIR/root"