A simple forking web proxy.
To build the proxy, run
make
Then you can run the proxy from the current directory
./proxy -h
Running the test suite requires Kyua and ATF to be installed.
Kyua is a testing framework for infrastructure software. It supports running test case written with the ATF libraries.
ATF is an Automated Testing Framework. It consists of C/C++/sh libraries for writing test programs.
On the SSU blue server, Kyua and ATF are made available through a publicly
accessible prefix. This is automatically configured by the _test-env
script
when running tests through the Makefile.
To run the tests and display a summary of the results:
make test
First, source the _test-env
script in your shell. This adds the project root
directory to the PATH environment variable, and on blue it adds the prefix for
Kyua and ATF to the PATH as well.
. ./_test-env
To list the available tests:
kyua list
To run all the test suites for the project:
kyua test
To view a detailed report of the last test results:
kyua report --verbose
To run a particular test case:
kyua debug tests/requests:request1
Tests that require significant time or space to complete are disabled by default unless running on blue.
To enable the extended tests when not running on blue, invoke Kyua as
kyua -v test_suites.basic.skip_extended_tests=no test
Conversely, to disable the extended tests when running on blue, invoke Kyua as
kyua -v test_suites.basic.skip_extended_tests=yes test
The variable can also be configured in your kyua.conf
. See the documentation
for kyua.conf
for details.