-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,32 @@ | ||
# Bless tests | ||
# HyperQueue test suite | ||
This directory contains the Python test suite of HyperQueue. | ||
|
||
## Usage | ||
The following commands are supposed to be executed from the root HyperQueue directory. | ||
|
||
1) Install `pytest` and other dependencies | ||
```bash | ||
$ python -m pip install tests/requirements.txt | ||
``` | ||
2) Run tests | ||
```bash | ||
$ python -m pytest tests | ||
``` | ||
|
||
You can speed up test execution by running them in parallel: | ||
```bash | ||
$ python -m pytest tests -n16 | ||
``` | ||
|
||
### Running autoalloc tests | ||
There are several tests for the automatic allocator that require the presence of an external service (PBS). | ||
If you are on a system that has these services installed, you can run these tests with the `pbs` mark: | ||
```bash | ||
$ python -m pytest tests -m pbs | ||
``` | ||
|
||
## Blessing | ||
You can bless tests with the following command: | ||
```bash | ||
$ python -m pytest --inline-snapshot=create | ||
``` |