Commit 8865dd5e authored by Sergey Lyubka's avatar Sergey Lyubka

Moved unit_test.c to examples

parent ce57f47d
...@@ -49,5 +49,9 @@ windows: websocket_html.c ...@@ -49,5 +49,9 @@ windows: websocket_html.c
$(CL) auth.c ../mongoose.c $(CLFLAGS) $(LFLAGS) $(CL) auth.c ../mongoose.c $(CLFLAGS) $(LFLAGS)
$(CL) server.c ../mongoose.c $(CLFLAGS) $(LFLAGS) $(CL) server.c ../mongoose.c $(CLFLAGS) $(LFLAGS)
u:
g++ unit_test.c -Wall -W -pedantic -lssl -g -O0 && ./a.out
clean: clean:
-@$(RM) hello upload post websocket auth server *.exe *.dSYM *.obj .*o -@$(RM) hello upload post websocket auth server *.exe *.dSYM *.obj .*o
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#define MONGOOSE_POST_SIZE_LIMIT 999 #define MONGOOSE_POST_SIZE_LIMIT 999
// USE_* definitions must be made before #include "mongoose.c" ! // USE_* definitions must be made before #include "mongoose.c" !
#include "mongoose.c" #include "../mongoose.c"
#define FAIL(str, line) do { \ #define FAIL(str, line) do { \
printf("Fail on line %d: [%s]\n", line, str); \ printf("Fail on line %d: [%s]\n", line, str); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment