forked from Trusted-AI/adversarial-robustness-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.sh
executable file
·25 lines (25 loc) · 1.05 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
exit_code=0
python -m unittest discover tests/attacks -p 'test_[a-i]*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/attacks -p 'test_[j-z]*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/classifiers -p 'test_*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/defences -p 'test_*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/detection -p 'test_*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/poison_detection -p 'test_*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest discover tests/wrappers -p 'test_*.py'
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest tests.test_data_generators
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest tests.test_metrics
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest tests.test_utils
if [[ $? -ne 0 ]]; then exit_code=1; fi
python -m unittest tests.test_visualization
if [[ $? -ne 0 ]]; then exit_code=1; fi
exit $exit_code