Commit Graph

3302 Commits

Author SHA1 Message Date
af702340a1 Merge remote-tracking branch 'origin/master' into parallel-wget
Conflicts:
	src/http.c
	testenv/Makefile.am
	testenv/Test--https.py
	testenv/Test--spider-r.py
	testenv/Test-Content-disposition-2.py
	testenv/Test-Content-disposition.py
	testenv/Test-Head.py
	testenv/Test-O.py
	testenv/Test-Parallel-Proto.py
	testenv/Test-Post.py
	testenv/Test-Proto.py
	testenv/Test-auth-basic-fail.py
	testenv/Test-auth-basic.py
	testenv/Test-auth-both.py
	testenv/Test-auth-digest.py
	testenv/Test-auth-no-challenge-url.py
	testenv/Test-auth-no-challenge.py
	testenv/Test-auth-retcode.py
	testenv/Test-auth-with-content-disposition.py
	testenv/Test-c-full.py
	testenv/Test-cookie-401.py
	testenv/Test-cookie-domain-mismatch.py
	testenv/Test-cookie-expires.py
	testenv/Test-cookie.py
	testenv/conf/__init__.py
	testenv/conf/authentication.py
	testenv/conf/expect_header.py
	testenv/conf/expected_files.py
	testenv/conf/expected_ret_code.py
	testenv/conf/files_crawled.py
	testenv/conf/hook_sample.py
	testenv/conf/local_files.py
	testenv/conf/reject_header.py
	testenv/conf/response.py
	testenv/conf/send_header.py
	testenv/conf/server_files.py
	testenv/conf/urls.py
	testenv/conf/wget_commands.py
	testenv/misc/colour_terminal.py
	testenv/server/http/http_server.py
	testenv/test/base_test.py
	testenv/test/http_test.py
2014-09-14 16:57:15 +05:30
f8e9a64ec7 Documentation and code cleanup in test suite
Add (lots) of documentation for various parts of the test suite in the
form of Python docstrings. Also, clean up some of the redundant code and
fix indentation issues.
2014-08-08 17:38:11 +05:30
5753ed4a72 Minor cleanup in the test suite
The server_conf hook and the server_sett() methods were no longer
required. The server configuration is currently being done by
server_conf() method in the server.
2014-08-04 20:03:59 +05:30
03f8babefe Group common switches in test suite together
Some command line switches are passed to Wget unconditionally. These
switches should exist in a single place instead of being redundantly
defined in each test file. We add the following two switches by default
here:
1. --debug: This causes wget to be most verbose and output a lot of
   debugging information. Hence, if a test fails, the test log should
   provide valuable information.
2. --no-config: Users may have their own wgetrc files on the system.
   However, for the tests, we want Wget to run with vanilla settings.
   Hence, disbale loading any config files.
2014-08-04 19:51:35 +05:30
3858500de4 Fix some texinfo warnings 2014-08-03 22:52:46 +02:00
e29020e10c Add a project gitignore file 2014-07-25 17:10:19 +05:30
be78cba9e5 Support running tests through valgrind 2014-07-24 16:51:58 +05:30
6cb857502f Document SERVER_WAIT 2014-07-24 16:51:58 +05:30
65fc59aefa Fix crash in test suite 2014-07-24 16:51:58 +05:30
8b83306d54 Refactor the Python based test suite
This is a squashed commit of the following from parallel-wget:
ecd6977 Refactor mainly the test cases classes
d26c8eb Create package test for test case classes
507383d Move server classes to package server.protocol
195393b Create package conf where rules and hooks are put
42e482a Create package exc and move TestFailed to exc
82f44f3 Fix a typo in Test-Proto.py
31e5f33 From WgetTest.py move WgetFile to misc
422171d Create package misc, move ColourTerm.py to misc
2014-07-24 16:51:58 +05:30
b89cda0a77 More features to Python based test suite
Squashed Commit from parallel-wget of:
b31e6e4 Add support for HTTPS Servers
b828a6e Sleep for n seconds before calling Wget Executable
7effa90 Support programatically setting Handler class variables
7e1f4c1 Correct the call to stop_HTTP_Server
f616192 Improve error handling when wget executable isn't available
31868fe Split large function to improve readability and extensibility
2014-07-24 16:51:58 +05:30
0606f1a133 testenv: Remove Test--spider-r.py from XFAIL_TESTS 2014-07-24 16:51:58 +05:30
c443399ab1 testenv: fix make dist 2014-07-24 16:51:58 +05:30
7cbe8141d1 Introducing Python based Test Environment
Squashed Commit, of the following commits:

