diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-02 16:25:03 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-08-05 15:13:38 +0200 |
commit | af153e36ae67c242251951c12d6d6b6ae4783845 (patch) | |
tree | ddd998cf6aab5eafe6791f17bdb7ad6daef07441 /test/meson.build | |
parent | mkosi: Switch back to btrfs (diff) | |
download | systemd-af153e36ae67c242251951c12d6d6b6ae4783845.tar.xz systemd-af153e36ae67c242251951c12d6d6b6ae4783845.zip |
test: Add a way to quickly iterate on an integration test
Rebuilding the integration test every time is very slow. Let's
introduce a way to iterate on an integration test without rebuilding
the image every time. By making a btrfs snapshot before we run the
integration test, we can then systemctl soft-reboot after running
the test to restore the rootfs to a pristine state before running
the test again.
As /run/nextroot will get nuked on reboot or soft-reboot, we introduce
a tmpfiles snippet to make sure it is recreated every (soft-)reboot
and adapt the existing tests to deal with this new symlink.
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/meson.build b/test/meson.build index 173d90cc8e..6acff37508 100644 --- a/test/meson.build +++ b/test/meson.build @@ -142,9 +142,11 @@ endif ############################################################ if install_tests - install_data('run-unit-tests.py', - install_mode : 'rwxr-xr-x', - install_dir : testsdir) + foreach script : ['integration-test-setup.sh', 'run-unit-tests.py'] + install_data(script, + install_mode : 'rwxr-xr-x', + install_dir : testsdir) + endforeach endif ############################################################ |