/civetweb-2.7.6/unittest/ |
D | CMakeLists.txt | 13 # ${CIVETWEB_THIRD_PARTY_DIR}/src/check-unit-test-framework/CMakeLists.txt 19 ExternalProject_Add(check-unit-test-framework 20 DEPENDS civetweb-c-library 36 "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" 37 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}" 38 "-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>" 46 ExternalProject_Get_Property(check-unit-test-framework INSTALL_DIR) 70 add_library(shared-c-unit-tests STATIC shared.c) 72 shared-c-unit-tests PUBLIC 75 add_library(public-func-c-unit-tests STATIC public_func.c) [all …]
|
D | main.c | 1 /* Copyright (c) 2015-2018 the Civetweb developers 38 /* This unit test file uses the excellent Check unit testing library. 55 const char *const suite_arg = "--suite="; in main() 57 const char *const test_case_arg = "--test-case="; in main() 59 const char *const test_dir_arg = "--test-dir="; in main() 61 const char *const test_log_arg = "--test-log="; in main() 63 const char *const help_arg = "--help"; in main() 65 /* Test variables */ in main() 98 " --suite=Suite Determines the suite to run\n" in main() 99 " --test-case='Test Case' Determines the test case to run\n" in main() [all …]
|
D | public_server.c | 1 /* Copyright (c) 2015-2018 the Civetweb developers 53 /* This unit test file uses the excellent Check unit testing library. 60 * functions, used only to prepare the test environment seems redundant. 61 * If they fail, the test fails anyway. */ 62 #pragma GCC diagnostic ignored "-Wunused-result" 77 * used in the different test in locate_path() 88 a_path); // TODO: fix path in CI test environment in locate_path() 135 #pragma GCC diagnostic ignored "-Wunreachable-code" in wait_not_null() 136 #pragma GCC diagnostic ignored "-Wunreachable-code-return" in wait_not_null() 164 wd[sizeof(wd) - 1] = 0; in START_TEST() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/src-separate/ |
D | duk_selftest.c | 21 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: double union compares false (expected true)")… 27 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: double union compares true (expected false)")… 47 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_(u)int{8,16,32}_t size"); in duk__selftest_types() 52 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_(u)int64_t size"); in duk__selftest_types() 60 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_size_t is smaller than duk_uint_t"); in duk__selftest_types() 63 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_int_t is not 32 bits"); in duk__selftest_types() 74 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: packed duk_tval in use but sizeof(void *) > 4… in duk__selftest_packed_tval() 84 volatile int test; in duk__selftest_twos_complement() local 85 test = -1; in duk__selftest_twos_complement() 87 /* Note that byte order doesn't affect this test: all bytes in in duk__selftest_twos_complement() [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/src-separate/ |
D | duk_selftest.c | 21 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: double union compares false (expected true)")… 27 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: double union compares true (expected false)")… 47 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_(u)int{8,16,32}_t size"); in duk__selftest_types() 52 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_(u)int64_t size"); in duk__selftest_types() 60 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_size_t is smaller than duk_uint_t"); in duk__selftest_types() 63 DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: duk_int_t is not 32 bits"); in duk__selftest_types() 74 …DUK_PANIC(DUK_ERR_INTERNAL_ERROR, "self test failed: packed duk_tval in use but sizeof(void *) > 4… in duk__selftest_packed_tval() 84 volatile int test; in duk__selftest_twos_complement() local 85 test = -1; in duk__selftest_twos_complement() 87 /* Note that byte order doesn't affect this test: all bytes in in duk__selftest_twos_complement() [all …]
|
/civetweb-2.7.6/test/ |
D | page4.lua | 1 -- This test checks the Lua functions: 2 -- get_var, get_cookie, md5, url_encode 5 cookie_name = "CivetWeb-test-page4" 13 mg.write("Content-Type: text/html; charset=utf-8\r\n") 14 mg.write("Cache-Control: max-age=0, must-revalidate\r\n") 16 mg.write("Set-Cookie: " .. cookie_name .. "=" .. tostring(now) .. "\r\n") 20 mg.write("<html>\r\n<head><title>CivetWeb Lua script test page 4</title></head>\r\n<body>\r\n") 21 mg.write("<p>Test of CivetWeb Lua Functions:</p>\r\n"); 24 -- get_var of query_string 25 mg.write("get_var test (check query string):\r\n") [all …]
|
D | README.md | 5 ----- 9 test suites reflecting the public and internal API functions of civetweb. 16 * Test Cases which are there are multiple in 17 * Test Suites which are ran by the check framework by 18 * `civetweb-unit-tests` which is driven using the `--suite` and 19 `--test-case` arguments by 22 Each test suite and test case is ran individually by CTest so that it provides 24 new test case or suite will require the corresponding `add_test` driver to be
|
D | resource_script_demo.lua | 1 -- This is a Lua script that handles sub-resources, e.g. resource_script_demo.lua/path/file.ext 16 mg.write("Content-Type: text/html; charset=utf-8\r\n") 18 mg.write("<html><head><title>Civetweb Lua script resource handling test</title></head>\r\n") 31 mg.write("Content-Type: text/html; charset=utf-8\r\n") 33 mg.write("<html><head><title>Civetweb Lua script resource handling test</title></head>\r\n") 38 mg.write("Content-Type: text/html; charset=utf-8\r\n") 40 mg.write("<html><head><title>Civetweb Lua script resource handling test</title></head>\r\n") 55 mg.write("Content-Type: text/html; charset=utf-8\r\n") 57 mg.write("<html><head><title>Civetweb Lua script resource handling test</title></head>\r\n") 69 mg.write("Content-Type: text/html; charset=utf-8\r\n") [all …]
|
D | page_shared.lua | 3 mg.write("Cache-Control: no-cache, no-store, must-revalidate, max-age=0\r\n") 4 mg.write("Content-Type: text/plain\r\n") 15 -- Test with number 26 -- Test with name 39 -- Test with boolean 50 -- Test using "shared" as array 69 -- Test using "shared" as array 85 -- Check if experimental functions (starting with __) are available 94 -- Test __inc/__dec functions 103 -- Test __add function [all …]
|
D | cors.reply.lua | 1 -- http://www.html5rocks.com/static/images/cors_server_flowchart.png 7 mg.write("Content-Type: text/html; charset=utf-8\r\n") 9 mg.write("This test page should not be used directly. Open cors.html instead.") 15 -- Note: This is a test example showing how a script could handle 16 -- a preflight request directly. However, now the server is able 17 -- to handle preflight requests, so scripts do no longer need to 18 -- do this - except it has been disabled in the server by setting 19 -- the access_control_allow_methods configuration parameter to 20 -- an empty string. 22 local acrm = mg.request_info.http_headers['Access-Control-Request-Method']; [all …]
|
D | MakefileTest.mk | 3 # License http://opensource.org/licenses/mit-license.php MIT License 6 #This makefile is used to test the other Makefiles 11 include $(TOP)/resources/Makefile.in-os 13 all: test 15 test: buildoptions buildlibs buildinstall 16 test: buildexamples threaded 19 test: dmg 22 test: clean 27 $(MAKE) -C $(TOP) -f Makefile.osx clean package 31 $(MAKE) -C $(TOP)/examples/embedded_c clean all [all …]
|
D | test.pl | 2 # This script is used to test Civetweb web server 19 my $root = 'test'; 55 my $sock = IO::Socket::INET->new(Proto => 6, 58 $sock->autoflush(1); 143 my $out = `(cc -c src/civetweb.c && nm src/civetweb.o) | grep ' T '`; 158 spawn("$civetweb_exe -listening_ports 127.0.0.1:$port"); 159 o("GET /test/hello.txt HTTP/1.0\n\n", 'HTTP/1.1 200 OK', 'Loading config file'); 165 "-listening_ports 127.0.0.1:$port ". 166 "-access_log_file access.log ". 167 "-error_log_file debug.log ". [all …]
|
D | cors.html | 4 <title>CORS test</title> 58 el.innerHTML = "Test CORS from " + document.URL + " to http://localhost:8080/cors.reply.*"; 60 …alert("This CORS test is only meaningful, if you open this site with a different url than \'localh… 67 <h1>Cross-origin resource sharing test</h1> 68 <p id="from">*** Error: Javascript is not activated. This test will not work. ***</p> 73 …<p>More information on CORS: See <a href="http://enable-cors.org/">enable-cors.org</a> and <a href…
|
D | page3.lua | 1 -- This test checks if a query string has been given. 2 -- It sends the file identified by the query string. 3 -- Do not use it in a real server in this way! 8 mg.write("Content-Type: text/html; charset=utf-8\r\n") 10 mg.write("<html><head><title>CivetWeb Lua script test page 3</title></head>\r\n") 15 mg.write("Content-Type: text/html; charset=utf-8\r\n") 17 mg.write("<html><head><title>CivetWeb Lua script test page 3</title></head>\r\n") 24 mg.write("Content-Type: text/html; charset=utf-8\r\n") 26 mg.write("<html>\r\n<head><title>CivetWeb Lua script test page 3</title></head>\r\n")
|
/civetweb-2.7.6/ |
D | .travis.yml | 10 - $HOME/third-party 17 - cmake 18 - openssl 19 - libssl-dev 21 - kubuntu-backports 25 - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then 28 wget https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh --no-check-certificate; 29 chmod +x cmake-3.7.2-Linux-x86_64.sh; 30 ./cmake-3.7.2-Linux-x86_64.sh --prefix=$HOME/usr --exclude-subdir --skip-license; 32 - cmake --version [all …]
|
D | appveyor.yml | 14 - '**/*.md' 25 - id: Default-x86 26 compiler: msvc-19-seh 37 - id: Default-x64 38 compiler: msvc-19-seh 50 - id: Full-x86 51 compiler: msvc-19-seh 62 - id: Full-x64 63 compiler: msvc-19-seh 75 - id: Full-x86-Debug [all …]
|
/civetweb-2.7.6/examples/_obsolete/docroot/ |
D | jquery.js | 14 * Date: Sat Feb 13 22:33:48 2010 -0500 17 …k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).clo… 19 …1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test… 20 …t(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,… 22 …;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a… 24 …:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},l… 25 …[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=… 28 …^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|tr… 29 a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){… 31 a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e… [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/examples/debug-trans-dvalue/ |
D | Makefile | 5 DUKTAPE_OPTS+=-DDUK_OPT_ASSERTIONS 6 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_SUPPORT -DDUK_OPT_INTERRUPT_COUNTER 7 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_FWD_PRINTALERT 8 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_DUMPHEAP 9 #DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_TRANSPORT_TORTURE 11 #TRANS_OPTS+=-DDEBUG_PRINTS 13 test: test.c duk_trans_dvalue.c duk_trans_dvalue.h target 15 gcc -O0 -g -ggdb -Wall -Wextra -std=c99 -o test -I$(DUKTAPE_SRC) -I. \ 17 $(DUKTAPE_SRC)/duktape.c duk_trans_dvalue.c test.c -lm
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/examples/debug-trans-dvalue/ |
D | Makefile | 5 DUKTAPE_OPTS+=-DDUK_OPT_ASSERTIONS 6 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_SUPPORT -DDUK_OPT_INTERRUPT_COUNTER 7 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_FWD_PRINTALERT 8 DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_DUMPHEAP 9 #DUKTAPE_OPTS+=-DDUK_OPT_DEBUGGER_TRANSPORT_TORTURE 11 #TRANS_OPTS+=-DDEBUG_PRINTS 13 test: test.c duk_trans_dvalue.c duk_trans_dvalue.h target 15 gcc -O0 -g -ggdb -Wall -Wextra -std=c99 -o test -I$(DUKTAPE_SRC) -I. \ 17 $(DUKTAPE_SRC)/duktape.c duk_trans_dvalue.c test.c -lm
|
/civetweb-2.7.6/test/ajax/ |
D | test.html | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 4 <title>Test</title> 7 <!-- 31 document.getElementById('start').innerHTML = 'Test: ' + pushCount; 81 --pendingCount; 98 //--> 104 <div id="start">Test not started.</div> 126 …ype="button" onclick="autoTest=!autoTest; javascript:runAutoTest()" value="automatic test"></input> 152 <tr><th>Test</th><th>Result</th></tr> 164 <div id="resTotal">Push [Test] to start.</div>
|
D | jquery.js | 2 …-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])…
|
/civetweb-2.7.6/ci/test/ |
D | README.md | 5 I have fixed and extended the travis configuration to build on the new sudo-less docker infrastruct… 9 * On Check-in or Pull Requests clone the repo 14 * Start the test script 16 === test/ci_tests/01_basic/basic_spec.lua 18 On the initial checkin, there is only one test which demonstrates: 22 * using libcurl via lua to test that files in the specified docroot are available 31 * Check out the 'busted' and lua-curl3 docs for more info 32 * https://github.com/Lua-cURL/Lua-cURLv3
|
/civetweb-2.7.6/src/third_party/duktape-1.5.2/debugger/ |
D | README.rst | 9 target supporting the example TCP transport (``examples/debug-trans-socket``) 40 $ make -f Makefile.dukdebug 54 $ ./duk --debugger mandel.js 58 $ ../../duk --debugger test-dev-mandel2-func.js 83 ----------------- 102 - ``./build/dukluv`` on Linux 104 - ``.\build\Debug\dukluv.exe`` on Windows 112 # Manually: see "dukluv duk_debug_proxy.js --help" for help 118 $ ../../duk --debugger test-dev-mandel2-func.js 131 …{"notify":"_TargetConnected","args":["1 10499 v1.4.0-140-gc9a6c7c duk command built from Duktape r… [all …]
|
/civetweb-2.7.6/src/third_party/duktape-1.8.0/debugger/ |
D | README.rst | 9 target supporting the example TCP transport (``examples/debug-trans-socket``) 40 $ make -f Makefile.dukdebug 54 $ ./duk --debugger mandel.js 58 $ ../../duk --debugger test-dev-mandel2-func.js 83 ----------------- 102 - ``./build/dukluv`` on Linux 104 - ``.\build\Debug\dukluv.exe`` on Windows 112 # Manually: see "dukluv duk_debug_proxy.js --help" for help 118 $ ../../duk --debugger test-dev-mandel2-func.js 131 …{"notify":"_TargetConnected","args":["1 10499 v1.4.0-140-gc9a6c7c duk command built from Duktape r… [all …]
|
/civetweb-2.7.6/examples/https/ |
D | civetweb.conf | 1 # Instructions to run (on Linux) to reproduce test results: 12 # 3) copy the content of the *.pin files into the Public-Key-Pins 25 # 7) run civetweb, like above - or better create your own start script 27 # (or Google groups) - see README.md in CivetWeb main directory 54 additional_header Content-Security-Policy: script-src 'self' 55 additional_header X-Frame-Options: SAMEORIGIN 56 additional_header X-Xss-Protection: 1; mode=block 57 additional_header X-Content-Type-Options: nosniff 58 additional_header Referrer-Policy: same-origin 59 …der Public-Key-Pins: pin-sha256="uz1UTAPen+xb+UoQqkVlEx4H653LbMjfRJcZx5OrjbI="; pin-sha256="pf3px1… [all …]
|