浏览代码

Test: Add comment, how to build a local test for Linux

bel2125 8 年之前
父节点
当前提交
39f3f26349
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      test/public_server.c

+ 3 - 0
test/public_server.c

@@ -4427,6 +4427,9 @@ make_public_server_suite(void)
 
 
 #ifdef REPLACE_CHECK_FOR_LOCAL_DEBUGGING
 #ifdef REPLACE_CHECK_FOR_LOCAL_DEBUGGING
 /* Used to debug test cases without using the check framework */
 /* Used to debug test cases without using the check framework */
+/* Build command for Linux:
+gcc test/public_server.c src/civetweb.c -I include/ -I test/ -l pthread -l dl -D LOCAL_TEST -D REPLACE_CHECK_FOR_LOCAL_DEBUGGING -D MAIN_PUBLIC_SERVER=main
+*/
 
 
 static int chk_ok = 0;
 static int chk_ok = 0;
 static int chk_failed = 0;
 static int chk_failed = 0;