Remove stale operating_system.py test per discussion in #1631
- Test has not been registered in `__init__.py` for a while and needs a refresh.
This commit is contained in:
parent
e73a1a4ec3
commit
7ebb17e459
1 changed files with 0 additions and 75 deletions
|
@ -1,75 +0,0 @@
|
|||
##############################################################################
|
||||
# Copyright (c) 2013-2016, Lawrence Livermore National Security, LLC.
|
||||
# Produced at the Lawrence Livermore National Laboratory.
|
||||
#
|
||||
# This file is part of Spack.
|
||||
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
|
||||
# LLNL-CODE-647188
|
||||
#
|
||||
# For details, see https://github.com/llnl/spack
|
||||
# Please also see the LICENSE file for our notice and the LGPL.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License (as
|
||||
# published by the Free Software Foundation) version 2.1, February 1999.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but
|
||||
# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
|
||||
# conditions of the GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
##############################################################################
|
||||
""" Test checks if the operating_system class is created correctly and that
|
||||
the functions are using the correct operating_system. Also checks whether
|
||||
the operating_system correctly uses the compiler_strategy
|
||||
"""
|
||||
import unittest
|
||||
from spack.platforms.cray_xc import CrayXc
|
||||
from spack.platforms.linux import Linux
|
||||
from spack.platforms.darwin import Darwin
|
||||
from spack.operating_system.linux_distro import LinuxDistro
|
||||
from spack.operating_system.cnl import ComputeNodeLinux
|
||||
|
||||
|
||||
class TestOperatingSystem(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
cray_xc = CrayXc()
|
||||
linux = Linux()
|
||||
darwin = Darwin()
|
||||
self.cray_operating_sys = cray_xc.operating_system('front_os')
|
||||
self.cray_default_os = cray_xc.operating_system('default_os')
|
||||
self.cray_back_os = cray_xc.operating_system('back_os')
|
||||
self.darwin_operating_sys = darwin.operating_system('default_os')
|
||||
self.linux_operating_sys = linux.operating_system('default_os')
|
||||
|
||||
def test_cray_front_end_operating_system(self):
|
||||
self.assertIsInstance(self.cray_operating_sys, LinuxDistro)
|
||||
|
||||
def test_cray_front_end_compiler_strategy(self):
|
||||
self.assertEquals(self.cray_operating_sys.compiler_strategy, "PATH")
|
||||
|
||||
def test_cray_back_end_operating_system(self):
|
||||
self.assertIsInstance(self.cray_back_os, ComputeNodeLinux)
|
||||
|
||||
def test_cray_back_end_compiler_strategy(self):
|
||||
self.assertEquals(self.cray_back_os.compiler_strategy, "MODULES")
|
||||
|
||||
def test_linux_operating_system(self):
|
||||
self.assertIsInstance(self.linux_operating_sys, LinuxDistro)
|
||||
|
||||
def test_linux_compiler_strategy(self):
|
||||
self.assertEquals(self.linux_operating_sys.compiler_strategy, "PATH")
|
||||
|
||||
def test_cray_front_end_compiler_list(self):
|
||||
""" Operating systems will now be in charge of finding compilers.
|
||||
So, depending on which operating system you want to build for
|
||||
or which operating system you are on, then you could detect
|
||||
compilers in a certain way. Cray linux environment on the front
|
||||
end is just a regular linux distro whereas the Cray linux compute
|
||||
node is a stripped down version which modules are important
|
||||
"""
|
||||
self.assertEquals(True, False)
|
Loading…
Reference in a new issue