run_test.sh 535 Bytes
Newer Older
moto's avatar
moto committed
1
2
3
4
#!/usr/bin/env bash

set -e

5
6
7
8
9
10
case "$(uname -s)" in
    Darwin*) os=MacOSX;;
    *) os=Linux
esac


moto's avatar
moto committed
11
12
13
14
eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

python -m torch.utils.collect_env
15
export TORCHAUDIO_TEST_FAIL_IF_NO_EXTENSION=1
moto's avatar
moto committed
16
export PATH="${PWD}/third_party/install/bin/:${PATH}"
17
18
19
20
21
22

if [ "${os}" == MacOSX ] ; then
    pytest -q -n auto --dist=loadscope --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
else
    pytest -v --cov=torchaudio --junitxml=test-results/junit.xml --durations 20 test
fi