tests: move pxar test to its crate
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
bb77143108
commit
02eae829f7
|
@ -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);
|
Loading…
Reference in New Issue