Skip to content

Commit

Permalink
Reapply ":white_check_mark: use rust_embed in cli test cd_option"
Browse files Browse the repository at this point in the history
This reverts commit 80b2dce.
  • Loading branch information
ChanTsune committed Jan 27, 2025
1 parent d19b872 commit 38599a4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions cli/tests/cli/cd_option.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::utils::{copy_dir_all, diff::diff, setup};
use crate::utils::{diff::diff, setup, TestResources};
use std::fs;

#[test]
fn create_extract_with_cd() {
setup();
copy_dir_all(
"../resources/test/raw/",
TestResources::extract_in(
"raw/",
concat!(env!("CARGO_TARGET_TMPDIR"), "/create_extract_with_cd/in/"),
)
.unwrap();
Expand Down Expand Up @@ -59,8 +59,8 @@ fn create_extract_with_cd() {
#[test]
fn append_with_cd() {
setup();
copy_dir_all(
"../resources/test/raw/",
TestResources::extract_in(
"raw/",
concat!(env!("CARGO_TARGET_TMPDIR"), "/append_with_cd/in/"),
)
.unwrap();
Expand Down Expand Up @@ -88,14 +88,14 @@ fn append_with_cd() {
.unwrap());

// Copy extra input
fs::copy(
"../resources/test/store.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/append_with_cd/in/store.pna"),
TestResources::extract_in(
"store.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/append_with_cd/in/"),
)
.unwrap();
fs::copy(
"../resources/test/zstd.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/append_with_cd/in/zstd.pna"),
TestResources::extract_in(
"zstd.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/append_with_cd/in/"),
)
.unwrap();

Expand Down Expand Up @@ -141,8 +141,8 @@ fn append_with_cd() {
#[test]
fn update_with_cd() {
setup();
copy_dir_all(
"../resources/test/raw/",
TestResources::extract_in(
"raw/",
concat!(env!("CARGO_TARGET_TMPDIR"), "/update_with_cd/in/"),
)
.unwrap();
Expand Down Expand Up @@ -170,14 +170,14 @@ fn update_with_cd() {
.unwrap());

// Copy extra input
fs::copy(
"../resources/test/store.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/update_with_cd/in/store.pna"),
TestResources::extract_in(
"store.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/update_with_cd/in/"),
)
.unwrap();
fs::copy(
"../resources/test/zstd.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/update_with_cd/in/zstd.pna"),
TestResources::extract_in(
"zstd.pna",
concat!(env!("CARGO_TARGET_TMPDIR"), "/update_with_cd/in/"),
)
.unwrap();

Expand Down

0 comments on commit 38599a4

Please sign in to comment.