Commit graph

1936 commits

Author SHA1 Message Date
Todd Gamblin
55237b094a Use new travis insfrastructure (sudo:false) 2015-11-29 22:09:11 -08:00
Todd Gamblin
45ffcdee7b Add very basic Travis CI support. 2015-11-29 22:02:13 -08:00
Tom Scogland
b253308eee returning flux to a building state for web release
Flux package reworked to include all new dependencies, fixed issues with a
clean-build of hwloc, lua and czmq as well that prevented flux from building
cold on a minimal system.
2015-11-29 19:22:31 -08:00
Todd Gamblin
05b791a621 Add citation information to README 2015-11-28 19:45:36 -08:00
Todd Gamblin
cc349e9a32 Add default repos.yaml 2015-11-28 19:11:51 -08:00
Todd Gamblin
dfcf567de0 Add a cleaned up repo command. 2015-11-28 19:00:24 -08:00
Todd Gamblin
73ef06018e Integrate namespace attribute into spec, spec DAG, spec YAML. 2015-11-28 16:26:23 -08:00
Todd Gamblin
a338e0efd5 Fix spack.db -> spack.repo in bin/spack 2015-11-28 16:21:31 -08:00
Todd Gamblin
7383bd393e Fixed bug #42: problem with satisfies() for virtual dependencies.
- _cross_provider_maps() had suffered some bit rot (map returned was
  ill-formed but still worked for cases with one vdep)

- ProviderIndex.satisfies() was only checking whether the result map
  was non-empty.  It should check whether all common vdeps are *in*
  the result map, as that indicates there is *some* way to satisfy
  *all* of them.  We were checking whether there was some way to
  satisfy *any one* of them, which is wrong.

- Above would cause a problem when there is more than one vdep provider.

- Added test that covers this case.

- Added `constrained()` method to Spec. Analogous to `normalized()`:
  `constrain():constrained() :: normalize():normalized()`
2015-11-27 23:06:18 -08:00
Todd Gamblin
763d850a0e Add tests for importing packages directly.
Added test for, e.g.:

    import spack.pkg.builtin.mock.mpich
    import spack.pkg.builtin.mock.mpich as mpich
    from spack.pkg.builtin.mock.mpich import Mpich

Among others.  These ensure that direct package imports work so that
packages can be extended.
2015-11-26 14:23:12 -08:00
Todd Gamblin
89d5127900 New, cleaner package repository structure.
Package repositories now look like this:

    top-level-dir/
        repo.yaml
        packages/
            libelf/
                package.py
            mpich/
                package.py
            ...

