2023-07-21 15:36:22 +02:00
|
|
|
*** nm-in-vm:
|
|
|
|
|
|
|
|
|
|
find NetworkManager bind mounted at {{BASEDIR_NM}}
|
|
|
|
|
run `nm-env-prepare.sh setup --idx 1` to setup test interfaces
|
|
|
|
|
|
|
|
|
|
For example, configure NetworkManager with
|
|
|
|
|
$ ./configure \
|
|
|
|
|
--enable-address-sanitizer=no \
|
|
|
|
|
--enable-compile-warnings=yes \
|
|
|
|
|
--enable-concheck \
|
|
|
|
|
--enable-config-plugin-ibft=yes \
|
|
|
|
|
--enable-gtk-doc \
|
|
|
|
|
--enable-ifcfg-rh=yes \
|
|
|
|
|
--enable-ifcfg-suse \
|
|
|
|
|
--enable-ifnet \
|
|
|
|
|
--enable-ifupdown=yes \
|
|
|
|
|
--enable-introspection \
|
|
|
|
|
--enable-json-validation=yes \
|
|
|
|
|
--enable-maintainer-mode \
|
|
|
|
|
--enable-more-logging \
|
|
|
|
|
--enable-more-warnings=error \
|
|
|
|
|
--enable-ovs=yes \
|
|
|
|
|
--enable-polkit=yes \
|
|
|
|
|
--enable-teamdctl=yes \
|
|
|
|
|
--enable-undefined-sanitizer=no \
|
|
|
|
|
--enable-vala=yes \
|
|
|
|
|
--enable-wimax \
|
|
|
|
|
--localstatedir=/var \
|
|
|
|
|
--prefix=/opt/test \
|
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
|
--with-config-dhcp-default=internal \
|
|
|
|
|
--with-config-dns-rc-manager-default=auto \
|
|
|
|
|
--with-consolekit=yes \
|
|
|
|
|
--with-consolekit=yes \
|
|
|
|
|
--with-crypto=nss \
|
|
|
|
|
--with-dhclient=yes \
|
|
|
|
|
--with-dhcpcanon=yes \
|
|
|
|
|
--with-dhcpcd=yes \
|
|
|
|
|
--with-iwd=yes \
|
|
|
|
|
--with-libnm-glib=yes \
|
|
|
|
|
--with-modem-manager-1 \
|
|
|
|
|
--with-netconfig=/bin/nowhere/netconfig \
|
|
|
|
|
--with-nm-cloud-setup=yes \
|
|
|
|
|
--with-nmcli=yes \
|
|
|
|
|
--with-nmtui=yes \
|
|
|
|
|
--with-ofono=yes \
|
|
|
|
|
--with-resolvconf=/bin/nowhere/resolvconf \
|
|
|
|
|
--with-session-tracking=systemd \
|
|
|
|
|
--with-suspend-resume=systemd \
|
|
|
|
|
--with-systemd-logind=yes \
|
|
|
|
|
--with-valgrind=yes \
|
|
|
|
|
--enable-tests="${NM_BUILD_TESTS:-yes}" \
|
|
|
|
|
--with-more-asserts="${NM_BUILD_MORE_ASSERTS:-1000}" \
|
|
|
|
|
"${NM_CONFIGURE_OTPS[@]}"
|
|
|
|
|
Test with:
|
|
|
|
|
$ systemctl stop NetworkManager; /opt/test/sbin/NetworkManager --debug 2>&1 | tee -a /tmp/nm-log.txt
|
|
|
|
|
|
2023-08-31 11:21:12 +02:00
|
|
|
Or better, if using Fedora, configure with `contrib/fedora/rpm/configure-for-system.sh`,
|
2023-07-21 15:36:22 +02:00
|
|
|
subsequent `make && make install` will overwrite your system's NetworkManager,
|
|
|
|
|
and you can test it with `systemctl daemon-reload ; systemctl restart NetworkManager`.
|
|
|
|
|
|
|
|
|
|
Run NM-ci tests after creating eth1 with
|
|
|
|
|
`nm-env-prepare.sh --prefix eth -i 1 && sleep 1 && nmcli device connect eth1`.
|