@@ -8,61 +8,61 @@ export TF_CPP_MIN_LOG_LEVEL="3"
88
99# NOTE: All the tests should be ran within this loop. All other tests are legacy tests that must be
1010# made framework independent to be incorporated within this loop
11- mlFrameworkList =(" tensorflow" " keras" " pytorch" " scikitlearn" " mxnet" " kerastf" )
12- mlFramework =$1
11+ frameworkList =(" tensorflow" " keras" " pytorch" " scikitlearn" " mxnet" " kerastf" )
12+ framework =$1
1313
14- if [[ ${mlFramework } != " legacy" ]]
14+ if [[ ${framework } != " legacy" ]]
1515then
1616 echo " #######################################################################"
17- echo " ############## Running tests with framework $mlFramework ##############"
17+ echo " ############### Running tests with framework $framework # ##############"
1818 echo " #######################################################################"
1919
20- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/detector/poison/test_spectral_signature_defense.py --mlFramework= $mlFramework --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 --skip_travis=True --durations=0
2121 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed defences/detector/poison/test_spectral_signature_defense.py tests" ; fi
2222
23- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --mlFramework= $mlFramework --skip_travis=True --durations=0
23+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor --framework= $framework --skip_travis=True --durations=0
2424 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed defences/preprocessor tests" ; fi
2525
26- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --mlFramework= $mlFramework --skip_travis=True --durations=0
26+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/transformer --framework= $framework --skip_travis=True --durations=0
2727 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed defences/transformer tests" ; fi
2828
29- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --mlFramework= $mlFramework --skip_travis=True --durations=0
29+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/audio --framework= $framework --skip_travis=True --durations=0
3030 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed preprocessing/audio tests" ; fi
3131
32- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --mlFramework= $mlFramework --skip_travis=True --durations=0
32+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/preprocessing/expectation_over_transformation --framework= $framework --skip_travis=True --durations=0
3333 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed preprocessing/expectation_over_transformation tests" ; fi
3434
35- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --mlFramework= $mlFramework --skip_travis=True --durations=0
35+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/utils --framework= $framework --skip_travis=True --durations=0
3636 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed utils tests" ; fi
3737
38- pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --mlFramework= $mlFramework --skip_travis=True --durations=0
38+ pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/poison/ --framework= $framework --skip_travis=True --durations=0
3939 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed attacks/poison tests" ; fi
4040
41- pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --mlFramework= $mlFramework --skip_travis=True --durations=0
41+ pytest --cov-report=xml --cov=art --cov-append -q -vv -s tests/attacks/evasion/ --framework= $framework --skip_travis=True --durations=0
4242 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed attacks/evasion/test_shadow_attack.py" ; fi
4343
44- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --mlFramework= $mlFramework --skip_travis=True --durations=0
44+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/speech_recognition/ --framework= $framework --skip_travis=True --durations=0
4545 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed estimators/speech_recognition tests" ; fi
4646
47- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --mlFramework= $mlFramework --skip_travis=True --durations=0
47+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/attacks/inference/ --framework= $framework --skip_travis=True --durations=0
4848 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed attacks/inference" ; fi
4949
50- pytest -q -s tests/attacks/evasion/test_brendel_and_bethge.py --mlFramework= $mlFramework --durations=0
50+ pytest -q -s tests/attacks/evasion/test_brendel_and_bethge.py --framework= $framework --durations=0
5151 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed attacks/evasion/test_brendel_and_bethge.py" ; fi
5252
53- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --mlFramework= $mlFramework --skip_travis=True --durations=0
53+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/classifiersFrameworks/ --framework= $framework --skip_travis=True --durations=0
5454 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed classifiersFrameworks tests" ; fi
5555
56- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/defences/preprocessor/test_spatial_smoothing_pytorch.py --mlFramework= $mlFramework --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 --skip_travis=True --durations=0
5757 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed defences/preprocessor/test_spatial_smoothing_pytorch.py tests" ; fi
5858
59- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_common.py --mlFramework= $mlFramework --skip_travis=True --durations=0
60- if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed estimators/classification/test_deeplearning_common.py $mlFramework " ; fi
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
60+ if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed estimators/classification/test_deeplearning_common.py $framework " ; fi
6161
62- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/estimators/classification/test_deeplearning_specific.py --mlFramework= $mlFramework --skip_travis=True --durations=0
63- if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed estimators/classification tests for framework $mlFramework " ; fi
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
63+ if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed estimators/classification tests for framework $framework " ; fi
6464
65- pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --mlFramework= $mlFramework --skip_travis=True --durations=0
65+ pytest --cov-report=xml --cov=art --cov-append -q -vv tests/metrics/privacy --framework= $framework --skip_travis=True --durations=0
6666 if [[ $? -ne 0 ]]; then exit_code=1; echo " Failed metrics/privacy tests" ; fi
6767else
6868 declare -a attacks=(" tests/attacks/test_adversarial_patch.py" \
0 commit comments