From 658d12765b103405f7965a0d3c5e399446654686 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 11 May 2022 01:21:54 -0700 Subject: [PATCH] add pytest config -- it ignores some borked files --- pyproject.toml | 22 +++++++++++++++++++ src/ieee754/add/test_dual.py | 1 + src/ieee754/add/test_fpnum.py | 1 + src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py | 1 + src/ieee754/fpadd/test/test_add16.py | 1 + src/ieee754/fpadd/test/test_add64.py | 1 + src/ieee754/fpadd/test/test_add_base.py | 1 + 7 files changed, 28 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..267ae9af --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,22 @@ +[tool.pytest.ini_options] +minversion = "6.0" +python_classes = "" +python_functions = "" +testpaths = ["src/ieee754"] +required_plugins = ["pytest-xdist>=1.0.0"] +addopts = [ + "-n", + "auto", + "--ignore", + "src/ieee754/add/test_dual.py", + "--ignore", + "src/ieee754/add/test_fpnum.py", + "--ignore", + "src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py", + "--ignore", + "src/ieee754/fpadd/test/test_add16.py", + "--ignore", + "src/ieee754/fpadd/test/test_add64.py", + "--ignore", + "src/ieee754/fpadd/test/test_add_base.py", +] diff --git a/src/ieee754/add/test_dual.py b/src/ieee754/add/test_dual.py index 15f5c762..90dd5b1a 100644 --- a/src/ieee754/add/test_dual.py +++ b/src/ieee754/add/test_dual.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports from sfpy import Float32 from nmigen.compat.sim import run_simulation from dual_add_experiment import ALU diff --git a/src/ieee754/add/test_fpnum.py b/src/ieee754/add/test_fpnum.py index 1d018b3f..ef08b626 100644 --- a/src/ieee754/add/test_fpnum.py +++ b/src/ieee754/add/test_fpnum.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports from random import randint from nmigen import Module, Signal from nmigen.compat.sim import run_simulation diff --git a/src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py b/src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py index 0febfe1b..64c61322 100644 --- a/src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py +++ b/src/ieee754/fcvt/test/test_fcvt_pipe_64_32.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports """ test of FPCVTMuxInOut """ diff --git a/src/ieee754/fpadd/test/test_add16.py b/src/ieee754/fpadd/test/test_add16.py index a92ccda2..e8d48e4f 100644 --- a/src/ieee754/fpadd/test/test_add16.py +++ b/src/ieee754/fpadd/test/test_add16.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports from operator import add from nmigen import Module, Signal diff --git a/src/ieee754/fpadd/test/test_add64.py b/src/ieee754/fpadd/test/test_add64.py index ec16563e..2c35dea4 100644 --- a/src/ieee754/fpadd/test/test_add64.py +++ b/src/ieee754/fpadd/test/test_add64.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports from nmigen import Module, Signal from nmigen.compat.sim import run_simulation from operator import add diff --git a/src/ieee754/fpadd/test/test_add_base.py b/src/ieee754/fpadd/test/test_add_base.py index 248f719a..b030c88c 100644 --- a/src/ieee754/fpadd/test/test_add_base.py +++ b/src/ieee754/fpadd/test/test_add_base.py @@ -1,3 +1,4 @@ +# FIXME: This file is on the pytest ignore list in pyproject.toml because it has borked imports from random import randint from operator import add -- 2.30.2