added test platform
This commit is contained in:
parent
3a68dd2011
commit
0f40174723
1 changed files with 28 additions and 0 deletions
28
lib/spack/spack/platforms/test.py
Normal file
28
lib/spack/spack/platforms/test.py
Normal file
|
@ -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
|
Loading…
Reference in a new issue