This leaves room at the top level for additional metadata, source,
per-repo configs, indexes, etc., and it makes it easy to see that
something is a spack repo (just look for repo.yaml and packages).
2015-11-26 14:19:27 -08:00
Massimiliano Culpo
1fe626ec7c resource directive : sketch of implementation + clang / llvm use case 2015-11-26 17:53:33 +01:00
Peter Scheibel
c5ed7e2a15 On systems which have already installed nose (perhaps an older version)
importing nose (which is also in Spack's external/ directory) outputs a warning
(since there is more than one nose package). This avoids printing the warning
to the user.
2015-11-25 18:33:52 -08:00
Peter Scheibel
fc96f62794 Updated documentation/naming in tally_plugin to reflect that the count of the
total number of tests run excludes skipped tests
2015-11-25 18:08:17 -08:00
Peter Scheibel
d50a18d9eb XML output for unit tests is now enabled with an option (disabled by default) 2015-11-25 17:10:45 -08:00
Tom Scogland
f8ffb005c8 make cram an extension of python 2015-11-25 15:10:18 -08:00
Peter Scheibel
60f7756626 Executable.__call__ original semantics were to avoid redirecting process output
to the output stream if return_output was set. This branch undid that and this
commit restores those semantics.
2015-11-25 12:28:43 -08:00
Tom Scogland
3ce99cf4e1 fix for the shell arg handling issues
The setup-env.sh script now saves off the argument array before shifting off
all the arguments so that the final command invocation doesn't arbitrarily
requote the arguments.  All external quoting is preserved now.  This has been
thoroughly tested with zsh, but should probably be tested with bash etc.
before acceptance.
2015-11-25 11:02:51 -08:00
Todd Gamblin
04f032d6e3 Rename spack.db -> spack.repo
Making distinction between install database and package repositories clearer.
2015-11-25 10:01:44 -08:00
Todd Gamblin
e6d232bfef Rename packages.py to repository.py, PackageFinder to RepoPath. 2015-11-25 09:58:10 -08:00
Peter Scheibel
18dea24df8 Use the xunit nose plugin to generate JUnit XML test results from Spack's unit
tests.
2015-11-24 19:08:37 -08:00
Peter Scheibel
0adf93853d Update log_output to handle cases where sys.stdout/stderr streams do not have
an associated file descriptor (e.g. holds for nose tests where sys.stdout is
assigned to a StringIO object)
2015-11-24 17:58:17 -08:00
Todd Gamblin
c526c71f56 Merge pull request #201 from alfredo-gimenez/develop
Fixed Mitos dependency and added new version
2015-11-24 16:12:12 -08:00
Alfredo Gimenez
a0d388875e Fixed Mitos dependency and added new version 2015-11-24 15:12:31 -08:00
Peter Scheibel
5081ba6802 It appears the same test object was returned multiple times for different
unit tests, so tracking tests with sets wouldn't work unless I extracted the
details relevant to the particular test. For now a simple count will work so
using a set was unnecessary anyways.
2015-11-24 10:45:07 -08:00
Peter Scheibel
70049185a5 Activation of Tally plugin to count tests. It doesn't appear to be actually
counting the individual unit tests correctly so I need to chase that down.
2015-11-24 10:39:42 -08:00
Tom Scogland
a1553dd12b adding google sparsehash and cityhash libraries 2015-11-24 09:23:36 -08:00
Todd Gamblin
e2412e3f21 Merge branch 'eschnett-openblas' into develop 2015-11-24 00:52:48 -08:00
Todd Gamblin
58d497ab7a Merge pull request #200 from scalability-llnl/revert-189-openssl-use-64-bits
Revert "WIP: openssl: set KERNEL_BITS to make ./config work"
2015-11-24 00:30:37 -08:00
Todd Gamblin
52cce2d710 Revert "WIP: openssl: set KERNEL_BITS to make ./config work" 2015-11-24 00:30:08 -08:00
Peter Scheibel
099fa1df34 Use nose to run unit tests.
1. Adding a plugin to keep track of the total number of tests run as well as the
number of tests with failures/errors.
2. Some nose plugins (including xunit which will be added in a future commit)
assign stdout to a stream object that does not have a .fileno attribute.
spack.util.executable.Executable now avoids passing stdout to subprocess (and
always uses subprocess.PIPE)

TODO:
1. Still need to figure out how to activate the plugin (as of now it is
being ignored by nose). Newer versions of nose appear to make this simpler
(e.g. the "addplugins" argument to nose.run)
2. Need to include new version of nose in order to use xunit
2015-11-23 18:59:48 -08:00
Todd Gamblin
cf3d236b9f Merge branch 'scheibelp-features/externaldeps' into develop 2015-11-23 17:50:49 -08:00
Todd Gamblin
894fcd90e7 Add a fix/warning so that stale .pyc files don't kill Spack.
- Can't think of a better way to do this.
- The externals integration will cause spack to die in weird ways for
  users who just pull from develop.
2015-11-23 17:49:39 -08:00
Erik Schnetter
1d90d98e40 Remove commented-out code 2015-11-23 20:32:06 -05:00
Todd Gamblin
bddab5e489 Merge pull request #199 from khuck/develop
cleaning up commits for merge request
2015-11-23 16:53:53 -08:00
Kevin Huck
4dd47fbc78 cleaning up commits for merge request 2015-11-23 16:16:52 -08:00
Todd Gamblin
98ccad8105 Merge pull request #189 from mathstuf/openssl-use-64-bits
WIP: openssl: set KERNEL_BITS to make ./config work
2015-11-23 16:09:28 -08:00
Todd Gamblin
de2213a621 Merge pull request #188 from mathstuf/python-osx
python: target OS X 10.6
2015-11-23 16:08:56 -08:00
Todd Gamblin
583b8e3ade Merge pull request #187 from mathstuf/dbus-osx-disable-launchd
dbus: disable launchd support
2015-11-23 16:08:35 -08:00
Todd Gamblin
b5fffc71c9 Merge pull request #168 from mathstuf/libxml2-drop-python-dep
Libxml2 drop python dep
2015-11-23 16:08:24 -08:00
Todd Gamblin
0011903e23 Merge pull request #165 from mathstuf/paraview-update-deps
Paraview update deps
2015-11-23 16:04:03 -08:00
Todd Gamblin
9bc27561ec Merge pull request #164 from mathstuf/matplotlib-optional-deps
Matplotlib optional deps
2015-11-23 16:03:31 -08:00
Todd Gamblin
76100a6f08 Merge pull request #158 from davidbeckingsale/features/cleverleaf
Add CleverLeaf package
2015-11-23 16:00:39 -08:00
David Beckingsale
38b83362b6 Updated url and description 2015-11-23 15:58:33 -08:00
Todd Gamblin
c13329c25a Merge pull request #155 from epfl-scitas/packages/mvapich2
packages/mvapich2 : added support for process managers and network types
2015-11-23 15:53:53 -08:00
Todd Gamblin
6798c177c6 Merge pull request #157 from alfredo-gimenez/develop
Added Python Twisted library
2015-11-23 15:51:57 -08:00
Todd Gamblin
1447fd0a12 Merge pull request #160 from SteVwonder/stevwonder/develop
Fixed -l flag for 'spack extensions'
2015-11-23 15:50:18 -08:00
Todd Gamblin
8fbd79fa2e Merge pull request #198 from eschnett/update-papi
Update PAPI
2015-11-23 15:42:09 -08:00
Todd Gamblin
9d4638ef4c Merge pull request #196 from eschnett/hypre
Don't use https for downloading
2015-11-23 15:39:08 -08:00
Erik Schnetter
60fd7e2268 Update PAPI 2015-11-23 16:50:11 -05:00