Skip to content

Commit

Permalink
README: suggest installing pieman package when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eugulixes committed Jul 13, 2020
1 parent ececdb1 commit ed0a561
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,17 +223,15 @@ To run the tests for the package, create a virtual environment, activate it and
```
$ virtualenv -p python3 pieman-env
$ source ./pieman-env/bin/activate
$ pip install -r pieman/pieman/requirements.txt
$ pip install pieman
```

Then run the tests from the Pieman source code directory in the following way:

```
$ env PYTHONPATH=$(pwd)/pieman python ./pieman/test/runtest.py
$ python ./pieman/test/runtest.py
```

Editing the `PYTHONPATH` environment variable is necessary to run the tests, using the latest version of the package.

To run the tests for the Pieman script, you will need both the above-mentioned virtual environment (because the Pieman script tests depends on the package tests) and [shUnit2](https://github.com/kward/shunit2). Install shUnit2 executing `sudo apt-get install shunit2` on Debian/Ubuntu or `sudo dnf install shunit2` on Fedora. Then, go to the `test` directory and run the tests in the following way:

```
Expand Down

0 comments on commit ed0a561

Please sign in to comment.