-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add python3 support to ubpf-(dis)assembler.py Also add python3 test in CI. Signed-off-by: Masanori Misono <[email protected]>
- Loading branch information
Showing
14 changed files
with
81 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
language: cpp | ||
compiler: | ||
- gcc | ||
python: | ||
- "2.7" | ||
os: linux | ||
dist: xenial | ||
jobs: | ||
include: | ||
- name: python 2.7 | ||
env: PYTHON=python2 | ||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get -y install python python-pip python-setuptools python-wheel | ||
after_success: | ||
- coveralls --gcov-options '\-lp' -i $PWD/vm/ubpf_vm.c -i $PWD/vm/ubpf_jit_x86_64.c -i $PWD/vm/ubpf_loader.c | ||
- name: python 3.5 | ||
env: PYTHON=python3 | ||
before_install: | ||
- sudo apt-get update | ||
- sudo apt-get -y install python3 python3-pip python3-setuptools python3-wheel | ||
# command to install dependencies | ||
install: | ||
- pip install --user -r requirements.txt | ||
- pip install --user cpp-coveralls | ||
- $PYTHON -m pip install --user -r requirements.txt | ||
- $PYTHON -m pip install --user cpp-coveralls | ||
# command to run tests | ||
script: | ||
- make -C vm COVERAGE=1 | ||
- nosetests -v | ||
after_success: | ||
- coveralls --gcov-options '\-lp' -i $PWD/vm/ubpf_vm.c -i $PWD/vm/ubpf_jit_x86_64.c -i $PWD/vm/ubpf_loader.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
parcon ~= 0.1.25 | ||
# pypi version of parcon does not support python3 | ||
git+https://github.com/javawizard/parcon | ||
nose ~= 1.3.1 | ||
pyelftools ~= 0.23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-- pyelf | ||
del order[:] | ||
magic = '\x7fELF' | ||
magic = b'\x7fELF' | ||
order.append('magic') | ||
-- error | ||
Failed to load code: not enough data for ELF header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters