Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions scripts/test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,29 @@ From root:

sh scripts/test/simple_tests.sh

#### Regression tests
#### pytest suite

They use the Python3 infrastructure in the `scripts/test` subdirectory, including `bt2face.py`, `dataface.py` and `btdata.py`.
The `test_*.py` modules in `scripts/test` exercise the `bowtie2`, `bowtie2-build` and `bowtie2-inspect` command lines, using small references generated from a fixed seed and the lambda phage example. Shared helpers are in `bt2_helpers.py` and fixtures in `conftest.py`. Requires Python 3 and `pytest`. Set `BOWTIE2_BIN_DIR` to test binaries built somewhere else.

From root:

python3 scripts/test/regressions.py --verbose
python3 -m pytest scripts/test

#### Regression tests

Tests for specific GitHub issues are in `scripts/test/test_regressions.py` and run as part of the pytest suite. Val Antonescu originally set these up.

From root:

Val Antonescu originally set these up.
python3 -m pytest scripts/test/test_regressions.py

#### Big index test

Builds an index consisting of both human and mouse genomes, pushing the genome size above the 2^32 limit, and necessitating a "big" 64-bit index. This takes a lot of time and RAM.
`scripts/test/test_large_genome.py` aligns reads cut from beyond, and across, the 2^32 offset of a prebuilt large (`.bt2l`) index whose reference exceeds 2^32 bases, such as a combined human and mouse index. Building such an index takes hours and tens of GB of memory, so the tests are skipped unless `BOWTIE2_LARGE_INDEX` names its prefix. Running them needs enough memory to load that index.

From root:

python3 scripts/test/large_idx.py --verbose
BOWTIE2_LARGE_INDEX=/path/to/hs_mm python3 -m pytest scripts/test/test_large_genome.py

#### Randomized tests

Expand Down
8 changes: 0 additions & 8 deletions scripts/test/big_data/reads/human_reads.fa

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/test/big_data/reads/mouse_reads.fa

This file was deleted.

39 changes: 0 additions & 39 deletions scripts/test/bt2face.py

This file was deleted.

192 changes: 0 additions & 192 deletions scripts/test/btdata.py

This file was deleted.

81 changes: 0 additions & 81 deletions scripts/test/dataface.py

This file was deleted.

Loading
Loading