summaryrefslogtreecommitdiff
path: root/runtests.py
Commit message (Collapse)AuthorAgeFilesLines
* DOC: add an extra example in runtests.py help testRalf Gommers2021-05-091-0/+4
| | | | | | | This was a little confusing in the sprint. To verify, look at the output of `python runtests.py --help` [ci skip]
* MAINT: make runtests.py argument list help strings end with spaceChristopher Dahlin2021-04-191-10/+10
|
* MAINT: make runtests.py argument list fulfill E501Christopher Dahlin2021-04-191-16/+24
|
* MAINT: make runtests.py help texts sentence caseChristopher Dahlin2021-04-191-6/+6
|
* MAINT: clarify runtests.py verbosity help textChristopher Dahlin2021-04-191-1/+1
|
* MAINT: Replaced master with mainGanesh Kathiresan2021-03-071-2/+2
|
* ENH, MAINT: Added runtest options | Added unified diffGanesh Kathiresan2021-03-071-0/+31
|
* Merge pull request #17736 from seiko2plus/issue_17716Matti Picus2020-12-161-0/+1
|\ | | | | BUG, Benchmark: fix passing optimization build options to asv
| * BUG, Benchmark: fix passing optimization build options to asvSayed Adel2020-11-091-0/+1
| |
* | TST: Fix passing build options when `--debug-info` is enabledSayed Adel2020-12-081-3/+3
|/
* ENH: Expose the NumPy C SIMD vectorization interface "NPYV" to PythonSayed Adel2020-10-271-0/+5
| | | | | | | | | | | | | | | | '_simd' is a new module to bring the NumPy C SIMD vectorization interface "NPYV" The module is designed to be extremely flexible so that it can accommodate any kind intrinsics, also to generate a python interface almost similar to the C interface. The main purpose of this module is to test NPYV intrinsics in python, but still can be used as an effective solution in designing SIMD kernels. Also add a new command-line argument `--simd-test` to control of targeted CPU features for the `_simd` module. Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* ENH: Pass optimizations arguments to asv buildSayed Adel2020-09-111-3/+102
| | | | | This patch allows passing `-j`, `--cpu-baseline`, `--cpu-dispatch` and `--disable-optimization` to ASV build when argument `--bench-compare` is used.
* TST: Fix the path to `mypy.ini`Bas van Beek2020-09-071-1/+2
|
* MAINT: use sysconfig not distutils.sysconfig where possiblemattip2020-09-021-3/+3
|
* ENH: allow running mypy through runtests.pyJosh Wilson2020-08-201-1/+32
| | | | | | | | | | | | | | Currently running mypy with the NumPy stubs configured requires either: - Installing NumPy - Adding the source directory to MYPYPATH and linking to the mypy.ini Both options are somewhat inconvenient, so add a `--mypy` option to runtests that handles setting things up for you. This will also be useful in the future for any typing codegen since it will ensure the project is built before type checking.
* ENH: enable colors for `runtests.py --ipython`Josh Wilson2020-07-261-1/+1
| | | | Currently the IPython shell from runtests has no colors; enable them.
* Revert "MAINT: setuptools 49.2.0 emits a warning, avoid it"mattip2020-07-141-3/+0
|
* MAINT: one more place where distutils is importedmattip2020-07-131-0/+3
|
* ENH: [3/7] enable multi-platform SIMD compiler optimizationsSayed Adel2020-06-151-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Put `CCompilerOpt` in action through add two command line arguments that passed directly to `CCompilerOpt`'s parameters which explained as follows: * `--cpu-baseline` minimal set of required optimizations, default is 'min' which provides the minimum CPU features that can safely run on a wide range of users platforms. * `--cpu-dispatch` dispatched set of additional optimizations, default is 'max-xop-fma4' which enables all CPU features, except for AMD legacy features. the new arguments can be reached from `build`, `build_clib`, `build_ext`, if `build_clib` or `build_ext` are not specified by the user the arguments of `build` will be used, which also hold the default values. - Activate the new compiler dispatcher that comes with `CCompilerOpt`, through adding a hock inside `build_clib` and `build_ext` that works as a filter taking any C source files ends with `.dispatch.c` and pass it directly to `CCompilerOpt` and then take returned objects and linked to the final C lib. - Add a third command-line argument `--disable-optimization` which explicitly disable the whole new infrastructure, also It adds a new compiler definition called `NPY_DISABLE_OPTIMIZATION`. when `--disable-optimization` is enabled the dispatch-able sources that end with `.dispatch.c` will be treated as a normal C sources, also due to this disabling any C headers that generated by `CCompilerOpt` must guard it with `NPY_DISABLE_OPTIMIZATION`, otherwise, it will definitely break the build. - New auto-generated C header located at `core/include/numpy/_cpu_dispatch.h`, the new header contains all definitions and headers of CPU features that enabled according to specified configuration in `--cpu-baseline` and `--cpu-dispatch`.
* DEV: Pass additional runtests.py args to ASVSayed Adel2020-05-031-6/+16
| | | | | | | | | | | | | Since arguments list benchmarks, all arguments after the first unknown `--` starting (removing a single first `--`) are passed on to asv. Previously this was the right pattern for passing to pytest, so it now works also for ASV. Examples: `runtests.py` `--bench-compare master sin --cpu-affinity 1` `--bench-compare master -- --cpu-affinity 1` `--bench sin --cpu-affinity 1` `--bench -- --cpu-affinity 1`
* convert shebang from python to python3 (#15687)Changqing Li2020-03-041-1/+1
| | | | Signed-off-by: Changqing Li <changqing.li@windriver.com>
* MAINT: cleanup unused imports; avoid redefinition of importsMike Taves2020-02-061-1/+0
| | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811)
* [MAINT] Cleanup python2 sys.version checksSeth Troisi2020-01-201-21/+2
|
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-2/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* BUILD: change to build_src --verbose-cfg, runtests.py --debug-infomattip2019-10-031-4/+4
|
* Merge pull request #14572 from seberg/runtests-helpCharles Harris2019-09-221-0/+4
|\ | | | | DOC: Note runtests.py `-- -s` method to use pytests `-s`
| * DOC: Note runtests.py `-- -s` method to use pytests `-s`Sebastian Berg2019-09-211-0/+4
| | | | | | | | | | | | | | | | The `-s` option allows disabling the printing capture, which can be useful during debugging, and thus should be a bit more discoverable. Replaces/closes gh-12829
* | BUILD: add warn-error option to turn compiler warnings into errors (-Werror)mattip2019-09-201-0/+4
| |
* | DOC: improve help stringmattip2019-09-201-1/+3
| |
* | MAINT: move the option to build_src, simplifies logicmattip2019-09-201-2/+2
| |
* | BUILD: fix runtests.py option, fix previous changesetmattip2019-09-201-2/+2
| |
* | BUILD: add --debug-configure option to reduce output, use logger moremattip2019-09-201-0/+4
|/
* DEV: cleanup imports and some assignments (from LGTM)mattip2019-03-171-2/+0
|
* TEST: allow margin of error, increase discoverability of refcheck optionmattip2019-03-061-1/+1
|
* BLD: move -std=c99 from runtests.py to Azure configRalf Gommers2019-01-061-2/+0
| | | | See gh-12610 for details.
* TST: Update runtests.py to specify C99 for gcc.Charles Harris2018-12-251-1/+2
| | | | | Prefix `-std=c99` to the CFLAGS environmental variable. C99 is the standard for NumPy >= 1.17.
* TST, DOC: enable refguide_checkTyler Reddy2018-12-141-2/+10
| | | | | | | | * ported the refguide_check module from SciPy for usage in NumPy docstring execution/ verification; added the refguide_check run to Azure Mac OS CI * adjusted NumPy docstrings such that refguide_check passes
* BUG: compiler used is env['CC'], then config_vars['CC']mattip2018-08-101-2/+3
|
* Merge pull request #11566 from danielballan/skip-gcc-warnings-on-clangRalf Gommers2018-07-231-12/+14
|\ | | | | BLD: Do not use gcc warnings flags when 'gcc' is actually clang.
| * BLD: Do not use gcc warnings flags when 'gcc' is actually clang.danielballan2018-07-231-12/+14
| |
* | MAINT: update runtests.py node id example for pytest usageTyler Reddy2018-07-191-1/+1
|/ | | | | | * there is a slightly different syntax for specific test selection in pytest vs. nose; update the syntax of the example in runtests.py to match pytest
* BLD: Don't leave the build task running if runtests.py is interruptedEric Wieser2018-07-011-17/+21
| | | | | | Without this, my powershell terminal would block on the build completing. This already matches the logic in the log-less case
* STY: Move comments, reduce indentationEric Wieser2018-05-281-8/+9
|
* fix from review and commentsmattip2018-05-281-6/+12
|
* TST: make build warning into an error in runtest.pymattip2018-05-281-2/+2
|
* TST: turn some build warnings into errorsmattip2018-05-221-3/+9
|
* TST: Update `runtests.py` to use pytest.Charles Harris2018-04-041-62/+36
| | | | | | Takes over some bits from SciPy. The most visible user change is the replacement of `--timer` by `--durations`, with `--durations=0` meaning time all tests.
* BUG: Fix runtests --benchmark-compare in python 3Eric Wieser2017-10-151-2/+2
| | | | `check_output` returns bytes, but the rest of the command line is unicode.
* BUG: Fix broken runtests '-t' option.Charles Harris2017-08-291-2/+4
| | | | | | | | | The '-t' was broken when init files were added to the tests directories, as it was no longer valid to import tests from the numpy git repo. The fix here is the use a path to the installed numpy. Which numpy that is depends on the '--no-build' option. [ci skip]
* MAINT: Fix spelling of develop.Charles Harris2017-06-271-2/+2
|