tests: move pxar test to its crate

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-20 18:52:14 +02:00
parent bb77143108
commit 02eae829f7
1 changed files with 4 additions and 4 deletions

View File

@ -4,13 +4,13 @@ use std::process::{Command, Stdio};
// Test if xattrs are correctly archived and restored // Test if xattrs are correctly archived and restored
#[test] #[test]
fn pxar_create_and_extract() { fn pxar_create_and_extract() {
let src_dir = "./tests/catar_data/test_xattrs_src/"; let src_dir = "../tests/catar_data/test_xattrs_src/";
let dest_dir = "./tests/catar_data/test_xattrs_dest/"; let dest_dir = "../tests/catar_data/test_xattrs_dest/";
let exec_path = if cfg!(debug_assertions) { let exec_path = if cfg!(debug_assertions) {
"./target/debug/pxar" "../target/debug/pxar"
} else { } else {
"./target/release/pxar" "../target/release/pxar"
}; };
println!("run '{} create archive.pxar {}'", exec_path, src_dir); println!("run '{} create archive.pxar {}'", exec_path, src_dir);