summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-05-25 12:28:59 -0700
committerGregory Becker <becker33@llnl.gov>2016-05-25 12:28:59 -0700
commit0f40174723612c60ca7bdc0ed0ce1e96daa643bd (patch)
treeb7a62565a2fa54363f5534b14530594e002f17a3
parent3a68dd2011488acdff4e3c8cb4690718e87623e6 (diff)
downloadspack-0f40174723612c60ca7bdc0ed0ce1e96daa643bd.tar.gz
spack-0f40174723612c60ca7bdc0ed0ce1e96daa643bd.tar.bz2
spack-0f40174723612c60ca7bdc0ed0ce1e96daa643bd.tar.xz
spack-0f40174723612c60ca7bdc0ed0ce1e96daa643bd.zip
added test platform
-rw-r--r--lib/spack/spack/platforms/test.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/spack/spack/platforms/test.py b/lib/spack/spack/platforms/test.py
new file mode 100644
index 0000000000..3a4f9d5f2d
--- /dev/null
+++ b/lib/spack/spack/platforms/test.py
@@ -0,0 +1,28 @@
+import subprocess
+from spack.architecture import Platform, Target
+from spack.operating_systems.linux_distro import LinuxDistro
+from spack.operating_systems.cnl import Cnl
+
+
+class Test(Platform):
+ priority = 1000000
+ front_end = 'x86_32'
+ back_end = 'x86_64'
+ default = 'x86_64'
+
+ back_os = 'CNL'
+ default_os = 'CNL'
+
+ def __init__(self):
+ super(Test, self).__init__('test')
+ self.add_target(self.default, Target(self.default))
+ self.add_target(self.front_end, Target(self.front_end))
+
+ self.add_operating_system(self.default_os, Cnl())
+ linux_dist = LinuxDistro()
+ self.front_os = linux_dist.name
+ self.add_operating_system(self.front_os, linux_dist)
+
+ @classmethod
+ def detect(self):
+ return True