GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  KCGIREGRESS (3)

NAME

kcgiregress, kcgi_regress_cgi, kcgi_regress_fcgi - regression framework for kcgi

CONTENTS

Library
Synopsis
Description
Return Values
Authors

LIBRARY


.Lb libkcgiregress

SYNOPSIS


.In kcgiregress.h int
.Fo kcgi_regress_cgi int (*client)(void *) void *clientData int (*server)(void *) void *serverData
.Fc int
.Fo kcgi_regress_fcgi int (*client)(void *) void *clientData int (*server)(void *) void *serverData
.Fc

DESCRIPTION

The kcgi_regress_cgi and kcgi_regress_fcgi functions are used for automated testing of kcgi(3) systems, both as CGI and FastCGI scripts. It is the mechanism used for internal regression tests as well.

Applications wishing to use this framework provide callback functions to kcgi_regress_cgi and kcgi_regress_fcgi, which invoke server with argument serverArg within a CGI or FastCGI environment as if it were spawned by a web server, upon which the usual khttp_parse(3) or khttp_fcgi_init(3) and khttp_fcgi_parse(3) functions are used to test behaviour. Meanwhile, the client function is invoked for communicating with the server over port 17123. The libcurl(3) library is used for internal testing on the client side.

In most applications, the main function invokes kcgi_regress_cgi or kcgi_regress_fcgi, prepares a libCURL request in the client callback, then runs the usual kcgi(3) sequence in the server callback.

RETURN VALUES

Both the client and server functions should return zero on test failure. kcgi_regress_cgi and kcgi_regress_fcgi return zero if any tests or internal machinery fail.

AUTHORS

The kcgiregress library was written by
.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv .
Search for    or go to Top of page |  Section 3 |  Main Index


Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.