summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2016-07-08 12:56:08 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2016-08-01 13:35:21 -0500
commit880cbb22172f32e4e9a8c1dfc1c11ce275419a1e (patch)
tree634e20d9c23d4ae1e9aa961fad49cf14fd15904c /var
parent3b4820f2904e1a20e6b00c80e901261d354e181f (diff)
downloadspack-880cbb22172f32e4e9a8c1dfc1c11ce275419a1e.tar.gz
spack-880cbb22172f32e4e9a8c1dfc1c11ce275419a1e.tar.bz2
spack-880cbb22172f32e4e9a8c1dfc1c11ce275419a1e.tar.xz
spack-880cbb22172f32e4e9a8c1dfc1c11ce275419a1e.zip
Better testing for MEEP
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/meep/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/meep/package.py b/var/spack/repos/builtin/packages/meep/package.py
index b88cec5a9c..cf4b72663d 100644
--- a/var/spack/repos/builtin/packages/meep/package.py
+++ b/var/spack/repos/builtin/packages/meep/package.py
@@ -41,8 +41,8 @@ class Meep(Package):
variant('libctl', default=False, description='Enable libctl support')
variant('mpi', default=True, description='Enable MPI support')
variant('hdf5', default=True, description='Enable HDF5 support')
+ variant('gsl', default=False, description='Build with GSL (only necessary for testing)')
- # Recommended dependencies
depends_on('blas', when='+blas')
depends_on('lapack', when='+lapack')
depends_on('harminv', when='+harminv')
@@ -51,6 +51,7 @@ class Meep(Package):
depends_on('mpi', when='+mpi')
depends_on('hdf5', when='+hdf5')
depends_on('hdf5+mpi', when='+hdf5+mpi')
+ depends_on('gsl', when='+gsl')
def url_for_version(self, version):
base_url = "http://ab-initio.mit.edu/meep"
@@ -93,5 +94,12 @@ class Meep(Package):
configure(*config_args)
make()
- make('check')
+
+ # aniso_disp test fails unless installed with harminv
+ # near2far test fails unless installed with gsl
+ if '+harminv' in spec and '+gsl' in spec:
+ # Most tests fail when run in parallel
+ # 2D_convergence tests still fails to converge for unknown reasons
+ make('check', parallel=False)
+
make('install')