forked from google/osv.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests.sh
executable file
·26 lines (22 loc) · 917 Bytes
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash -ex
if [ "$USE_POETRY" == "true" ]
then
poetry install
poetry run python -m unittest osv.bug_test
poetry run python -m unittest osv.purl_helpers_test
poetry run python -m unittest osv.request_helper_test
poetry run python -m unittest osv.semver_index_test
poetry run python -m unittest osv.impact_test
# Run all osv.ecosystems tests
poetry run python -m unittest discover osv/ecosystems/ "*_test.py" .
exit 0
fi
export PIPENV_IGNORE_VIRTUALENVS=1
python3 -m pipenv sync
python3 -m pipenv run python -m unittest osv.bug_test
python3 -m pipenv run python -m unittest osv.purl_helpers_test
python3 -m pipenv run python -m unittest osv.request_helper_test
python3 -m pipenv run python -m unittest osv.semver_index_test
python3 -m pipenv run python -m unittest osv.impact_test
# Run all osv.ecosystems tests
python3 -m pipenv run python -m unittest discover osv/ecosystems/ "*_test.py" .