Apache2-API

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

- `-bindir`

    Apache bin/ dir (default is `apxs -q BINDIR`)

- `-cgi_module_name`

    cgi module name

- `-defines`

    values to add as `-D` defines (for example, `"VAR1 VAR2"`)

- `-documentroot`

    DocumentRoot (default is `$ServerRoot/htdocs`

- `-group`

    Group to run test server as (default is `$GROUP`)

- `-httpd`

    server to use for testing (default is `$bindir/httpd`)

- `-httpd_conf`

    inherit config from this file (default is apxs derived)

- `-httpd_conf_extra`

    inherit additional config from this file

- `-libmodperl`

    path to mod\_perl's .so (full or relative to LIBEXECDIR)

- `-limitrequestline`

    global LimitRequestLine setting (default is `128`)

- `-maxclients`

    maximum number of concurrent clients (default is minclients+1)

- `-minclients`

    minimum number of concurrent clients (default is `1`)

- `-perlpod`

    location of perl pod documents (for testing downloads)

- `-php_module_name`

    php module name

- `-port`

    Port \[port\_number|select\] (default `8529`)

- `-proxyssl_url`

    url for testing ProxyPass / https (default is localhost)

- `-sbindir`

    Apache sbin/ dir (default is `apxs -q SBINDIR`)

- `-servername`

    ServerName (default is `localhost`)

- `-serverroot`

    ServerRoot (default is `$t_dir`)

- `-src_dir`

    source directory to look for `mod_foos.so`

- `-ssl_module_name`

    ssl module name

- `-sslca`

    location of SSL CA (default is `$t_conf/ssl/ca`)

- `-sslcaorg`

    SSL CA organization to use for tests (default is asf)

- `-sslproto`

    SSL/TLS protocol version(s) to test

- `-startup_timeout`

    seconds to wait for the server to start (default is `60`)

- `-t_conf`

    the conf/ test directory (default is `$t_dir/conf`)

- `-t_conf_file`

    test httpd.conf file (default is `$t_conf/httpd.conf`)

- `-t_dir`

    the t/ test directory (default is `$top_dir/t`)

- `-t_logs`

    the logs/ test directory (default is `$t_dir/logs`)

- `-t_pid_file`

    location of the pid file (default is `$t_logs/httpd.pid`)

- `-t_state`

    the state/ test directory (default is `$t_dir/state`)

- `-target`

    name of server binary (default is `apxs -q TARGET`)

- `-thread_module_name`

    thread module name

- `-threadsperchild`

    number of threads per child when using threaded MPMs (default is `10`)

- `-top_dir`

    top-level directory (default is `$PWD`)

- `-user`

    User to run test server as (default is `$USER`)

See also [Apache::TestMM](https://metacpan.org/pod/Apache%3A%3ATestMM) for available parameters or you can type on the command line:

    perl -MApache::TestConfig -le 'Apache::TestConfig::usage()'

## Tesging options

For example, specifying a port to use:

    t/TEST -start-httpd -port=34343

README.md  view on Meta::CPAN

- `-debug[=name]`

    start server under debugger name (gdb, ddd, etc.)

- `-get`

    GET url

- `-head`

    HEAD url

- `-header`

    add headers to (get|post|head) request

- `-help`

    display this message

- `-http11`

    run all tests with `HTTP/1.1` (keep alive) requests

- `-no-httpd`

    run the tests without configuring or starting httpd

- `-one-process`

    run the server in single process mode

- `-order=mode`

    run the tests in one of the modes: (repeat|random|SEED)

- `-ping[=block]`

    test if server is running or port in use

- `-post`

    POST url

- `-postamble`

    config to add at the end of `httpd.conf`

- `-preamble`

    config to add at the beginning of `httpd.conf`

- `-proxy`

    proxy requests (default proxy is localhost)

- `-run-tests`

    run the tests

- `-ssl`

    run tests through ssl

- `-start-httpd`

    start the test server

- `-stop-httpd`

    stop the test server

- `-trace=T`

    change tracing default to: warning, notice, info, debug, ...

- `-verbose[=1]`

    verbose output

See for more information [https://perl.apache.org/docs/general/testing/testing.html](https://perl.apache.org/docs/general/testing/testing.html)

## API CORE MODULES

[Apache2::RequestIO](https://metacpan.org/pod/Apache2%3A%3ARequestIO), [Apache2::RequestRec](https://metacpan.org/pod/Apache2%3A%3ARequestRec)

# AUTHOR

Jacques Deguest <`jack@deguest.jp`>

# SEE ALSO

[Apache2::API::DateTime](https://metacpan.org/pod/Apache2%3A%3AAPI%3A%3ADateTime), [Apache2::API::Query](https://metacpan.org/pod/Apache2%3A%3AAPI%3A%3AQuery), [Apache2::API::Request](https://metacpan.org/pod/Apache2%3A%3AAPI%3A%3ARequest), [Apache2:...

[Apache2::Request](https://metacpan.org/pod/Apache2%3A%3ARequest), [Apache2::RequestRec](https://metacpan.org/pod/Apache2%3A%3ARequestRec), [Apache2::RequestUtil](https://metacpan.org/pod/Apache2%3A%3ARequestUtil)

# COPYRIGHT & LICENSE

Copyright (c) 2023 DEGUEST Pte. Ltd.

You can use, copy, modify and redistribute this package and associated
files under the same terms as Perl itself.



( run in 1.047 second using v1.01-cache-2.11-cpan-acf6aa7dc9e )