mirror of
https://github.com/mirror/wget.git
synced 2025-02-16 14:50:08 +08:00
Corrections and amplifications to test documentation
* testenv/README: Update documentation to meet current project status * testenv/Test-Proto.py: Same
This commit is contained in:
parent
690c47e3b1
commit
ca1ee7d32f
@ -43,7 +43,8 @@ Working:
|
|||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
The Test Files are valid Python scripts and the default mask for them is 755.
|
The Test Files are valid Python scripts and the default mask for them is 755.
|
||||||
A singular Test must be invoked in the following manner:
|
A singular Test must be invoked in the following manner, with the current
|
||||||
|
directory being the testenv directory:
|
||||||
$ ./python3 <Name of Test File> OR
|
$ ./python3 <Name of Test File> OR
|
||||||
$ ./<Name of Test File>
|
$ ./<Name of Test File>
|
||||||
The script will then initialize the various elements and pass them to an object
|
The script will then initialize the various elements and pass them to an object
|
||||||
@ -137,7 +138,8 @@ Various variables used consistently across all tests are:
|
|||||||
* WGET_URLS: This is a list of filenames which will be appended as the URLs
|
* WGET_URLS: This is a list of filenames which will be appended as the URLs
|
||||||
to Wget during invocation. This is a list of lists, where WGET_URLS[0]
|
to Wget during invocation. This is a list of lists, where WGET_URLS[0]
|
||||||
represents the list of Filenames called from Server[0], WGET_URLS[1] is a
|
represents the list of Filenames called from Server[0], WGET_URLS[1] is a
|
||||||
list of files downloaded from Server[2], etc.
|
list of files downloaded from Server[2], etc. They must be relative URLs,
|
||||||
|
i.e., not start with "/".
|
||||||
* Files: This variable defines the files that exist in the Server's
|
* Files: This variable defines the files that exist in the Server's
|
||||||
filesystem. The Files variable is a list of lists of WgetFile objects.
|
filesystem. The Files variable is a list of lists of WgetFile objects.
|
||||||
This means that File[0] is a list of WgetFile objects that lie on Server[0],
|
This means that File[0] is a list of WgetFile objects that lie on Server[0],
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
from sys import exit
|
from sys import exit
|
||||||
from test.http_test import HTTPTest
|
from test.http_test import HTTPTest
|
||||||
from misc.constants import HTTP, HTTPS
|
from test.base_test import HTTP, HTTPS
|
||||||
from misc.wget_file import WgetFile
|
from misc.wget_file import WgetFile
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user