Skip to content

Commit

Permalink
Merge pull request parallaxsecond#538 from Firstyear/20240806-serde-t…
Browse files Browse the repository at this point in the history
…est-fixes

Fix serde test features
  • Loading branch information
wiktor-k authored Aug 19, 2024
2 parents a5e2f5f + a698c97 commit 938247b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tss-esapi/tests/integration_tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@ use tss_esapi::{
};

mod marshall;
#[cfg(feature = "serde")]
mod serde;
mod tpm2b_types_equality_checks;
mod tpma_types_equality_checks;
mod tpml_types_equality_checks;
mod tpms_types_equality_checks;
mod tpmt_types_equality_checks;
#[cfg(feature = "serde")]
pub use self::serde::*;
pub use marshall::*;
pub use tpm2b_types_equality_checks::*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ fn marshall_unmarshall() {
}

#[test]
#[cfg(feature = "serde")]
fn serialise_deserialise() {
crate::common::check_serialise_deserialise(&Private::default());
let private = Private::try_from([0xff; 100].to_vec()).unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ fn marshall_unmarshall() {
}

#[test]
#[cfg(feature = "serde")]
fn serialise_deserialise() {
crate::common::publics()
.iter()
Expand Down

0 comments on commit 938247b

Please sign in to comment.