Skip to content

Commit e9a932f

Browse files
committed
WIP CFFI Wrapper for routing table tools
- [x] CFFI wrapper for m-Trie - [x] CFFI wrapper for Ordered Covering - [x] Utilities for converting to/from C format - [ ] Scripts to replace desktop/* executables - [ ] Travis updates - [ ] Ignore coverage on cffi_compile.py - [ ] Utilities for writing/reading routing table files - [ ] CFFI wrapper for remove_default_routes when merged For a later PR - SpiNNaker interface for routing table minimisation
1 parent e540228 commit e9a932f

29 files changed

+541
-30
lines changed

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
branch = True
3+
omit = rig_routing_tables/cffi_compile.py

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
tests/tests
1+
*.pyc
2+
.eggs/
3+
.coverage
4+
.cache/*
5+
build/*
6+
*.egg-info/*
7+
c_tests/tests
28
*.o
39
*.gcov
410
*.gcda
@@ -7,3 +13,4 @@ tests/tests
713
*.aplx
814
*.elf
915
spinnaker/sark_build.c
16+
_rig_routing_tables.*

.travis.yml

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
1-
sudo: false
2-
language: c
1+
# Travis Configuration based on that used for rig_c_sa
2+
sudo: false # Use the container based system
3+
language: python # Build under Python to avoid needing to compile Numpy
4+
python:
5+
- 2.7
6+
- 3.4
7+
- 3.5
38

9+
# Install packages for building and running the test suite
410
addons:
511
apt:
612
packages:
713
- check
814
- valgrind
15+
- libffi-dev
16+
17+
install:
18+
- CFLAGS=--std=gnu99 python setup.py develop
19+
- pip install -r requirements-test.txt
920

1021
script:
11-
- cd ./tests
12-
- make coverage
22+
# Run the C tests first
23+
- cd c_tests
24+
- make coverage
25+
- cd -
26+
# Then check that the package can be built, and run the Python tests
27+
- >
28+
py.test py_tests \
29+
--cov rig_routing_tables \
30+
--cov py_tests
31+
- flake8 rig_routing_tables py_tests
1332

1433
after_success:
15-
- bash <(curl -s https://codecov.io/bash)
34+
- bash <(curl -s https://codecov.io/bash)
1635

1736
notifications:
18-
email: false
37+
email: false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)