|
17 | 17 | echo "############### Running tests with framework $framework ###############"
|
18 | 18 | echo "#######################################################################"
|
19 | 19 |
|
20 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/poison/test_spectral_signature_defense.py --framework=$framework --skip_travis=True --durations=0 |
| 20 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/poison/test_spectral_signature_defense.py --framework=$framework --durations=0 |
21 | 21 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/detector/poison/test_spectral_signature_defense.py tests"; fi
|
22 | 22 |
|
23 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --framework=$framework --skip_travis=True --durations=0 |
| 23 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --framework=$framework --durations=0 |
24 | 24 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/preprocessor tests"; fi
|
25 | 25 |
|
26 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --framework=$framework --skip_travis=True --durations=0 |
| 26 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --framework=$framework --durations=0 |
27 | 27 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/transformer tests"; fi
|
28 | 28 |
|
29 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework=$framework --skip_travis=True --durations=0 |
| 29 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework=$framework --durations=0 |
30 | 30 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/audio tests"; fi
|
31 | 31 |
|
32 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework=$framework --skip_travis=True --durations=0 |
| 32 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework=$framework --durations=0 |
33 | 33 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/expectation_over_transformation tests"; fi
|
34 | 34 |
|
35 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --framework=$framework --skip_travis=True --durations=0 |
| 35 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --framework=$framework --durations=0 |
36 | 36 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed utils tests"; fi
|
37 | 37 |
|
38 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --framework=$framework --skip_travis=True --durations=0 |
| 38 | + pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --framework=$framework --durations=0 |
39 | 39 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/poison tests"; fi
|
40 | 40 |
|
41 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --framework=$framework --skip_travis=True --durations=0 |
| 41 | + pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --framework=$framework --durations=0 |
42 | 42 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/evasion/test_shadow_attack.py"; fi
|
43 | 43 |
|
44 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --framework=$framework --skip_travis=True --durations=0 |
| 44 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --framework=$framework --durations=0 |
45 | 45 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/speech_recognition tests"; fi
|
46 | 46 |
|
47 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --framework=$framework --skip_travis=True --durations=0 |
| 47 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --framework=$framework --durations=0 |
48 | 48 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/inference"; fi
|
49 | 49 |
|
50 | 50 | pytest -q -s tests/attacks/evasion/test_brendel_and_bethge.py --framework=$framework --durations=0
|
51 | 51 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/evasion/test_brendel_and_bethge.py"; fi
|
52 | 52 |
|
53 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --framework=$framework --skip_travis=True --durations=0 |
| 53 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --framework=$framework --durations=0 |
54 | 54 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed classifiersFrameworks tests"; fi
|
55 | 55 |
|
56 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor/test_spatial_smoothing_pytorch.py --framework=$framework --skip_travis=True --durations=0 |
| 56 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor/test_spatial_smoothing_pytorch.py --framework=$framework --durations=0 |
57 | 57 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/preprocessor/test_spatial_smoothing_pytorch.py tests"; fi
|
58 | 58 |
|
59 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_common.py --framework=$framework --skip_travis=True --durations=0 |
| 59 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_common.py --framework=$framework --durations=0 |
60 | 60 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/classification/test_deeplearning_common.py $framework"; fi
|
61 | 61 |
|
62 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_specific.py --framework=$framework --skip_travis=True --durations=0 |
| 62 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_specific.py --framework=$framework --durations=0 |
63 | 63 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/classification tests for framework $framework"; fi
|
64 | 64 |
|
65 |
| - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --framework=$framework --skip_travis=True --durations=0 |
| 65 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --framework=$framework --durations=0 |
66 | 66 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed metrics/privacy tests"; fi
|
67 | 67 | else
|
68 | 68 | declare -a attacks=("tests/attacks/test_adversarial_patch.py" \
|
|
166 | 166 | echo "######################################################################"
|
167 | 167 | echo ${test}
|
168 | 168 | echo "######################################################################"
|
169 |
| - coverage run --append -m unittest -v ${test} |
| 169 | +# coverage run --append -m unittest -v ${test} |
| 170 | + pytest --cov-report=xml --cov=art --cov-append -q -vv ${test} --durations=0 |
170 | 171 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed $test"; fi
|
171 | 172 | }
|
172 | 173 |
|
|
0 commit comments