Skip to content

Commit

Permalink
Add README to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Nov 22, 2023
1 parent ced2f5d commit 47cc2b8
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion tests/README.md
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
```

0 comments on commit 47cc2b8

Please sign in to comment.