Skip to content

Commit

Permalink
fix #396
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Lvov committed Jan 30, 2017
1 parent 6be42ce commit f1fab4c
Show file tree
Hide file tree
Showing 24 changed files with 1,493 additions and 363 deletions.
56 changes: 56 additions & 0 deletions tempesta_fw/t/functional/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@

# Tempesta FW Functional tests.

## Prerequisites

Before runing functional tests you need to compile the Tempesta with its prerequisites.
Most of the functional test use the Apache web server as back-end. So you need to install it.
A Integrated test back-end requires package python-setproctitle.


## Run tests

To run one test you can use from a tempesta directory:

$ tempesta_fw/t/functional/run_tests.sh [test_name]

Or:

$ tempesta_fw/t/functional/tests.py [test_name]

To run all tests:

$ tempesta_fw/t/functional/run_tests.sh all

Or:

$ tempesta_fw/t/functional/tests.py all

To set the ip port of the test http backend server you can use a parameter:

-p <port>.

For example:

$ tempesta_fw/t/functional/run_tests.sh test_parser -p 8080




## Add new tests

To add new tests you need to write a new functional tests in python and
put it in directory:

$ tempesta_fw/t/functional/tests/

And add the name of the new test in the init-file:


$ tempesta_fw/t/functional/tests/\_\_init\_\_.py.

When you write functional test, you can use helper modules from

$ tempesta_fw/t/functional/test/helpers/


96 changes: 0 additions & 96 deletions tempesta_fw/t/functional/fragmented_requests.py

This file was deleted.

1 change: 0 additions & 1 deletion tempesta_fw/t/functional/helpers/__init__.py

This file was deleted.

122 changes: 0 additions & 122 deletions tempesta_fw/t/functional/helpers/be.py

This file was deleted.

20 changes: 0 additions & 20 deletions tempesta_fw/t/functional/helpers/cli.py

This file was deleted.

60 changes: 0 additions & 60 deletions tempesta_fw/t/functional/helpers/teardown.py

This file was deleted.

Loading

0 comments on commit f1fab4c

Please sign in to comment.