From 63e2604dfd7e88557528a1cbedca8741d97a7e42 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 3 Jul 2012 00:46:23 -0700 Subject: [PATCH 1/2] Add tox.ini for tox (http://tox.testrun.org/) --- .gitignore | 1 + tox.ini | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 5c78f0b..09c59b7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ dist/ out.txt *.pyc dtrace/dtrace.c +.tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..accca65 --- /dev/null +++ b/tox.ini @@ -0,0 +1,11 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py26, py27 + +[testenv] +commands = sudo python examples/syscall_count.py +deps = Cython From de6af70053684722a2b902745292e59834076350 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Tue, 3 Jul 2012 00:46:45 -0700 Subject: [PATCH 2/2] Slight import tweak in dtrace/dtrace.pyx so that tox runs don't fail. --- dtrace/dtrace.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtrace/dtrace.pyx b/dtrace/dtrace.pyx index e3e70e1..b62324c 100644 --- a/dtrace/dtrace.pyx +++ b/dtrace/dtrace.pyx @@ -2,7 +2,7 @@ import time import threading from threading import Thread -from dtrace.dtrace_h cimport * +from dtrace_h cimport * # ---------------------------------------------------------------------------- # The DTrace callbacks