summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-09-10tests: restructure run_tests into functions to make main flow clearer.Michael Adam1-65/+104
Also prepare for modularizing the testsuite. Michael
2009-09-10tests:run_tests: add complete GPL boilerplate.Michael Adam1-2/+13
Michael
2009-09-10tests:webclient: add complete GPL boilerplate.Michael Adam1-2/+13
Michael
2009-09-10tests/webserver: add complete GPL boilerplate.Michael Adam1-2/+14
Michael
2009-09-10tests:webserver: make pid-file, log-dir and doc-root reside in /tmp by defaultMichael Adam1-3/+3
So simply starting the server will work. Michael
2009-09-10tests/webserver: rework locking of pid file.Michael Adam1-5/+27
Michael
2009-09-10tests:webserver: reopen STDOUT/STDERR after locking pid file.Michael Adam1-5/+8
Michael
2009-09-10tests: this is a first draft of the beginning of a test suite.Michael Adam1-0/+138
It provisions a test envirnonment, fires up the perl web server and tinyproxy and currently makes one direct request to the web server and one request through tinyproxy. This will be modularized and extended in the sequel. Michael
2009-09-10tests: add a simple web client written in perl.Michael Adam1-0/+46
This should be one of the test tools for writing our testsuite. This can be used to make direct connects to web servers like so: webclient.pl server_ip:port /path/file.html and to make requestis via a proxy like this: webclient.pl proxy_ip:port http://webserver:port/path/file.html Michael
2009-09-10tests: add a simple webserver written in perl.Michael Adam1-0/+276
This should be the web server to test against in the upcoming selftest suite. This web server will evolve as the test suite grows. Currently, it just returns a web site quoting the request and a fortune (if fortune is installed...) for whatever request it gets. The option to provide a document root is already present. Michael
2009-09-09README: Update the CONTRIBUTING section.Michael Adam1-2/+16
* provide the git url * mention git format-patch * mention the #tinyproxy irc channel Michael
2009-08-12Fix compiler warnings: make const strings const in process_server_headers().Michael Adam1-1/+1
Michael
2009-08-12Fix compiler warnings: make const strings const in process_client_headers().Michael Adam1-1/+1
Michael
2009-08-12Fix compiler warnings: Make const strings const in remove_connection_headers()Michael Adam1-1/+1
Michael
2009-08-09Fix implicit cast warning in get_all_headers().Michael Adam1-1/+2
And untangle assignment from check. Michael
2009-08-09Fix two implicit cast warnings in pull_client_data().Michael Adam1-2/+3
Michael
2009-08-09Fix three implicit cast warnings in process_request().Michael Adam1-4/+4
Michael
2009-08-09Fix implicit cast warning in upstream_add().Michael Adam1-1/+1
Michael
2009-08-09Fix implicit cast warning in extract_ssl_url().Michael Adam1-1/+1
Michael
2009-08-09Fix implicit cast warning in extract_http_url().Michael Adam1-1/+1
Michael
2009-08-09Fix implicit cast warning in check_allowed_connect_ports().Michael Adam1-1/+1
Michael
2009-08-09fix signed vs unsigned comparison warning in check_allowed_connect_ports().Michael Adam1-1/+1
Michael
2009-08-07readline(): fix 5 implicit cast warningsMichael Adam1-5/+7
Michael
2009-08-07write_message(): fix signed/unsigned comparison warningMichael Adam1-1/+1
Michael
2009-08-07write_message(): fix implicit cast warnings.Michael Adam1-2/+2
Michael
2009-08-07safe_write: fix unsigned vs. signed comparisonMichael Adam1-1/+1
Michael
2009-08-07send_stored_logs(): remove an implicit cast warning.Michael Adam1-1/+1
Michael
2009-08-07send_stored_logs: fix signed/unsigned comparisonMichael Adam1-1/+1
Michael
2009-08-07log_message(): remove implicit cast warning.Michael Adam1-1/+1
Michael
2009-08-07log: make const char array const.Michael Adam1-1/+1
Michael
2009-08-07http_message_add_headers: make argument num_headers unsignedMichael Adam2-5/+4
and remove signed vs. unsigned comparison warnings. Michael
2009-08-07http_message_add_headers(): fix implicit cast warning.Michael Adam1-1/+2
Michael
2009-08-07http_message_create(): remove two implicit cast warnings.Michael Adam1-2/+3
Michael
2009-08-07heap: make a const string const in malloc_shared_memory().Michael Adam1-1/+1
Michael
2009-08-07heap: fix an implicit cast warning.Michael Adam1-1/+1
Michael
2009-08-07hashmap: fix three implicit cast warnings.Michael Adam1-3/+4
Michael
2009-08-07Fix an implicit cast warning in initialize_conn().Michael Adam1-1/+1
Michael
2009-08-07send_html_file(): remove a discards qualifyer warningMichael Adam1-2/+3
and untangle assignment from check. Michael
2009-08-07html-error: make read only argument const in lookup_variable().Michael Adam1-1/+1
Michael
2009-08-07make a const string const in send_http_error_message().Michael Adam1-1/+1
Michael
2009-08-07make a const string const in send_http_headers().Michael Adam1-1/+1
Michael
2009-08-07make message argument of indicate_http_error() const.Michael Adam2-2/+3
Michael
2009-08-07make message argument to send_http_headers() constant.Michael Adam2-2/+2
Michael
2009-08-07add_error_variable(): make key and data arguments constMichael Adam2-2/+3
Michael
2009-08-07showstats(): fix an implicit cast warning.Michael Adam1-1/+1
Michael
2009-08-07showstats(): add a const to a const stringMichael Adam1-1/+1
Michael
2009-08-07init_stats(): fix implicit cast warning.Michael Adam1-1/+1
Michael
2009-08-07Update bug tracker URLMukund Sivaraman2-3/+4
2009-08-07Wrap len in paranthesesMukund Sivaraman1-5/+5
2009-08-07correctly handle folded header fieldsMatthew Dempsky1-11/+45