test: define tape tests as submodule

This commit is contained in:
Dietmar Maurer 2021-02-02 14:38:15 +01:00
parent 988e8de122
commit cc2a0b12f8
3 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,9 @@ use proxmox::tools::fs::{
CreateOptions, CreateOptions,
}; };
#[cfg(test)]
mod test;
pub mod file_formats; pub mod file_formats;
mod tape_write; mod tape_write;

View File

@ -1,6 +1,6 @@
// Tape inventory tests // Tape inventory tests
// //
// # cargo test --release --test tape-inventory // # cargo test --release tape::test::inventory
use std::path::PathBuf; use std::path::PathBuf;
use anyhow::{bail, Error}; use anyhow::{bail, Error};
@ -9,7 +9,7 @@ use proxmox::tools::{
Uuid, Uuid,
}; };
use proxmox_backup::{ use crate::{
tape::{ tape::{
Inventory, Inventory,
file_formats::{ file_formats::{

2
src/tape/test/mod.rs Normal file
View File

@ -0,0 +1,2 @@
mod inventory;