7743384 Update documentation to reflect changes in code
b703633 Add feature that allows to ensure that Wget correctly crawls the website in recursive mode
0758f47 Add new test for recursive spider mode
43bb61b Smartly guess content type header
d4d0e63 Support substring replace in File Contents too
f578500 Compatibility fix with multiple servers
8b1a9b6 Extend Functionality to support spawning multiple servers
e84192a Use the provided calls to shutdown server instead of rewriting it
99659f3 Improve Documentation
cb94e52 Slight code cleanup. Remove unused code
886ac1a Shift to new Threading Model from Multiprocessing model
e74c2ec Add new test for POST Requests
48644f1 Print diff when file contents don't match
b6f9efe Add tests for Cookie support
4c9e6b4 Document pending work
e13bc90 Add new test to ensure Content Disposition and Auth work together
60d1f4d Add new Test for Continue command
738b299 Add test, Test-Head
9b9d16b Edit non-unique TEST_NAME variable
ae958db Minor optimizations to the way Server Rules are executed
50b4f0c The rules need not be a defaultdict.
dccc154 Introducing Python based Test Environment
2014-07-24 16:51:58 +05:30
eab853b7e6 Plug memory leaks 2014-07-24 14:23:43 +05:30
3d7797c46e main.c: update the --method description
The first line of a HTTP request is not a header, it is the start-line,
which for requests is called the request-line.

See http://tools.ietf.org/html/rfc7230#section-3.1
2014-07-23 18:46:21 +05:30
6140b1b6e3 Support running tests through valgrind 2014-07-23 18:42:43 +05:30
cae32d41c1 Fix broken check for libpsl 2014-07-22 22:11:32 +05:30
c22b806ee0 Document SERVER_WAIT 2014-07-22 12:49:46 +05:30
ca69294c8a syntax-check: fix tab-space indentation 2014-07-21 17:15:31 +02:00
a44841cbe2 Fix potential memory leak and libpsl configure 2014-07-21 13:25:54 +05:30
87a5922141 Merge remote-tracking branch 'origin/master' into parallel-wget
Conflicts:
	src/Makefile.am
	src/wget.h
2014-07-17 11:07:35 +02:00
e43ae39dff Fix checking of iconv_open return code.
Based on libiconv documentation, the iconv_open function returns
(iconv_t)(-1).

Signed-off-by: Tomas Hozza <thozza@redhat.com>
2014-07-08 17:01:17 +02:00
c5f2c7fcef Convert domains to lowercase before libpsl checks 2014-07-05 16:21:40 +05:30
550cd6e9d2 Fix indentation and remove excess variable 2014-07-05 16:18:38 +05:30
97ce41b2d0 Remove unused error codes 2014-07-05 16:18:31 +05:30
416d0e892c convert: initialize variable before usage. 2014-06-30 11:35:46 +02:00
e2c8436e17 warc: Avoid out-of-scope variable usage 2014-06-29 11:22:44 +02:00
ebda24eb69 Remove tab-space indentation 2014-06-28 17:53:42 +02:00
582e5d8ef7 Fix make syntax-check 2014-06-27 17:30:18 +02:00
601401da71 warc: Fix UUID generation on FreeBSD 2014-06-24 15:05:19 +02:00
99ccc492f4 Merge remote-tracking branch 'origin/master' into parallel-wget
Conflicts:
	src/progress.c
	src/retr.c
2014-06-22 20:17:50 +02:00
f3289f76ec Better align download percentage status 2014-06-22 14:53:24 +05:30
825716399c Fix crash in test suite 2014-06-22 01:06:08 +05:30
26787225c1 Fix build error on Windows 2014-06-21 18:41:49 +02:00
104fd20ac3 Add GOST94-GOST89-GOST89 and other ciphers support
It is done via one-time call OPENSSL_config. It will fix this error
`OpenSSL: error:140920F8:SSL routines:SSL3_GET_SERVER_HELLO:unknown
cipher returned`. OpenSSL with GOST-support and rebuilding wget
required
2014-06-21 18:33:41 +02:00
ca402e2f81 windows: do not dinamically allocate info->lfilename. 2014-06-19 20:25:27 +02:00
8445279306 Fix failing make check 2014-06-16 20:50:30 +05:30
bb025955c3 Fix a problem with ISA server proxy 2014-06-16 16:39:04 +02:00
08cedb953b Mark non returning functions 2014-06-16 18:25:44 +05:30
c03855be40 ftp: Replace main() with main in comments. 2014-06-12 18:49:16 +02:00
3e8f9a6436 Remove duplicated words 2014-06-12 18:49:15 +02:00
5a712b5bcf gnutls: do not include <assert.h> 2014-06-12 18:49:15 +02:00
964ba0a0d5 po/POTFILES.in: add missing file 2014-06-12 18:49:15 +02:00
ffccc7d3be Do not depend on always defined macros 2014-06-12 18:49:15 +02:00
d1ab00cab4 Replace @VAR@ in Makefile.am files with $VAR 2014-06-12 18:49:15 +02:00
dd1b69c600 Remove trailing empty lines 2014-06-12 18:49:15 +02:00
3b502901c0 Ensure main calls bindtextdomain 2014-06-12 18:49:14 +02:00
a22cd7394b Remove trailing whitespaces 2014-06-12 18:49:14 +02:00
8a83a9d893 Update fdl.texi from gnulib 2014-06-12 18:49:13 +02:00