Skip to content
Snippets Groups Projects
  1. Dec 29, 2016
    • Massimiliano Culpo's avatar
      unit tests: replace nose with pytest (#2502) · 7ea10e76
      Massimiliano Culpo authored
      * 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
      7ea10e76
  2. Dec 28, 2016
    • Elizabeth Fischer's avatar
      Allow exclusion of packages from `spack module loads` (#2667) · 88f57d75
      Elizabeth Fischer authored
      * Allow exclusion of packages from `spack module loads`
      
      * Comment out excluded packages instead of not showing them at all.
      88f57d75
    • Massimiliano Culpo's avatar
      Directive inheritance: laziness for the win (#2623) · 17b13b16
      Massimiliano Culpo authored
      * inheritance of directives: using meta-classes to inject attributes coming from directives into packages + lazy directives
      
      * _dep_types -> dependency_types
      * using a meta-class to inject directives into packages
      * directives are lazy
      
      fixes #2466
      
      * directives.py: allows for multiple inheritance. Added blank lines as suggested by @tgamblin
      
      * directives.py: added a test for simple inheritance of directives
      
      * Minor improvement requested by @tgamblin
      
      CMakePackage: importing names from spack.directives
      directives: wrap __new__ to respect pep8
      
      * Refactoring requested by @tgamblin
      
      directives: removed global variables in favor of class variables. Simplified the interface for directives (they return a callable on a package or a list of them).
      17b13b16
    • Thierry's avatar
      init yorick package (#2635) · 857dac88
      Thierry authored
      * init yorick package
      
      * attempt at picking up SPACK's compiler choice, todo ~X variant.
      
      * sphinx docstring error ?
      
      * version# tarball, ~X default, docstring fix
      
      * sphinx docstring fix(?)
      857dac88
  3. Dec 27, 2016
    • George Hartzell's avatar
      Cleanup post luafilesystem version de-underscoring (#2683) · 18c10f2b
      George Hartzell authored
      The upstream luafilesystem tarball/version had a wayward/inconsistent
      underscore in their more recent version tag.  The played badly with
      our package fetching machinery (due to recent changes?).
      
      Upstream cleaned up their bit which required some touchups here.
      
      - updated the url
      - updated the version (digest)
      - updated the format statement for the path to the rockspec.
      18c10f2b
    • Mayeul d'Avezac's avatar
      Adds catch, cppunit, spdlog, tinyxml(1 and 2), google benchmark (#2627) · 81c1404b
      Mayeul d'Avezac authored
      * Adds catch, cppunit, spdlog, tinyxml(1 and 2), google benchmark
      
      Tinyxml comes in two flavors, 1 and 2. Each comes in several
      versions... So they cannot be easily united into a single package.
      
      * Use CMakePackage and friends, add copyright
      
      Also eleminate debug/release variants, since it no longuer fits in the
      CMakePackage format.
      
      * Remove unnecessary url
      
      * spdlog now has tagged releases
      
      * Remove unnecessary url argument
      
      * Fewer quotes in cmake args, because magic
      
      * Incorrect base class for tinyxml
      81c1404b
    • Michael Kuhn's avatar
      Update wx to 3.1.0 (#2641) · baaa613e
      Michael Kuhn authored
      baaa613e
    • Adam J. Stewart's avatar
      Ensure that every file in Spack has a license (#2659) · 29bac34c
      Adam J. Stewart authored
      * Ensure that every package has a license
      
      Also fixes URLs with http://http:// doubled.
      
      This is a continuation of #2656.
      
      * Add license to every file in Spack
      
      * Make sure Todd is the author of all packages
      
      * Fix flake8 tests
      
      * Don't license external Sphinx docs
      
      * Don't display licenses in tutorial example packages
      
      Also fixes typos and converts command-line examples
      from tcsh to bash, which is more common
      29bac34c
  4. Dec 26, 2016
  5. Dec 25, 2016
  6. Dec 21, 2016
  7. Dec 20, 2016
  8. Dec 19, 2016
Loading