mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-18 21:23:02 +00:00
[TAS-246] [TEST] CI/CD set up - more fixes
This commit is contained in:
parent
a4cfe51515
commit
a947f10fd8
@ -37,6 +37,7 @@
|
||||
#include <memory> // for std::shared_ptr
|
||||
#include <string> // for std::string
|
||||
#include <vector> // for std::vector
|
||||
#include <utility> // for std::pair
|
||||
|
||||
/** \addtogroup Core
|
||||
* \{ */
|
||||
|
@ -84,7 +84,7 @@ TEST(GnssCryptoTest, VerifyPublicKeyStorage)
|
||||
|
||||
ASSERT_TRUE(result);
|
||||
|
||||
auto d_crypto2 = std::make_unique<Gnss_Crypto>(f1, "", "");
|
||||
auto d_crypto2 = std::make_unique<Gnss_Crypto>(f1, "");
|
||||
bool result2 = d_crypto2->store_public_key(f2);
|
||||
ASSERT_TRUE(result2);
|
||||
|
||||
|
@ -42,14 +42,14 @@ protected:
|
||||
uint32_t d_GST_SIS{};
|
||||
uint32_t TOW{};
|
||||
uint32_t WN{};
|
||||
std::tm GST_START_EPOCH = {0, 0, 0, 22, 8 - 1, 1999 - 1900, 0}; // months start with 0 and years since 1900 in std::tm
|
||||
std::tm GST_START_EPOCH = {0, 0, 0, 22, 8 - 1, 1999 - 1900, 0, 0, 0, 0, 0}; // months start with 0 and years since 1900 in std::tm
|
||||
const uint32_t LEAP_SECONDS = 0; // 13 + 5;
|
||||
void set_time(std::tm& input);
|
||||
|
||||
void SetUp() override
|
||||
{
|
||||
// std::tm input_time = {0, 0, 5, 16, 8 - 1, 2023 - 1900, 0}; // conf. 1
|
||||
std::tm input_time = {0, 0, 0, 27, 7 - 1, 2023 - 1900, 0}; // conf. 2
|
||||
// std::tm input_time = {0, 0, 5, 16, 8 - 1, 2023 - 1900, 0, 0, 0, 0, 0}; // conf. 1
|
||||
std::tm input_time = {0, 0, 0, 27, 7 - 1, 2023 - 1900, 0, 0, 0, 0, 0}; // conf. 2
|
||||
set_time(input_time);
|
||||
osnma = osnma_msg_receiver_make(CRTFILE_DEFAULT, MERKLEFILE_DEFAULT);
|
||||
}
|
||||
@ -218,8 +218,6 @@ TEST_F(OsnmaMsgReceiverTest, TagVerification)
|
||||
// Assert
|
||||
|
||||
// Tag3
|
||||
uint32_t TOW_Tag3 = 345660;
|
||||
uint32_t TOW_NavData_Tag3 = TOW_Tag3 - 30;
|
||||
uint32_t TOW_Key_Tag3 = TOW_Tag0 + 30;
|
||||
WN = 1248;
|
||||
PRNa = 2;
|
||||
|
@ -55,18 +55,18 @@ protected:
|
||||
uint32_t d_GST_SIS{};
|
||||
uint32_t TOW{};
|
||||
uint32_t WN{};
|
||||
std::tm GST_START_EPOCH = {0, 0, 0, 22, 8 - 1, 1999 - 1900, 0}; // months start with 0 and years since 1900 in std::tm
|
||||
std::tm GST_START_EPOCH = {0, 0, 0, 22, 8 - 1, 1999 - 1900, 0, 0, 0, 0, 0}; // months start with 0 and years since 1900 in std::tm
|
||||
const uint32_t LEAP_SECONDS = 0; // 13 + 5;
|
||||
void set_time(std::tm& input);
|
||||
|
||||
void SetUp() override
|
||||
{
|
||||
// std::tm input_time = {0, 0, 5, 16, 8 - 1, 2023 - 1900, 0}; // conf. 1
|
||||
std::tm input_time = {0, 0, 0, 27, 7 - 1, 2023 - 1900, 0}; // conf. 2
|
||||
// std::tm input_time = {0, 0, 5, 16, 8 - 1, 2023 - 1900, 0, 0, 0, 0, 0}; // conf. 1
|
||||
std::tm input_time = {0, 0, 0, 27, 7 - 1, 2023 - 1900, 0, 0, 0, 0, 0}; // conf. 2
|
||||
set_time(input_time);
|
||||
std::string crtFilePath = std::string(BASE_OSNMA_TEST_VECTORS) + "cryptographic_material/Merkle_tree_2/PublicKey/OSNMA_PublicKey_20230720113300_newPKID_2.crt"; // conf. 2
|
||||
std::string merkleFilePath = std::string(BASE_OSNMA_TEST_VECTORS) + "cryptographic_material/Merkle_tree_2/MerkleTree/OSNMA_MerkleTree_20230720113300_newPKID_2.xml";
|
||||
osnma = osnma_msg_receiver_make(crtFilePath, merkleFilePath, "");
|
||||
osnma = osnma_msg_receiver_make(crtFilePath, merkleFilePath);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user