Skip to content

Commit

Permalink
setting up pacman for travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-stokes committed Apr 24, 2015
1 parent 454423d commit ad98893
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: python
matrix:
include:
- python: "2.7"
env: TEST_SUITE=suite_2_7
before_script:
- python ./setup.py install
script: python ./unittests/run_tests.py $TEST_SUITE
46 changes: 46 additions & 0 deletions unittests/run_tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"""
runs all pacman unittest scripts
"""
import unittest

testmodules = [
'model_tests.graph_mapper_tests.test_graph_subgraph_mapper',
'model_tests.graph_mapper_tests.test_slice',
'model_tests.partitioned_graph_tests.test_partitioned_graph_model',
'model_tests.partitionable_graph_tests.test_partitionable_edge',
'model_tests.partitionable_graph_tests.test_partitionable_graph',
'model_tests.partitionable_graph_tests.test_partitionable_vertex',
'model_tests.placement_tests.test_placement_object',
'model_tests.placement_tests.test_placements_model',
'model_tests.resources_tests.test_resources_model',
'model_tests.routing_info_tests.test_routing_info_model',
'model_tests.routing_info_tests.test_subedge_routing_info',
'model_tests.routing_table_tests.test_multi_cast_routing_entry',
'model_tests.routing_table_tests.test_routing_tables_model',
'model_tests.tag_tests.test_tag_infos_model',
'utilities_tests.test_progress_bar',
'utilities_tests.test_report_states',
'utilities_tests.test_reports',
'utilities_tests.test_utility_calls',
'operations_tests.partition_algorithms_tests.test_basic_partitioner',
'operations_tests.partition_algorithms_tests.test_partition_and_place_partitioner',
'operations_tests.placer_algorithms_tests.test_basic_placer',
'operations_tests.placer_algorithms_tests.test_radial_placer',
'operations_tests.router_algorithms_tests.test_basic_dijkstra_routing',
'operations_tests.router_algorithms_tests.test_generic_router',
'operations_tests.routing_info_algorithms_tests.test_basic_routing_info_allocator'
'operations_tests.routing_info_algorithms_tests.test_malloc_routing_info_allocator']

suite = unittest.TestSuite()

for t in testmodules:
try:
# If the module defines a suite() function, call it to get the suite.
mod = __import__(t, globals(), locals(), ['suite'])
suitefn = getattr(mod, 'suite')
suite.addTest(suitefn())
except (ImportError, AttributeError):
# else, just load all the test cases from the module.
suite.addTest(unittest.defaultTestLoader.loadTestsFromName(t))

unittest.TextTestRunner().run(suite)

0 comments on commit ad98893

Please sign in to comment.