run_test.sh 401 Bytes
Newer Older
moto's avatar
moto committed
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

set -e

eval "$(./conda/bin/conda shell.bash hook)"
conda activate ./env

python -m torch.utils.collect_env
9
export TORCHAUDIO_TEST_FAIL_IF_NO_EXTENSION=1
moto's avatar
moto committed
10
export PATH="${PWD}/third_party/install/bin/:${PATH}"
11

12
13
declare -a args=(
    '-v'
14
15
16
17
    '--cov=torchaudio'
    "--junitxml=${PWD}/test-results/junit.xml"
    '--durations' '20'
)
18

19
cd test
20
pytest "${args[@]}" torchaudio_unittest