From 02eae829f73d97f1d2de31d5658262c71e5c0804 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 20 Jul 2021 18:52:14 +0200 Subject: [PATCH] tests: move pxar test to its crate Signed-off-by: Thomas Lamprecht --- {tests => pxar-bin/tests}/pxar.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename {tests => pxar-bin/tests}/pxar.rs (92%) diff --git a/tests/pxar.rs b/pxar-bin/tests/pxar.rs similarity index 92% rename from tests/pxar.rs rename to pxar-bin/tests/pxar.rs index 03181c7f..7089d579 100644 --- a/tests/pxar.rs +++ b/pxar-bin/tests/pxar.rs @@ -4,13 +4,13 @@ use std::process::{Command, Stdio}; // Test if xattrs are correctly archived and restored #[test] fn pxar_create_and_extract() { - let src_dir = "./tests/catar_data/test_xattrs_src/"; - let dest_dir = "./tests/catar_data/test_xattrs_dest/"; + let src_dir = "../tests/catar_data/test_xattrs_src/"; + let dest_dir = "../tests/catar_data/test_xattrs_dest/"; let exec_path = if cfg!(debug_assertions) { - "./target/debug/pxar" + "../target/debug/pxar" } else { - "./target/release/pxar" + "../target/release/pxar" }; println!("run '{} create archive.pxar {}'", exec_path, src_dir);