Skip to content

Commit

Permalink
mark tests as version Five as that is the boards the data came from
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Apr 22, 2024
1 parent d8efe57 commit f11e6d0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from spinn_utilities.config_holder import set_config
from spinn_machine import virtual_machine
from spinn_machine.version.version_strings import VersionStrings
from spinn_machine.version import FIVE
from pacman.config_setup import unittest_setup
from pacman.data.pacman_data_writer import PacmanDataWriter
from pacman.model.routing_tables.multicast_routing_tables import (from_json)
Expand All @@ -31,7 +31,8 @@ class TestUnorderedPairCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config("Machine", "versions", VersionStrings.WRAPPABLE.text)
# This tests needs exactly version 5 as on Spin2 it would fit
set_config("Machine", "version", FIVE)

def test_onordered_pair_big(self):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from spinn_utilities.config_holder import set_config
from spinn_machine import virtual_machine
from spinn_machine.version.version_strings import VersionStrings
from spinn_machine.version import FIVE
from pacman.config_setup import unittest_setup
from pacman.data.pacman_data_writer import PacmanDataWriter
from pacman.model.routing_tables.multicast_routing_tables import (from_json)
Expand All @@ -32,7 +32,8 @@ class TestOrderedCoveringCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config("Machine", "versions", VersionStrings.WRAPPABLE.text)
# tests against version 5 as Spin2 would not need compression
set_config("Machine", "version", FIVE)

def test_oc_big(self):
class_file = sys.modules[self.__module__].__file__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from spinn_utilities.config_holder import set_config
from spinn_machine import virtual_machine
from spinn_machine.version.version_strings import VersionStrings
from spinn_machine.version import FIVE
from pacman.config_setup import unittest_setup
from pacman.data.pacman_data_writer import PacmanDataWriter
from pacman.model.routing_tables.multicast_routing_tables import (from_json)
Expand All @@ -31,7 +31,8 @@ class TestPairCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config("Machine", "versions", VersionStrings.WRAPPABLE.text)
# tests against version 5 as Spin2 would not need compression
set_config("Machine", "version", FIVE)

def do_pair_big(self, c_sort):
class_file = sys.modules[self.__module__].__file__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import sys
import unittest
from spinn_utilities.config_holder import set_config
from spinn_machine.version.version_strings import VersionStrings
from spinn_machine.version import FIVE
from pacman.config_setup import unittest_setup
from pacman.data.pacman_data_writer import PacmanDataWriter
from pacman.model.routing_tables import MulticastRoutingTables
Expand All @@ -32,7 +32,8 @@ class TestRangeCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config("Machine", "versions", VersionStrings.WRAPPABLE.text)
# tests against version 5 as Spin2 would not need compression
set_config("Machine", "version", FIVE)
set_config(
"Mapping", "router_table_compress_as_far_as_possible", True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from spinn_utilities.config_holder import set_config
from spinn_machine import virtual_machine
from spinn_machine.version.version_strings import VersionStrings
from spinn_machine.version import FIVE
from pacman.config_setup import unittest_setup
from pacman.data.pacman_data_writer import PacmanDataWriter
from pacman.model.routing_tables.multicast_routing_tables import (from_json)
Expand All @@ -32,7 +32,8 @@ class TestUnorderedPairCompressor(unittest.TestCase):

def setUp(self):
unittest_setup()
set_config("Machine", "versions", VersionStrings.WRAPPABLE.text)
# tests against version 5 as Spin2 would not need compression
set_config("Machine", "version", FIVE)

def test_onordered_pair_big(self):
class_file = sys.modules[self.__module__].__file__
Expand Down

0 comments on commit f11e6d0

Please sign in to comment.