Compare commits
10 Commits
63d9fe0f6d
...
0bae3f1059
Author | SHA1 | Date |
---|---|---|
Zbigniew Jędrzejewski-Szmek | 0bae3f1059 | |
milovlad | 150a29122b | |
Lennart Poettering | c024f320ff | |
Luca Boccassi | eb3785f367 | |
Luca Boccassi | 51d56d3be0 | |
Luca Boccassi | 84d9358586 | |
Luca Boccassi | aeac20fc69 | |
Luca Boccassi | 0515e4c17d | |
Luca Boccassi | 53a1c94480 | |
Luca Boccassi | bb64bec589 |
|
@ -580,6 +580,10 @@ sensor:modalias:acpi:SMO8500*:dmi:*:svnMicro-StarInternationalCo.,Ltd.:pnS100:*
|
|||
sensor:modalias:acpi:BOSC0200*:dmi:*:svnCompletElectroServ:pnMY8307:*
|
||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1
|
||||
|
||||
# MY8312
|
||||
sensor:modalias:acpi:KIOX010A*:dmi:*:svnCompletElectroServSA:pnMY8312:*
|
||||
ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, -1, 0; 0, 0, 1
|
||||
|
||||
#########################################
|
||||
# Nuvision (TMax)
|
||||
#########################################
|
||||
|
|
|
@ -596,11 +596,11 @@
|
|||
<varlistentry>
|
||||
<term><varname>Wants=</varname></term>
|
||||
|
||||
<listitem><para>Configures requirement dependencies on other units. This option may be specified more
|
||||
than once or multiple space-separated units may be specified in one option in which case dependencies
|
||||
for all listed names will be created. Dependencies of this type may also be configured outside of the
|
||||
unit configuration file by adding a symlink to a <filename>.wants/</filename> directory accompanying
|
||||
the unit file. For details, see above.</para>
|
||||
<listitem><para>Configures (weak) requirement dependencies on other units. This option may be
|
||||
specified more than once or multiple space-separated units may be specified in one option in which
|
||||
case dependencies for all listed names will be created. Dependencies of this type may also be
|
||||
configured outside of the unit configuration file by adding a symlink to a
|
||||
<filename>.wants/</filename> directory accompanying the unit file. For details, see above.</para>
|
||||
|
||||
<para>Units listed in this option will be started if the configuring unit is. However, if the listed
|
||||
units fail to start or cannot be added to the transaction, this has no impact on the validity of the
|
||||
|
@ -619,7 +619,7 @@
|
|||
<varlistentry>
|
||||
<term><varname>Requires=</varname></term>
|
||||
|
||||
<listitem><para>Similar to <varname>Wants=</varname>, but declares a stronger
|
||||
<listitem><para>Similar to <varname>Wants=</varname>, but declares a stronger requirement
|
||||
dependency. Dependencies of this type may also be configured by adding a symlink to a
|
||||
<filename>.requires/</filename> directory accompanying the unit file.</para>
|
||||
|
||||
|
|
|
@ -47,9 +47,15 @@ Configuration variables
|
|||
TEST_NO_QEMU=1
|
||||
Don't run tests under QEMU
|
||||
|
||||
TEST_QEMU_ONLY=1
|
||||
Run only tests that require QEMU
|
||||
|
||||
TEST_NO_NSPAWN=1
|
||||
Don't run tests under systemd-nspawn
|
||||
|
||||
TEST_PREFER_NSPAWN=1
|
||||
Run all tests that do not require qemu under systemd-nspawn
|
||||
|
||||
TEST_NO_KVM=1
|
||||
Disable QEMU KVM auto-detection (may be necessary when you're trying to run the
|
||||
*vanilla* QEMU and have both qemu and qemu-kvm installed)
|
||||
|
|
|
@ -14,12 +14,12 @@ test_create_image() {
|
|||
(
|
||||
LOG_LEVEL=5
|
||||
setup_basic_environment
|
||||
mask_supporting_services
|
||||
|
||||
# install tests manually so the test is functional even when -Dinstall-tests=false
|
||||
mkdir -p $initdir/usr/lib/systemd/tests/testdata/units/
|
||||
cp -v $(dirname $0)/../units/{testsuite-01,end}.service $initdir/usr/lib/systemd/tests/testdata/units/
|
||||
)
|
||||
setup_nspawn_root
|
||||
}
|
||||
|
||||
do_test "$@" 01
|
||||
|
|
|
@ -10,8 +10,6 @@ fi
|
|||
args_no_clean=$(sed -r 's/\bclean.*\b//g' <<<$args)
|
||||
do_clean=$( [ "$args" = "$args_no_clean" ]; echo $? )
|
||||
|
||||
ninja -C "$BUILD_DIR"
|
||||
|
||||
declare -A results
|
||||
declare -A times
|
||||
|
||||
|
|
|
@ -1058,8 +1058,14 @@ EOF
|
|||
}
|
||||
|
||||
install_user_dbus() {
|
||||
inst $ROOTLIBDIR/user/dbus.socket
|
||||
inst_symlink /usr/lib/systemd/user/sockets.target.wants/dbus.socket || inst_symlink /etc/systemd/user/sockets.target.wants/dbus.socket
|
||||
local userunitdir
|
||||
if ! userunitdir=$(pkg-config --variable=systemduserunitdir systemd); then
|
||||
echo "WARNING! Cannot determine userunitdir from pkg-config, assuming /usr/lib/systemd/user" >&2
|
||||
local userunitdir=/usr/lib/systemd/user
|
||||
fi
|
||||
|
||||
inst $userunitdir/dbus.socket
|
||||
inst_symlink $userunitdir/sockets.target.wants/dbus.socket || inst_symlink /etc/systemd/user/sockets.target.wants/dbus.socket
|
||||
|
||||
# Append the After= dependency on dbus in case it isn't already set up
|
||||
mkdir -p "$initdir/etc/systemd/system/user@.service.d/"
|
||||
|
@ -1069,16 +1075,16 @@ After=dbus.service
|
|||
EOF
|
||||
|
||||
# Newer Fedora versions use dbus-broker by default. Let's install it if it's available.
|
||||
if [ -f $ROOTLIBDIR/user/dbus-broker.service ]; then
|
||||
inst $ROOTLIBDIR/user/dbus-broker.service
|
||||
if [ -f $userunitdir/dbus-broker.service ]; then
|
||||
inst $userunitdir/dbus-broker.service
|
||||
inst_symlink /etc/systemd/user/dbus.service
|
||||
elif [ -f $ROOTLIBDIR/system/dbus-daemon.service ]; then
|
||||
# Fedora rawhide replaced dbus.service with dbus-daemon.service
|
||||
inst $ROOTLIBDIR/user/dbus-daemon.service
|
||||
inst $userunitdir/dbus-daemon.service
|
||||
# Alias symlink
|
||||
inst_symlink /etc/systemd/user/dbus.service
|
||||
else
|
||||
inst $ROOTLIBDIR/user/dbus.service
|
||||
inst $userunitdir/dbus.service
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -1569,7 +1575,7 @@ inst_binary() {
|
|||
# In such cases, let's check if the binary indeed exists in the image
|
||||
# before doing any other chcecks. If it does, immediately return with
|
||||
# success.
|
||||
[[ $# -eq 1 && -e $initdir/$1 ]] && return 0
|
||||
[[ $# -eq 1 && -e $initdir/$1 || -e $initdir/bin/$1 || -e $initdir/sbin/$1 || -e $initdir/usr/bin/$1 || -e $initdir/usr/sbin/$1 ]] && return 0
|
||||
|
||||
_bin=$(find_binary "$1") || return 1
|
||||
_target=${2:-$_bin}
|
||||
|
@ -2101,6 +2107,20 @@ do_test() {
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$TEST_NO_QEMU" ] && [ -n "$TEST_NO_NSPAWN" ]; then
|
||||
echo "TEST: $TEST_DESCRIPTION [SKIPPED]: both QEMU and nspawn disabled" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$TEST_QEMU_ONLY" ] && [ -z "$TEST_NO_NSPAWN" ]; then
|
||||
echo "TEST: $TEST_DESCRIPTION [SKIPPED]: QEMU-only tests requested" >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ -n "$TEST_PREFER_NSPAWN" ] && [ -z "$TEST_NO_NSPAWN" ]; then
|
||||
TEST_NO_QEMU=1
|
||||
fi
|
||||
|
||||
# Detect lib paths
|
||||
[[ $libdir ]] || for libdir in /lib64 /lib; do
|
||||
[[ -d $libdir ]] && libdirs+=" $libdir" && break
|
||||
|
|
Loading…
Reference in New Issue