summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-01-08 17:38:37 -0800
committerGregory Becker <becker33@llnl.gov>2016-01-08 17:38:37 -0800
commit2b2d4bae4e48151ae17c0f2f0514873b1247ff15 (patch)
tree475659271ef284bc4a27e0eef50de8bb12f50129 /var
parent2b4dd8b9af427e2fc3c4a743f4f058a26c7d583f (diff)
downloadspack-2b2d4bae4e48151ae17c0f2f0514873b1247ff15.tar.gz
spack-2b2d4bae4e48151ae17c0f2f0514873b1247ff15.tar.bz2
spack-2b2d4bae4e48151ae17c0f2f0514873b1247ff15.tar.xz
spack-2b2d4bae4e48151ae17c0f2f0514873b1247ff15.zip
Fixing multimethod test for new platforms
Diffstat (limited to 'var')
-rw-r--r--var/spack/mock_packages/multimethod/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/mock_packages/multimethod/package.py b/var/spack/mock_packages/multimethod/package.py
index 0a1e991d37..4e9a2438a7 100644
--- a/var/spack/mock_packages/multimethod/package.py
+++ b/var/spack/mock_packages/multimethod/package.py
@@ -22,6 +22,9 @@
# along with this program; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
+import imp
+from llnl.util.filesystem import join_path
+from spack.util.naming import mod_to_class
from spack import *
import spack.architecture
@@ -103,8 +106,15 @@ class Multimethod(Package):
#
# Make sure we can switch methods on different target
#
+# for platform_name in ['cray_xc', 'darwin', 'linux']:
+# file_path = join_path(spack.platform_path, platform_name)
+# platform_mod = imp.load_source('spack.platforms', file_path + '.py')
+# cls = getattr(platform_mod, mod_to_class(platform_name))
+
+# platform = cls()
platform = spack.architecture.sys_type()
targets = platform.targets.values()
+
for target in targets[:-1]:
@when('='+target.name)
def different_by_target(self):