fwupd/debian/tests/ci
Richard Hughes b59c82e1bd Add support for emulating and recording devices
Based on patches from Frédéric Danis <frederic.danis@collabora.com>
2023-02-23 13:04:11 -06:00

13 lines
494 B
Bash
Executable File

#!/bin/sh
set -e
# try loading the mtdram module to run our mtd tests
modprobe mtdram 2>&1 || true
sed "s,^DisabledPlugins=.*,DisabledPlugins=," -i /etc/fwupd/daemon.conf
sed "s,^VerboseDomains=.*,VerboseDomains=*," -i /etc/fwupd/daemon.conf
sed "s,^AllowEmulation=false,AllowEmulation=true," -i /etc/fwupd/daemon.conf
sed "s,ConditionVirtualization=.*,," \
/lib/systemd/system/fwupd.service > \
/etc/systemd/system/fwupd.service
systemctl daemon-reload
gnome-desktop-testing-runner fwupd