/freebsd/contrib/ntp/sntp/tests/ |
H A D | kodFile.c | 39 TEST_ASSERT_EQUAL(0, kod_db_cnt); in test_ReadEmptyFile() 47 TEST_ASSERT_EQUAL(2, kod_db_cnt); in test_ReadCorrectFile() 51 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.5", &res)); in test_ReadCorrectFile() 54 TEST_ASSERT_EQUAL(0x12345678, res->timestamp); in test_ReadCorrectFile() 56 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.100", &res)); in test_ReadCorrectFile() 59 TEST_ASSERT_EQUAL(0xfff, res->timestamp); in test_ReadCorrectFile() 67 TEST_ASSERT_EQUAL(3, kod_db_cnt); in test_ReadFileWithBlankLines() 71 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.5", &res)); in test_ReadFileWithBlankLines() 74 TEST_ASSERT_EQUAL(0x12345678, res->timestamp); in test_ReadFileWithBlankLines() 76 TEST_ASSERT_EQUAL(1, search_entry("192.0.2.100", &res)); in test_ReadFileWithBlankLines() [all …]
|
H A D | packetHandling.c | 56 TEST_ASSERT_EQUAL(LEN_PKT_NOMAC, in test_GenerateUnauthenticatedPacket() 59 TEST_ASSERT_EQUAL(LEAP_NOTINSYNC, PKT_LEAP(testpkt.li_vn_mode)); in test_GenerateUnauthenticatedPacket() 60 TEST_ASSERT_EQUAL(NTP_VERSION, PKT_VERSION(testpkt.li_vn_mode)); in test_GenerateUnauthenticatedPacket() 61 TEST_ASSERT_EQUAL(MODE_CLIENT, PKT_MODE(testpkt.li_vn_mode)); in test_GenerateUnauthenticatedPacket() 63 TEST_ASSERT_EQUAL(STRATUM_UNSPEC, PKT_TO_STRATUM(testpkt.stratum)); in test_GenerateUnauthenticatedPacket() 64 TEST_ASSERT_EQUAL(8, testpkt.ppoll); in test_GenerateUnauthenticatedPacket() 102 TEST_ASSERT_EQUAL(EXPECTED_PKTLEN, in test_GenerateAuthenticatedPacket() 106 TEST_ASSERT_EQUAL(LEAP_NOTINSYNC, PKT_LEAP(testpkt.li_vn_mode)); in test_GenerateAuthenticatedPacket() 107 TEST_ASSERT_EQUAL(NTP_VERSION, PKT_VERSION(testpkt.li_vn_mode)); in test_GenerateAuthenticatedPacket() 108 TEST_ASSERT_EQUAL(MODE_CLIEN in test_GenerateAuthenticatedPacket() [all...] |
H A D | packetProcessing.c | 137 TEST_ASSERT_EQUAL(PACKET_UNUSEABLE, in tearDown() 140 TEST_ASSERT_EQUAL(PACKET_UNUSEABLE, 149 TEST_ASSERT_EQUAL(PACKET_UNUSEABLE, in test_TooShortLength() 152 TEST_ASSERT_EQUAL(PACKET_UNUSEABLE, 180 TEST_ASSERT_EQUAL(PACKET_UNUSEABLE, in test_TooShortExtensionFieldLength() 196 TEST_ASSERT_EQUAL(SERVER_AUTH_FAIL, in test_UnauthenticatedPacketReject() 211 TEST_ASSERT_EQUAL(SERVER_AUTH_FAIL, in test_CryptoNAKPacketReject() 238 TEST_ASSERT_EQUAL(SERVER_AUTH_FAIL, in test_AuthenticatedPacketInvalid() 269 TEST_ASSERT_EQUAL(SERVER_AUTH_FAIL, in test_AuthenticatedPacketUnknownKey() 293 TEST_ASSERT_EQUAL(SERVER_UNUSEABL [all...] |
H A D | kodDatabase.c | 37 TEST_ASSERT_EQUAL(1, search_entry(HOST, &result)); in test_SingleEntryHandling() 60 TEST_ASSERT_EQUAL(1, search_entry(HOST1, &result)); in test_MultipleEntryHandling() 64 TEST_ASSERT_EQUAL(1, search_entry(HOST2, &result)); in test_MultipleEntryHandling() 68 TEST_ASSERT_EQUAL(1, search_entry(HOST3, &result)); in test_MultipleEntryHandling() 86 TEST_ASSERT_EQUAL(0, search_entry(HOST_NOTADD, &result)); in test_NoMatchInSearch() 99 TEST_ASSERT_EQUAL(1, search_entry(HOST, &result1)); in test_AddDuplicate() 109 TEST_ASSERT_EQUAL(1, search_entry(HOST, &result2)); in test_AddDuplicate() 131 TEST_ASSERT_EQUAL(1, search_entry(HOST2, &result)); in test_DeleteEntry() 136 TEST_ASSERT_EQUAL(0, search_entry(HOST2, &result)); in test_DeleteEntry() 139 TEST_ASSERT_EQUAL(1, search_entry(HOST1, &result)); in test_DeleteEntry()
|
H A D | keyFile.c | 76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys)); in test_ReadEmptyKeyFile() 91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadASCIIKeys() 117 TEST_ASSERT_EQUAL(3, auth_init(path, &keys)); in test_ReadHexKeys() 151 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); in test_ReadKeyFileWithComments() 177 TEST_ASSERT_EQUAL(1, auth_init(path, &keys)); in test_ReadKeyFileWithInvalidHex()
|
H A D | crypto.c | 48 TEST_ASSERT_EQUAL(sizeof(actual), in test_MakeMd5Mac() 81 TEST_ASSERT_EQUAL(SHA1_LENGTH, in test_MakeSHA1Mac() 114 TEST_ASSERT_EQUAL(CMAC_LENGTH, in test_MakeCMac() 310 TEST_ASSERT_EQUAL(0,
|
H A D | utilities.c | 127 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode); in test_SetLiVnMode1() 142 TEST_ASSERT_EQUAL(expected.li_vn_mode, actual.li_vn_mode); in test_SetLiVnMode2()
|
/freebsd/contrib/ntp/sntp/unity/ |
H A D | unity.h | 81 #define TEST_ASSERT_EQUAL(expected, actual) … macro
|
/freebsd/contrib/ntp/ |
H A D | CommitLog | 35195 replaced TEST_ASSERT_EQUAL_INT64 with TEST_ASSERT_EQUAL() (TEST_ASSER_EQUAL_INT() also autodetects 32 bit or 64 bit long int, which time_t uses) 35198 replaced TEST_ASSERT_EQUAL_INT64 with TEST_ASSERT_EQUAL() (TEST_ASSER_EQUAL_INT() also autodetects 32 bit or 64 bit long int, which time_t uses) [all...] |