Skip to content

Commit

Permalink
Add unit_test for requester get_measurement_extension_log
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxing Hou <[email protected]>
  • Loading branch information
Wenxing-hou committed Jun 25, 2024
1 parent 8ae38f7 commit c17ef26
Show file tree
Hide file tree
Showing 5 changed files with 697 additions and 2 deletions.
3 changes: 2 additions & 1 deletion unit_test/spdm_unit_test_common/algo.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

#include "spdm_unit_test.h"

uint8_t m_libspdm_use_measurement_spec = SPDM_MEASUREMENT_SPECIFICATION_DMTF;
uint8_t m_libspdm_use_mel_spec = SPDM_MEL_SPECIFICATION_DMTF;
uint32_t m_libspdm_use_measurement_hash_algo =
SPDM_ALGORITHMS_MEASUREMENT_HASH_ALGO_TPM_ALG_SHA_384;
uint32_t m_libspdm_use_hash_algo = SPDM_ALGORITHMS_BASE_HASH_ALGO_TPM_ALG_SHA_256;
Expand Down
3 changes: 2 additions & 1 deletion unit_test/spdm_unit_test_common/spdm_unit_test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Copyright Notice:
* Copyright 2021-2022 DMTF. All rights reserved.
* Copyright 2021-2024 DMTF. All rights reserved.
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md
**/

Expand Down Expand Up @@ -104,6 +104,7 @@ typedef struct {
#endif

extern uint8_t m_libspdm_use_measurement_spec;
extern uint8_t m_libspdm_use_mel_spec;
extern uint32_t m_libspdm_use_measurement_hash_algo;
extern uint32_t m_libspdm_use_hash_algo;
extern uint32_t m_libspdm_use_asym_algo;
Expand Down
1 change: 1 addition & 0 deletions unit_test/test_spdm_requester/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ target_sources(test_spdm_requester
challenge.c
get_event_types.c
get_measurements.c
get_measurement_extension_log.c
key_exchange.c
finish.c
psk_exchange.c
Expand Down
Loading

0 comments on commit c17ef26

Please sign in to comment.