all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Filip Schauer <f.schauer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH proxmox 0/2] oci: tests: refactor to drop static test tarballs
Date: Tue, 24 Mar 2026 16:35:48 +0100	[thread overview]
Message-ID: <20260324153553.146040-1-f.schauer@proxmox.com> (raw)

Refactor the OCI tests to generate OCI images on the fly instead of
relying on pre-built tar files checked into the repository.

Filip Schauer (2):
  oci: tests: return Result from tests to avoid unwrap calls
  oci: tests: generate OCI test images on the fly

 proxmox-oci/Cargo.toml                        |   2 +
 proxmox-oci/tests/extract_replace.rs          |  73 +++++---
 proxmox-oci/tests/extract_whiteouts.rs        | 123 ++++++++-----
 proxmox-oci/tests/helper/mod.rs               |   3 +
 .../tests/helper/oci_tar_image_builder.rs     | 171 ++++++++++++++++++
 .../oci_test_replace_dir_with_file.tar        | Bin 8704 -> 0 bytes
 .../oci_image_data/oci_test_replace_file.tar  | Bin 8704 -> 0 bytes
 .../oci_test_replace_file_with_dir.tar        | Bin 8704 -> 0 bytes
 .../oci_test_whiteout_current_directory.tar   | Bin 8704 -> 0 bytes
 .../oci_test_whiteout_dead_symlink_parent.tar | Bin 8704 -> 0 bytes
 .../oci_test_whiteout_root_breakout.tar       | Bin 7168 -> 0 bytes
 ...oci_test_whiteout_root_parent_breakout.tar | Bin 7168 -> 0 bytes
 .../oci_test_whiteout_symlink.tar             | Bin 8704 -> 0 bytes
 13 files changed, 297 insertions(+), 75 deletions(-)
 create mode 100644 proxmox-oci/tests/helper/mod.rs
 create mode 100644 proxmox-oci/tests/helper/oci_tar_image_builder.rs
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_replace_dir_with_file.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_replace_file.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_replace_file_with_dir.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_whiteout_current_directory.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_whiteout_dead_symlink_parent.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_whiteout_root_breakout.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_whiteout_root_parent_breakout.tar
 delete mode 100644 proxmox-oci/tests/oci_image_data/oci_test_whiteout_symlink.tar

-- 
2.47.3





             reply	other threads:[~2026-03-24 15:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24 15:35 Filip Schauer [this message]
2026-03-24 15:35 ` [PATCH proxmox 1/2] oci: tests: return Result from tests to avoid unwrap calls Filip Schauer
2026-03-24 15:35 ` [PATCH proxmox 2/2] oci: tests: generate OCI test images on the fly Filip Schauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260324153553.146040-1-f.schauer@proxmox.com \
    --to=f.schauer@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal