ReactOS 0.4.15-dev-7842-g558ab78
lwip_unittests.c
Go to the documentation of this file.
1#include "lwip_check.h"
2
3#include "udp/test_udp.h"
4#include "tcp/test_tcp.h"
5#include "tcp/test_tcp_oos.h"
6#include "core/test_mem.h"
8
9#include "lwip/init.h"
10
11
12int main()
13{
14 int number_failed;
15 SRunner *sr;
16 size_t i;
17 suite_getter_fn* suites[] = {
23 };
24 size_t num = sizeof(suites)/sizeof(void*);
25 LWIP_ASSERT("No suites defined", num > 0);
26
27 lwip_init();
28
29 sr = srunner_create((suites[0])());
30 for(i = 1; i < num; i++) {
31 srunner_add_suite(sr, ((suite_getter_fn*)suites[i])());
32 }
33
34#ifdef LWIP_UNITTESTS_NOFORK
35 srunner_set_fork_status(sr, CK_NOFORK);
36#endif
37#ifdef LWIP_UNITTESTS_FORK
38 srunner_set_fork_status(sr, CK_FORK);
39#endif
40
41 srunner_run_all(sr, CK_NORMAL);
42 number_failed = srunner_ntests_failed(sr);
43 srunner_free(sr);
44 return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
45}
void lwip_init(void)
Definition: init.c:286
#define LWIP_ASSERT(message, assertion)
Definition: debug.h:66
GLuint GLuint num
Definition: glext.h:9618
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define EXIT_FAILURE
Definition: jerror.c:33
Suite *() suite_getter_fn(void)
Definition: lwip_check.h:17
int main()
#define EXIT_SUCCESS
Definition: rdjpgcom.c:55
END_TEST Suite * etharp_suite(void)
Definition: test_etharp.c:256
END_TEST Suite * mem_suite(void)
Definition: test_mem.c:67
END_TEST Suite * tcp_suite(void)
Definition: test_tcp.c:655
Suite * tcp_oos_suite(void)
Definition: test_tcp_oos.c:918
END_TEST Suite * udp_suite(void)
Definition: test_udp.c:62