mod borg; mod file; mod pg_dump; use std::path::PathBuf; fn get_test_path(paths: &[&str]) -> PathBuf { // Allow us to override the resource dir for the test environment let root_dir = match std::env::var("REVOCATIO_TEST_DIR") { Ok(e) => e, Err(_) => env!("CARGO_MANIFEST_DIR").to_string(), }; let mut d = PathBuf::from(root_dir); d.push("resources/test-data"); for path in paths { d.push(path); } d } // TODO (add to list as we remember/find them): // global config variables // fail command