Add unittests and related scripts
To run tests, navigate to Athos/tests directory (or provide path to pytest): 1. Run all tests with target as CPP. Backend can be CPP,3PC,2PC_HE,2PC_OT pytest -rs . --backend="CPP" 2. Run a specific test. pytest -rs . -k "test_arith_binop" --backend="CPP" 3. Run and generate a coverage report pytest --cov --cov-report html --cov-config=pytest_coverage_tf.config . Install pytest and pytest-cov to run the above commands.
Showing
- Athos/tests/conftest.py 65 additions, 0 deletionsAthos/tests/conftest.py
- Athos/tests/pytest.ini 2 additions, 0 deletionsAthos/tests/pytest.ini
- Athos/tests/pytest_coverage_tf.config 12 additions, 0 deletionsAthos/tests/pytest_coverage_tf.config
- Athos/tests/tf/unittests/test_arith_binops.py 175 additions, 0 deletionsAthos/tests/tf/unittests/test_arith_binops.py
- Athos/tests/tf/unittests/test_batchnorm.py 48 additions, 0 deletionsAthos/tests/tf/unittests/test_batchnorm.py
- Athos/tests/tf/unittests/test_convolution.py 90 additions, 0 deletionsAthos/tests/tf/unittests/test_convolution.py
- Athos/tests/tf/unittests/test_non_linear.py 58 additions, 0 deletionsAthos/tests/tf/unittests/test_non_linear.py
- Athos/tests/tf/unittests/test_shape_manipulation.py 297 additions, 0 deletionsAthos/tests/tf/unittests/test_shape_manipulation.py
- Athos/tests/tf/unittests/test_unaryops.py 194 additions, 0 deletionsAthos/tests/tf/unittests/test_unaryops.py
- Athos/tests/utils.py 199 additions, 0 deletionsAthos/tests/utils.py
Loading
Please register or sign in to comment