diff options
Diffstat (limited to 'test/sca')
| -rw-r--r-- | test/sca/perf_combine.py | 8 | ||||
| -rw-r--r-- | test/sca/perf_zvp.py | 9 |
2 files changed, 15 insertions, 2 deletions
diff --git a/test/sca/perf_combine.py b/test/sca/perf_combine.py index bd5db59..8ac274c 100644 --- a/test/sca/perf_combine.py +++ b/test/sca/perf_combine.py @@ -16,7 +16,13 @@ from pyecsca.sca import ( @click.command() -@click.option("-p", "--profiler", type=click.Choice(("py", "c", "raw")), default="py") +@click.option( + "-p", + "--profiler", + type=click.Choice(("py", "c", "raw")), + default="py", + envvar="PROF", +) @click.option("-o", "--operations", type=click.INT, default=100) @click.option( "-d", diff --git a/test/sca/perf_zvp.py b/test/sca/perf_zvp.py index 7a04dd6..34090df 100644 --- a/test/sca/perf_zvp.py +++ b/test/sca/perf_zvp.py @@ -11,12 +11,19 @@ from test.utils import Profiler @click.command() -@click.option("-p", "--profiler", type=click.Choice(("py", "c", "raw")), default="py") +@click.option( + "-p", + "--profiler", + type=click.Choice(("py", "c", "raw")), + default="py", + envvar="PROF", +) @click.option( "-m", "--mod", type=click.Choice(("python", "gmp", "flint")), default="flint" if has_flint else "gmp" if has_gmp else "python", + envvar="MOD", ) @click.option("-o", "--operations", type=click.INT, default=1) @click.option( |
