summaryrefslogtreecommitdiff
path: root/tests/README
blob: 295632b5fe737f5e4db983d0e6062c9e6932755a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

The best way to run these tests is from the directory above this one. Source
the test.env environment file. This will make sure that you are using the
correct pexpect.py file otherwise Python might try to import a different
version if it is already installed in this environment. Then run the testall.py
script in the tools/ directory. This script will automatically build a test
suite from all the test scripts in the tests/ directory. This allows you to add
new test scripts simply by dropping them in the tests/ directory. You don't
have to register the test or do anything else to integrate it into the test
suite.

For example, this is the normal set of commands you would use to run all tests
in the tests/ directory:

    $ cd /home/user/pexpect_dev/
    $ . test.env
    $ ./tools/testall.py