Blame tests/unit_testing.sh
|
Vojtech Trefny |
66ecf7 |
#!/bin/bash
|
|
Vojtech Trefny |
66ecf7 |
|
|
Vojtech Trefny |
66ecf7 |
# Bail out if anything goes wrong
|
|
Vojtech Trefny |
66ecf7 |
set -e
|
|
Vojtech Trefny |
66ecf7 |
|
|
Vojtech Trefny |
66ecf7 |
# Get path to blivet
|
|
Vojtech Trefny |
66ecf7 |
blivet_path=$(find /usr/ -path */site-packages/)
|
|
Vojtech Trefny |
66ecf7 |
|
|
Vojtech Trefny |
66ecf7 |
# Run upstream unit tests
|
|
Vojtech Trefny |
66ecf7 |
cd ./source/
|
|
Vojtech Trefny |
66ecf7 |
PYTHONPATH=$PYTHONPATH:$blivet_path python3 -m unittest discover -v -s ./tests/ -p '*_test.py'
|
|
Vojtech Trefny |
66ecf7 |
|