Skip to content

Commit

Permalink
fix reproducibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Nov 27, 2024
1 parent 6e8b915 commit b4ad711
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,17 @@ async fn test_reproducible_shasum(
let sha256_digest = sha256_digest_bytes(&options.pack_options.output_file);
insta::assert_snapshot!(format!("sha256-{}", platform), &sha256_digest);

if platform == Platform::LinuxPpc64le {
// pixi-pack not available for ppc64le for now
return;
}

// Test with create executable
#[cfg(target_os = "windows")]
let output_file = options.output_dir.path().join("environment.ps1");
#[cfg(not(target_os = "windows"))]
let output_file = options.output_dir.path().join("environment.sh");
let output_file = options.output_dir.path().join(if platform.is_windows() {
"environment.ps1"
} else {
"environment.sh"
});

let mut pack_options = options.pack_options.clone();
pack_options.create_executable = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 352
expression: "&sha256_digest"
snapshot_kind: text
---
5A797AC80010BCFCE103F53892CDEA582C82364264CE6C4FF8EF5643F23CD3BD
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 352
expression: "&sha256_digest"
snapshot_kind: text
---
2D9DACCC1641D534A8B4003F121296F37D550C07B87108DFBE135D06FDD5D8A2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 352
expression: "&sha256_digest"
snapshot_kind: text
---
5D75D036EA7C29A43E15755D79381827A34B3160026776AC3D5A53B2073082B8
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 352
expression: "&sha256_digest"
snapshot_kind: text
---
906049EA301E1E033E5AF4E12630B0A0C4BDD60D7F6F05741F0A10F3638214A6
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
source: tests/integration_test.rs
assertion_line: 353
expression: "&sha256_digest"
snapshot_kind: text
---
90EC889A10236ACEB6DC718A7BC637FD3322F7450754FB23E16EFB128E25F6E3

0 comments on commit b4ad711

Please sign in to comment.