Skip to content

Commit

Permalink
refactor: rename old_tests/ to system_tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
dlshriver committed Dec 6, 2021
1 parent 92dada1 commit ca562da
Show file tree
Hide file tree
Showing 40 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Prepare Test Artifacts
run: |
. .venv/bin/activate
python tests/old_tests/artifacts/build_artifacts.py
python tests/system_tests/artifacts/build_artifacts.py
- name: Run DNNV Test Suite
run: |
Expand Down
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ ENV/
/share/
/data/
/artifacts/
/tests/old_tests/artifacts/networks/*.onnx
!/tests/old_tests/artifacts/networks/dave.onnx
!/tests/old_tests/artifacts/networks/dronet.onnx
!/tests/old_tests/artifacts/networks/convSmallRELU__Point.onnx
!/tests/old_tests/artifacts/networks/mnist_relu_3_50.onnx
!/tests/old_tests/artifacts/networks/mnist_300_200_100.onnx
*.onnx
!/tests/system_tests/artifacts/networks/dave.onnx
!/tests/system_tests/artifacts/networks/dronet.onnx
!/tests/system_tests/artifacts/networks/convSmallRELU__Point.onnx
!/tests/system_tests/artifacts/networks/mnist_relu_3_50.onnx
!/tests/system_tests/artifacts/networks/mnist_300_200_100.onnx
.dnnv/
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ COPY --chown=dnnv dnnv/__init__.py dnnv/__version__.py dnnv/
RUN . .venv/bin/activate && flit install -s

# build test artifacts
COPY --chown=dnnv tests/old_tests/artifacts/build_artifacts.py tests/old_tests/artifacts/build_artifacts.py
RUN . .venv/bin/activate && python tests/old_tests/artifacts/build_artifacts.py
COPY --chown=dnnv tests/system_tests/artifacts/build_artifacts.py tests/system_tests/artifacts/build_artifacts.py
RUN . .venv/bin/activate && python tests/system_tests/artifacts/build_artifacts.py

# copy project files to container
COPY --chown=dnnv . .
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ dnnv_manage = "dnnv._manage.__main__:_main"

[tool.coverage.run]
branch = true
command_line = "-m pytest tests/unit_tests tests/old_tests/verifiers_tests --ff --verbose --import-mode=importlib --full-trace"
command_line = "-m pytest tests/unit_tests tests/system_tests --ff --verbose --import-mode=importlib --full-trace"
parallel = true
source = ["dnnv"]
omit = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.bab import BaB

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not BaB.is_installed(), "BaB is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.babsb import BaBSB

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not BaBSB.is_installed(), "BaBSB is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.eran import ERAN

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not ERAN.is_installed(), "ERAN is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.marabou import Marabou

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not Marabou.is_installed(), "Marabou is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.mipverify import MIPVerify

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not MIPVerify.is_installed(), "MIPVerify is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from dnnv.verifiers.reluplex import Reluplex
from dnnv.verifiers.verinet import VeriNet

from old_tests.utils import network_artifact_dir, property_artifact_dir
from system_tests.utils import network_artifact_dir, property_artifact_dir

RUNS_PER_PROP = int(os.environ.get("_DNNV_TEST_RUNS_PER_PROP", "1"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.neurify import Neurify

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not Neurify.is_installed(), "Neurify is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.nnenum import Nnenum

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not Nnenum.is_installed(), "nnenum is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.planet import Planet

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not Planet.is_installed(), "Planet is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from dnnv.verifiers.reluplex import Reluplex
from dnnv.verifiers.verinet import VeriNet

from old_tests.utils import network_artifact_dir, property_artifact_dir
from system_tests.utils import network_artifact_dir, property_artifact_dir

RUNS_PER_PROP = int(os.environ.get("_DNNV_TEST_RUNS_PER_PROP", "1"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.reluplex import Reluplex

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not Reluplex.is_installed(), "Reluplex is not installed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from dnnv.properties import get_context
from dnnv.verifiers import SAT, UNSAT, UNKNOWN

from old_tests.utils import network_artifact_dir, property_artifact_dir
from system_tests.utils import network_artifact_dir, property_artifact_dir

RUNS_PER_PROP = int(os.environ.get("_DNNV_TEST_RUNS_PER_PROP", "1"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dnnv.verifiers.verinet import VeriNet

from old_tests.verifiers_tests.utils import VerifierTests
from system_tests.verifiers_tests.utils import VerifierTests


@unittest.skipIf(not VeriNet.is_installed(), "VeriNet is not installed")
Expand Down

0 comments on commit ca562da

Please sign in to comment.