Apache2-API

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

- `-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
    t/TEST -run-tests
    t/TEST -stop-httpd

You can run `t/TEST -help` to get the list of options. See below as well:

- `-breakpoint=bp`

    set breakpoints (multiply bp can be set)

- `-bugreport`

    print the hint how to report problems

- `-clean`

    remove all generated test files

- `-configure`

    force regeneration of httpd.conf  (tests will not be run)

- `-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 in 1.142 second using v1.01-cache-2.11-cpan-9789f410c06 )