003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/tests
usr
/
src
/
contrib
/
ntp
/
sntp
/
tests
/
📁
..
📄
Makefile.am
(5.33 KB)
📄
Makefile.in
(59.77 KB)
📄
crypto.c
(5.93 KB)
📁
data
📄
fileHandlingTest.c
(1.48 KB)
📄
fileHandlingTest.h.in
(582 B)
📄
keyFile.c
(4.23 KB)
📄
kodDatabase.c
(2.98 KB)
📄
kodFile.c
(3.76 KB)
📄
networking.c
(88 B)
📄
packetHandling.c
(6.98 KB)
📄
packetProcessing.c
(11.55 KB)
📄
run-crypto.c
(1.75 KB)
📄
run-keyFile.c
(1.6 KB)
📄
run-kodDatabase.c
(1.65 KB)
📄
run-kodFile.c
(1.71 KB)
📄
run-networking.c
(1.15 KB)
📄
run-packetHandling.c
(2.22 KB)
📄
run-packetProcessing.c
(2.91 KB)
📄
run-t-log.c
(1.37 KB)
📄
run-utilities.c
(1.73 KB)
📄
sntptest.c
(505 B)
📄
sntptest.h
(222 B)
📄
t-log.c
(2.24 KB)
📄
testconf.yml
(278 B)
📄
tests-runner
(331 B)
📄
utilities.c
(4.44 KB)
Editing: run-packetProcessing.c
/* AUTOGENERATED FILE. DO NOT EDIT. */ //=======Test Runner Used To Run Each Test Below===== #define RUN_TEST(TestFunc, TestLineNum) \ { \ Unity.CurrentTestName = #TestFunc; \ Unity.CurrentTestLineNumber = TestLineNum; \ Unity.NumberOfTests++; \ if (TEST_PROTECT()) \ { \ setUp(); \ TestFunc(); \ } \ if (TEST_PROTECT() && !TEST_IS_IGNORED) \ { \ tearDown(); \ } \ UnityConcludeTest(); \ } //=======Automagically Detected Files To Include===== #include "unity.h" #include <setjmp.h> #include <stdio.h> #include "config.h" #include "sntptest.h" #include "networking.h" #include "ntp_stdlib.h" //=======External Functions This Runner Calls===== extern void setUp(void); extern void tearDown(void); extern void test_TooShortLength(void); extern void test_LengthNotMultipleOfFour(void); extern void test_TooShortExtensionFieldLength(void); extern void test_UnauthenticatedPacketReject(void); extern void test_CryptoNAKPacketReject(void); extern void test_AuthenticatedPacketInvalid(void); extern void test_AuthenticatedPacketUnknownKey(void); extern void test_ServerVersionTooOld(void); extern void test_ServerVersionTooNew(void); extern void test_NonWantedMode(void); extern void test_KoDRate(void); extern void test_KoDDeny(void); extern void test_RejectUnsyncedServer(void); extern void test_RejectWrongResponseServerMode(void); extern void test_AcceptNoSentPacketBroadcastMode(void); extern void test_CorrectUnauthenticatedPacket(void); extern void test_CorrectAuthenticatedPacketMD5(void); extern void test_CorrectAuthenticatedPacketSHA1(void); extern void test_CorrectAuthenticatedPacketCMAC(void); //=======Suite Setup===== static void suite_setup(void) { extern int change_iobufs(int); extern int change_logfile(const char*, int); change_iobufs(1); change_logfile("stderr", 0); } //=======Test Reset Option===== void resetTest(void); void resetTest(void) { tearDown(); setUp(); } char const *progname; //=======MAIN===== int main(int argc, char *argv[]) { progname = argv[0]; suite_setup(); UnityBegin("packetProcessing.c"); RUN_TEST(test_TooShortLength, 23); RUN_TEST(test_LengthNotMultipleOfFour, 24); RUN_TEST(test_TooShortExtensionFieldLength, 25); RUN_TEST(test_UnauthenticatedPacketReject, 26); RUN_TEST(test_CryptoNAKPacketReject, 27); RUN_TEST(test_AuthenticatedPacketInvalid, 28); RUN_TEST(test_AuthenticatedPacketUnknownKey, 29); RUN_TEST(test_ServerVersionTooOld, 30); RUN_TEST(test_ServerVersionTooNew, 31); RUN_TEST(test_NonWantedMode, 32); RUN_TEST(test_KoDRate, 33); RUN_TEST(test_KoDDeny, 34); RUN_TEST(test_RejectUnsyncedServer, 35); RUN_TEST(test_RejectWrongResponseServerMode, 36); RUN_TEST(test_AcceptNoSentPacketBroadcastMode, 37); RUN_TEST(test_CorrectUnauthenticatedPacket, 38); RUN_TEST(test_CorrectAuthenticatedPacketMD5, 39); RUN_TEST(test_CorrectAuthenticatedPacketSHA1, 40); RUN_TEST(test_CorrectAuthenticatedPacketCMAC, 41); return (UnityEnd()); }
Upload File
Create Folder