summaryrefslogtreecommitdiff
path: root/share
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Bash Programmable Completion for Spack (#3026)Adam J. Stewart2-0/+939
2017-01-23Export spack function so it works in subshells (#2908)Michael Kuhn1-0/+5
2017-01-01tests: `coverage combine` run only if tests succeeded (#2712)Massimiliano Culpo1-2/+1
2016-12-30Run coverage for the `spack install` command as well as `spack test`.Todd Gamblin1-1/+2
- Also don't run coverage on OSX.
2016-12-29unit tests: replace nose with pytest (#2502)Massimiliano Culpo2-32/+6
* Porting: substitute nose with ytest This huge commit substitutes nose with pytest as a testing system. Things done here: * deleted external/nose as it is no longer used * moved mock resources in their own directory 'test/mock/' * ported two tests (cmd/find, build_system) to pytest native syntax as an example * build_environment, log: used monkeypatch instead of try/catch * moved global mocking of fetch_cache to an auto-used fixture * moved global mocking from test/__init__.py to conftest.py * made `spack test` a wrapper around pytest * run-unit-tests: avoid running python 2.6 tests under coverage to speed them up * use `pytest --cov` instead of coverage run to cut down testing time * mock/packages_test: moved mock yaml configuration to files instead of leaving it in the code as string literals * concretize.py: ported tests to native pytest, reverted multiprocessing in pytest.ini as it was creating the wrong report for coveralls * conftest.py, fixtures: added docstrings * concretize_preferences.py: uses fixtures instead of subclassing MockPackagesTest * directory_layout.py: uses fixtures instead of subclassing MockPackagesTest * install.py: uses fixtures instead of subclassing MockPackagesTest * optional_deps.py: uses fixtures instead of subclassing MockPackagesTest optional_deps.py: uses fixtures instead of subclassing MockPackagesTest * packages.py: uses fixtures instead of subclassing MockPackagesTest * provider_index.py: uses fixtures instead of subclassing MockPackagesTest * spec_yaml.py: uses fixtures instead of subclassing MockPackagesTest * multimethod.py: uses fixtures instead of subclassing MockPackagesTest * install.py: now uses mock_archive_url * git_fetch.py: uses fixtures instead of subclassing MockPackagesTest * hg_fetch.py: uses fixtures instead of subclassing MockPackagesTest * svn_fetch.py, mirror.py: uses fixtures instead of subclassing MockPackagesTest repo.py: deleted * test_compiler_cmd.py: uses fixtures instead of subclassing MockPackagesTest * cmd/module.py, cmd/uninstall.py: uses fixtures instead of subclassing MockDatabase * database.py: uses fixtures instead of subclassing MockDatabase, removed mock/database * pytest: uncluttering fixture implementations * database: changing the scope to 'module' * config.py: uses fixtures instead of subclassing MockPackagesTest * spec_dag.py, spec_semantics.py: uses fixtures instead of subclassing MockPackagesTest * stage.py: uses fixtures instead of subclassing MockPackagesTest. Removed mock directory * pytest: added docstrings to all the fixtures * pytest: final cleanup * build_system_guess.py: fixed naming and docstrings as suggested by @scheibelp * spec_syntax.py: added expected failure on parsing multiple specs closes #1976 * Add pytest and pytest-cov to Spack externals. * Make `spack flake8` ignore externals. * run-unit-tests runs spack test and not pytest. * Remove all the special stuff for `spack test` - Remove `conftest.py` magic and all the special case stuff in `bin/spack` - Spack commands can optionally take unknown arguments, if they want to handle them. - `spack test` is now a command like the others. - `spack test` now just delegates its arguments to `pytest`, but it does it by receiving unknown arguments and NOT taking an explicit help argument. * Fix error in fixtures. * Improve `spack test` command a bit. - Now supports an approximation of the old simple interface - Also supports full pytest options if you want them. * Use external coverage instead of pytest-cov * Make coverage use parallel-mode. * change __init__.py docs to include pytest
2016-11-29Allow shell support to work when set -u is set (#2418)Adam J. Stewart1-1/+1
2016-11-12Basic usage step-by-step tutorialGregory Becker1-2/+1
2016-11-04setup script for bash : fixes #2209 for sh setup (#2212)Massimiliano Culpo1-2/+4
2016-10-31Add `spack flake8` command. (#2186)Todd Gamblin1-63/+3
- Ported old run-flake8-tests qa script to `spack flake8` command. - New command does not modify files in the source tree - Copies files to a temp stage modifies them there, and runs tests. - Updated docs and `run-flake8-tests` script to call `spack flake8`.
2016-10-06Feature Proposal : Make All Python Extensions User Configuration Independent ↵Joseph Ciurej1-5/+0
(#1435) * Updated all Python extension packages to use 'setup_py' on install. * Fixed a few minor style issues with the updated Python packages.
2016-10-05Add missing dependencies for Flake8 (#1883)Adam J. Stewart2-4/+30
* Warn user if flake8 can't find setuptools * Add missing dependencies of flake8 * Updates to py-autopep8, make packages activateable * Check for presence of setuptools for Sphinx too * Fix bug in order of commands
2016-10-02Run make clean to prevent warning messages (#1742)Adam J. Stewart1-4/+2
* Run make clean to prevent warning messages * Don't delete temporary files after completion
2016-09-23Remove duplicate ICU package (#1837)Adam J. Stewart1-3/+3
* Remove duplicate ICU package * Ignore deleted files during flake8 tests * Rename Boost ICU variant
2016-09-08Add missing dependency for run-doc-tests (#1691)Adam J. Stewart2-0/+4
2016-08-30Always run spack unit testsAdam J. Stewart1-21/+0
2016-08-30Add spack to the PATH for doc testsAdam J. Stewart1-0/+3
2016-08-30Remove py-mercurial, going with mercurial package insteadAdam J. Stewart1-1/+1
2016-08-30Always run Documentation testsAdam J. Stewart1-10/+2
2016-08-30Added more missing dependenciesAdam J. Stewart3-10/+28
2016-08-30Add mercurial package, used as test dependencyAdam J. Stewart3-6/+33
2016-08-30Only run unit tests when core Spack framework is modifiedAdam J. Stewart4-53/+127
2016-08-30Run documentation tests when documentation is modifiedAdam J. Stewart2-3/+38
2016-08-30Add generic changed_files scriptAdam J. Stewart2-16/+54
2016-08-30Overhaul Spack's CI InfrastructureAdam J. Stewart2-1/+5
2016-08-28Run flake8 checks on new untracked files (#1510)Adam J. Stewart1-0/+2
2016-08-11Always clean up tmp files, even if killedAdam J. Stewart1-10/+14
2016-08-11Allow run-flake8 to be run from anywhereAdam J. Stewart1-5/+3
2016-08-11Run flake8 checks on changed uncommitted filesAdam J. Stewart1-7/+14
2016-08-10Make Spack core PEP8 compliant.Todd Gamblin1-4/+13
2016-07-30qa : fixes #1370 (no flake8 on python 2.6, coveralls only python 2.7)alalazo1-0/+20
2016-07-22Adding temporary script that fixes all Python extensions w/ 'setup_py'.Joseph Ciurej1-0/+5
2016-07-21Fix recursive module loading.Michael Kuhn1-4/+4
2016-07-18Merge branch 'develop' of https://github.com/LLNL/spack into ↵alalazo2-9/+22
features/module_refresh Conflicts: share/spack/setup-env.sh
2016-07-15Merge pull request #1246 from suraia/improve-shell-integrationbecker331-8/+20
Improve shell integration.
2016-07-15Updates to run-flake8 testAdam J. Stewart1-1/+2
2016-07-14Support --dependencies for recursively loading modules.Michael Kuhn1-1/+1
2016-07-13Improve shell integration.Michael Kuhn1-8/+20
Enable sh emulation for Zsh and allow loading modules recursively.
2016-06-28module : can regenerate single module files, homogenized cli optionsalalazo2-8/+8
spack module : - refresh accepts a constraint - find and refresh share common cli options - ask for confirmation before refreshing - deleting the module file tree is now optional
2016-06-15Ignore E501 for depends_on and extendsAdam J. Stewart1-0/+2
2016-05-16Added line limit exemptions for 'variant' and 'version' directives.Joseph Ciurej1-2/+7
Updated the 'scotch' package to use oneline 'variant' directives.
2016-05-16Updated style checking to ignore refinition errors for '@when' fxns.Joseph Ciurej1-1/+4
Updated the Scotch package to conform to PEP8 standards and to test style checking improvements.
2016-05-11Correct LLNL LGPL license template for clarity.Todd Gamblin2-18/+18
2016-05-11Merge branch 'develop' of https://github.com/LLNL/spack into ↵alalazo1-0/+55
features/custom_modulefile_from_config Conflicts: lib/spack/spack/config.py
2016-05-11Add run-flake8 script.Todd Gamblin1-0/+55
- was missing the obvious.
2016-05-11Use just one flake8 file; mark package.py files to avoid E501 w/url.Todd Gamblin2-21/+0
2016-05-11Update code style checking.Todd Gamblin2-0/+21
- Exempt overlong URL lines from checks. - Omit some of the more painful PEP items.
2016-05-10Merge branch 'develop' of https://github.com/LLNL/spack into ↵alalazo1-2/+5
features/custom_modulefile_from_config
2016-04-29switched test to use -d for location checkTom Scogland1-3/+3
2016-04-28check that a target directory exists before committing to cdTom Scogland1-2/+5
2016-04-18naming work correctlyalalazo1-3/+3