diff --git a/Cargo.toml b/Cargo.toml index 7a87139..0035788 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,9 @@ salty = "0.3.0" p256-cortex-m4 = { version = "0.1.0-alpha.6", features = ["prehash", "sec1-signatures"] } admin-app = "0.1.0" +[dev-dependencies] +admin-app = { version = "0.1.0", features = ["migration-tests"] } + [patch.crates-io] littlefs2 = { git = "https://github.com/trussed-dev/littlefs2.git", rev = "960e57d9fc0d209308c8e15dc26252bbe1ff6ba8" } apdu-dispatch = { git = "https://github.com/trussed-dev/apdu-dispatch.git", rev = "915fc237103fcecc29d0f0b73391f19abf6576de" } diff --git a/src/migrate.rs b/src/migrate.rs index b51a44a..9ed4779 100644 --- a/src/migrate.rs +++ b/src/migrate.rs @@ -63,8 +63,8 @@ pub fn migrate_remove_all_dat(fs: &dyn DynFilesystem, apps: &[&Path]) -> Result< #[allow(clippy::unwrap_used)] #[cfg(test)] mod tests { + use admin_app::migrations::test_utils::{test_migration_one, FsValues}; use littlefs2::path; - use trussed_staging::manage::test_utils::{test_migration_one, FsValues}; use crate::trussed_auth_impl::AUTH_DIR;