ostree/tests
Timothée Ravier 508a8b61ac bootloader/grub2: Handle empty static configs
In #3205, we introduced a check to skip re-generating the GRUB config if
we detect that static configs are in used by looking at bootupd's state.

Unfortunately this check is incomplete and does not account for present
but null entries in the JSON state file.

A proper fix would be to parse the JSON but this requires a larger code
change.

Fixes: https://github.com/ostreedev/ostree/issues/3295
Fixes: https://github.com/ostreedev/ostree/pull/3205
2024-09-14 00:34:24 +02:00
..
coccinelle Add Coccinelle usage: one for blacklisting, one for patch collection 2017-03-30 19:19:54 +00:00
gpg-verify-data tests/gpg-verify-data: Empty out trustdb.gpg 2020-01-24 13:02:09 -07:00
gpghome tests/gpghome: Create revocation certificates for keys 2020-01-24 13:02:09 -07:00
inst prepare-root: Add ostree.prepare-root.composefs 2024-07-11 17:04:09 -04:00
kolainst bootloader/grub2: Handle empty static configs 2024-09-14 00:34:24 +02:00
.gitignore Add an API to verify a commit signature explicitly 2021-08-30 13:27:38 -04:00
admin-test.sh sysroot: Handle /ostree/deploy having epoch 0 2024-05-15 09:59:50 -04:00
archive-test.sh When exporting, use hardlinks for duplicated files 2023-09-29 13:45:29 -04:00
bare-split-xattrs-basic.tar.xz tests: move fixture to fix installed tests 2022-04-12 09:53:54 +00:00
basic-test.sh checkout: Always replace existing content in overlay mode 2024-03-13 14:07:54 -04:00
bootloader-entries-crosscheck.py Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
coccinelle.sh Add Coccinelle usage: one for blacklisting, one for patch collection 2017-03-30 19:19:54 +00:00
corrupt-repo-ref.js Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
fah-deltadata-new.tar.xz tests: Add a "pull-test2" that uses slightly more realistic content 2017-11-01 17:38:26 +00:00
fah-deltadata-old.tar.xz tests: Add a "pull-test2" that uses slightly more realistic content 2017-11-01 17:38:26 +00:00
get-byte-order.c tests: Assert that byte-order is swapped on LE but not BE CPUs 2018-01-04 12:32:47 +00:00
glib.supp glib.supp: Suppress g_task -> thread leaks 2016-07-28 10:10:17 +00:00
grub2-entries-crosscheck.py Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
libostreetest.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
libostreetest.h tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
libtest-core.sh tests/kolainst: Avoid recursive symlinks 2022-01-25 16:44:39 -05:00
libtest.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
ostree-grub-generator Introducing ostree-grub-generator 2016-04-04 14:19:35 +00:00
ostree-path-traverse.tar.gz tests: Add a test case for path traversal in a dirtree 2018-01-12 19:38:34 +00:00
ostree.supp tests: Modernize valgrind infrastructure 2016-06-09 21:10:35 +00:00
pre-endian-deltas-repo-big.tar.xz deltas: Heuristically detect endianness for older deltas 2016-02-26 08:19:01 -05:00
pre-endian-deltas-repo-little.tar.xz deltas: Heuristically detect endianness for older deltas 2016-02-26 08:19:01 -05:00
pre-signed-pull-data.tar.gz tests: Add a pre-signed-pull.sh test 2020-06-11 18:56:35 +00:00
pull-test2.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
pull-test.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
repo-finder-mount.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
run-installed tests/inst: Make nondestructive tests runnable as unit tests 2021-04-15 12:33:34 -04:00
runkola Add new Rust-based tests 2020-05-27 21:59:23 +00:00
test-admin-deploy-2.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-deploy-bootid-gc.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-bootprefix.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-deploy-clean.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-composefs.sh tests: Skip composefs tests without the feature 2024-04-12 16:16:21 -04:00
test-admin-deploy-emptyetc.sh deploy: Support an empty /etc and populated /usr/etc 2023-07-29 08:47:54 -04:00
test-admin-deploy-etcmerge-cornercases.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-grub2.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-karg.sh kargs: parse spaces in kargs input and keep quotes 2024-03-08 10:01:06 +08:00
test-admin-deploy-nomerge.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-deploy-none.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-deploy-switch.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-syslinux.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-deploy-uboot.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-deploy-var.sh test-admin-deploy-var: Don't rely on OSTREE_FEATURES 2024-02-19 21:01:15 +00:00
test-admin-deploy-whiteouts.sh Support overlayfs whiteouts on checkout 2022-09-28 12:26:31 +02:00
test-admin-gpg.sh tests: Use long key IDs 2024-02-16 13:34:34 +01:00
test-admin-instutil-set-kargs.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-kargs.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-locking.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-pull-deploy-commit.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-pull-deploy-split.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-stateroot.sh ostree-sysroot-deploy: check if deployments are in the same stateroot. 2024-05-03 19:57:31 -04:00
test-admin-upgrade-endoflife.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-admin-upgrade-not-backwards.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-upgrade-systemd-update.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-admin-upgrade-unconfigured.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-archivez.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-auto-summary.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-basic-bare-split-xattrs.sh tests: Require OSTREE_TEST_SUDO to be set to use sudo 2022-11-22 10:27:28 -05:00
test-basic-c.c core: Validate that xattr names aren't empty 2024-06-01 14:46:23 -04:00
test-basic-root.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-basic-user-only.sh lib/commit: reject empty metadata keys 2022-01-20 10:54:30 +00:00
test-basic-user.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-basic.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-bloom.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-bsdiff.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-checksum.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-cli-extensions.sh tests/test-cli-extensions: Fix with single-binary coreutils 2022-03-26 10:55:42 +01:00
test-commit-sign-sh-ext.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-commit-sign.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-commit-timestamp.sh tests: Handle musl's ERANGE mapping 2023-01-02 10:40:17 +00:00
test-composefs.sh checkout: Add API to directly checkout composefs 2024-05-22 20:38:24 -04:00
test-concurrency.py test-concurrency: Don't lower timeout 2023-06-13 16:17:16 -04:00
test-config.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-core.js Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-corruption.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-create-usb.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-delta-ed25519.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-delta-sign.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-delta.sh lib/pull: Don't scan commit objects we fetch via deltas 2023-09-08 17:49:25 -04:00
test-demo-buildsystem.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-export.sh tests: Use skip_without_ostree_feature to detect libarchive, composefs 2024-02-19 21:01:07 +00:00
test-find-remotes.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-fsck-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-fsck-delete.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-gpg-signed-commit.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-gpg-verify-result.c tests: Use long key IDs 2024-02-16 16:24:18 +01:00
test-help.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-include-ostree-h.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-init-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-kargs.c kargs: parse spaces in kargs input and keep quotes 2024-03-08 10:01:06 +08:00
test-keyfile-utils.c keyfile-utils: Add API to parse tristate strings 2024-07-10 17:52:28 -04:00
test-libarchive-import.c ci: Also skip if we detect /run/.containerenv 2024-05-02 14:18:55 -04:00
test-libarchive.sh tests: Use skip_without_ostree_feature to detect libarchive, composefs 2024-02-19 21:01:07 +00:00
test-local-pull-depth.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-local-pull.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-lzma.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-mock-gio.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-mock-gio.h libostree: Remove compatibility code with GLib < 2.44 2024-07-10 10:22:07 +09:00
test-mutable-tree.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-no-initramfs.sh sysroot: Turn on bootloader-naming-2 by default 2024-02-28 09:40:34 -05:00
test-oldstyle-partial.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-osupdate-dtb.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-ot-opt-utils.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-ot-tool-util.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-ot-unix-utils.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-otcore.c sysroot: Reword comment and use gboolean over bool, error handling 2024-02-23 14:58:48 +00:00
test-parent.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-payload-link.sh tests: Add a payload link unit test 2024-07-29 17:08:03 -04:00
test-pre-signed-pull.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-prune-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-prune.sh ostree/prune: Calculate reachability under exclusive lock 2023-01-30 15:08:27 -05:00
test-pull2-bareuseronly.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-bare.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-bareuser.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-bareuseronly.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-basicauth.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-c.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-pull-collections.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-commit-only.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-contenturl.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-corruption.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-depth.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-large-metadata.sh Update big metadata size in test-pull-large-metadata 2023-06-13 15:46:56 +02:00
test-pull-localcache.sh lib/pull: Fix miscounting of missing metadata 2023-09-08 17:49:25 -04:00
test-pull-metalink.sh tests: Rework detection of trivial-httpd 2023-09-19 16:52:13 -04:00
test-pull-mirror-summary.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-mirrorlist.sh tests: Rework detection of trivial-httpd 2023-09-19 16:52:13 -04:00
test-pull-override-url.sh tests: Rework detection of trivial-httpd 2023-09-19 16:52:13 -04:00
test-pull-repeated.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-resume.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-sizes.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-subpath.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-pull-summary-caching.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-summary-sigs.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-pull-untrusted.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-refs-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-refs.sh bin/refs: Add option to print revisions 2023-02-07 22:59:30 -07:00
test-remote-add-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-add.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-cookies.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-gpg-import.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-gpg-list-keys.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-headers.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-remote-refs.sh bin/remote-refs: Add option to print revisions 2023-02-07 22:59:30 -07:00
test-remotes-config-dir.js Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-repo-finder-avahi.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-repo-finder-config.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-repo-finder-mount-integration.sh tests: Require OSTREE_TEST_SUDO to be set to use sudo 2022-11-22 10:27:28 -05:00
test-repo-finder-mount.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-repo.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-reset-nonlinear.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-rfc2616-dates.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-rofiles-fuse.sh tests: Correctly skip single fsverity test 2024-04-24 21:57:23 -06:00
test-rollsum-cli.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-rollsum.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-signed-commit.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-signed-pull-summary.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-signed-pull.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-sizes.js Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-summary-collections.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-summary-update.sh repo: Make summary and signature mtime match 2024-04-25 09:38:50 -06:00
test-summary-view.sh tests: Generalize has_gpgme, has_sign_ed25519 into has_ostree_feature 2024-02-19 21:01:05 +00:00
test-switchroot.sh Merge pull request #1987 from akiernan/us-switchroot-tests 2020-01-16 16:47:41 +01:00
test-symbols.sh Release 2024.7 2024-07-18 17:55:21 -04:00
test-sysroot-c.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-sysroot.js Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00
test-varint.c tree-wide: Run clang-format 2023-05-02 08:42:19 -04:00
test-xattrs.sh Update FSF license notices to use URL instead of address 2021-12-07 08:34:25 -05:00