freebsd-dev/contrib/ntp/tests/libntp/run-ssl_init.c
Gleb Smirnoff 9034852c84 MFV ntp-4.2.8p4 (r289715)
Security:       VuXML: c4a18a12-77fc-11e5-a687-206a8a720317
Security:	CVE-2015-7871
Security:	CVE-2015-7855
Security:	CVE-2015-7854
Security:	CVE-2015-7853
Security:	CVE-2015-7852
Security:	CVE-2015-7851
Security:	CVE-2015-7850
Security:	CVE-2015-7849
Security:	CVE-2015-7848
Security:	CVE-2015-7701
Security:	CVE-2015-7703
Security:	CVE-2015-7704, CVE-2015-7705
Security:	CVE-2015-7691, CVE-2015-7692, CVE-2015-7702
Security:	http://support.ntp.org/bin/view/Main/SecurityNotice#October_2015_NTP_Security_Vulner
Sponsored by:	Nginx, Inc.
2015-10-22 19:42:57 +00:00

62 lines
1.4 KiB
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 "ntp.h"
//=======External Functions This Runner Calls=====
extern void setUp(void);
extern void tearDown(void);
extern void test_MD5KeyTypeWithoutDigestLength(void);
extern void test_MD5KeyTypeWithDigestLength(void);
extern void test_SHA1KeyTypeWithDigestLength(void);
extern void test_MD5KeyName(void);
extern void test_SHA1KeyName(void);
//=======Test Reset Option=====
void resetTest(void);
void resetTest(void)
{
tearDown();
setUp();
}
char const *progname;
//=======MAIN=====
int main(int argc, char *argv[])
{
progname = argv[0];
UnityBegin("ssl_init.c");
RUN_TEST(test_MD5KeyTypeWithoutDigestLength, 17);
RUN_TEST(test_MD5KeyTypeWithDigestLength, 18);
RUN_TEST(test_SHA1KeyTypeWithDigestLength, 19);
RUN_TEST(test_MD5KeyName, 20);
RUN_TEST(test_SHA1KeyName, 21);
return (UnityEnd());
}