|
19 | 19 | echo "############### Running tests with framework $framework ###############" |
20 | 20 | echo "#######################################################################" |
21 | 21 |
|
22 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/evasion --framework=$framework --durations=20 --durations-min=0 -n auto |
| 22 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/evasion --framework=$framework --durations=20 --durations-min=0 |
23 | 23 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/detector/evasion tests"; fi |
24 | 24 |
|
25 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/poison/test_spectral_signature_defense.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 25 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/poison/test_spectral_signature_defense.py --framework=$framework --durations=20 --durations-min=0 |
26 | 26 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/detector/poison/test_spectral_signature_defense.py tests"; fi |
27 | 27 |
|
28 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --framework=$framework --durations=20 --durations-min=0 -n auto |
| 28 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --framework=$framework --durations=20 --durations-min=0 |
29 | 29 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/preprocessor tests"; fi |
30 | 30 |
|
31 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/trainer --framework=$framework --durations=20 --durations-min=0 -n auto |
| 31 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/trainer --framework=$framework --durations=20 --durations-min=0 |
32 | 32 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/trainer tests"; fi |
33 | 33 |
|
34 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --framework=$framework --durations=20 --durations-min=0 -n auto |
| 34 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --framework=$framework --durations=20 --durations-min=0 |
35 | 35 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed defences/transformer tests"; fi |
36 | 36 |
|
37 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework=$framework --durations=20 --durations-min=0 -n auto |
| 37 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework=$framework --durations=20 --durations-min=0 |
38 | 38 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/audio tests"; fi |
39 | 39 |
|
40 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/image --framework=$framework --durations=20 --durations-min=0 -n auto |
| 40 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/image --framework=$framework --durations=20 --durations-min=0 |
41 | 41 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/image tests"; fi |
42 | 42 |
|
43 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework=$framework --durations=20 --durations-min=0 -n auto |
| 43 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework=$framework --durations=20 --durations-min=0 |
44 | 44 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed preprocessing/expectation_over_transformation tests"; fi |
45 | 45 |
|
46 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --framework=$framework --durations=20 --durations-min=0 -n auto |
| 46 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --framework=$framework --durations=20 --durations-min=0 |
47 | 47 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed utils tests"; fi |
48 | 48 |
|
49 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 49 | + pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --framework=$framework --durations=20 --durations-min=0 |
50 | 50 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/poison tests"; fi |
51 | 51 |
|
52 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 52 | + pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --framework=$framework --durations=20 --durations-min=0 |
53 | 53 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/evasion"; fi |
54 | 54 |
|
55 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 55 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --framework=$framework --durations=20 --durations-min=0 |
56 | 56 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/speech_recognition tests"; fi |
57 | 57 |
|
58 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 58 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --framework=$framework --durations=20 --durations-min=0 |
59 | 59 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed attacks/inference"; fi |
60 | 60 |
|
61 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 61 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --framework=$framework --durations=20 --durations-min=0 |
62 | 62 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed classifiersFrameworks tests"; fi |
63 | 63 |
|
64 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_common.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 64 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_common.py --framework=$framework --durations=20 --durations-min=0 |
65 | 65 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/classification/test_deeplearning_common.py $framework"; fi |
66 | 66 |
|
67 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_specific.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 67 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_specific.py --framework=$framework --durations=20 --durations-min=0 |
68 | 68 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/classification tests for framework $framework"; fi |
69 | 69 |
|
70 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/certification/ --framework=$framework --durations=20 --durations-min=0 -n auto |
| 70 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/certification/ --framework=$framework --durations=20 --durations-min=0 |
71 | 71 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/certification tests for framework $framework"; fi |
72 | 72 |
|
73 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_blackbox_existing_predictions.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 73 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_blackbox_existing_predictions.py --framework=$framework --durations=20 --durations-min=0 |
74 | 74 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/classification/test_blackbox_existing_predictions.py $framework"; fi |
75 | 75 |
|
76 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/regression/test_blackbox.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 76 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/regression/test_blackbox.py --framework=$framework --durations=20 --durations-min=0 |
77 | 77 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed estimators/regression/test_blackbox.py $framework"; fi |
78 | 78 |
|
79 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --framework=$framework --durations=20 --durations-min=0 -n auto |
| 79 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --framework=$framework --durations=20 --durations-min=0 |
80 | 80 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed metrics/privacy tests"; fi |
81 | 81 |
|
82 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/evaluations --framework=$framework --durations=20 --durations-min=0 -n auto |
| 82 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/evaluations --framework=$framework --durations=20 --durations-min=0 |
83 | 83 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed evaluations tests"; fi |
84 | 84 |
|
85 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv tests/test_summary_writer.py --framework=$framework --durations=20 --durations-min=0 -n auto |
| 85 | + pytest --cov-report=xml --cov=art --cov-append -q -vv tests/test_summary_writer.py --framework=$framework --durations=20 --durations-min=0 |
86 | 86 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed summary writer tests"; fi |
87 | 87 |
|
88 | 88 | else |
|
174 | 174 | echo "######################################################################" |
175 | 175 | echo ${test} |
176 | 176 | echo "######################################################################" |
177 | | - pytest --cov-report=xml --cov=art --cov-append -q -vv ${test} --durations=20 --durations-min=0 -n auto |
| 177 | + pytest --cov-report=xml --cov=art --cov-append -q -vv ${test} --durations=20 --durations-min=0 |
178 | 178 | if [[ $? -ne 0 ]]; then exit_code=1; echo "Failed $test"; fi |
179 | 179 | } |
180 | 180 |
|
|
0 commit comments