Skip to content

Commit

Permalink
Fix serde test features
Browse files Browse the repository at this point in the history
Signed-off-by: William Brown <[email protected]>
  • Loading branch information
Firstyear committed Aug 6, 2024
1 parent aa0e1ea commit a698c97
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 a698c97

Please sign in to comment.