Skip to content
Snippets Groups Projects
Commit 073d6d8a authored by Meredith L. Patterson's avatar Meredith L. Patterson Committed by Dan Hirsch
Browse files

python tests baked into scons; h_ch needs the first char of its input string as its input

parent eba8ecc6
No related branches found
No related tags found
No related merge requests found
......@@ -13,4 +13,7 @@ pythonenv.Command("hammer.i", "../swig/hammer.i", Copy("$TARGET", "$SOURCE"))
swig = ['hammer.i']
libhammer_python = pythonenv.SharedLibrary('hammer', swig)
libhammer_python = pythonenv.SharedLibrary('hammer', swig, SHLIBPREFIX='_')
pytestenv = pythonenv.Clone()
pytestenv.Command(None, 'hammer_tests.py', "nosetests $SOURCE")
This diff is collapsed.
......@@ -8,8 +8,11 @@
%typemap(in) uint8_t* {
$1 = (uint8_t*)PyString_AsString($input);
}
%typemap(out) uint8_t* {
$result = PyString_FromString((char*)$1);
}
#else
#warning no "in" typemap defined
#warning no uint8_t* typemaps defined
#endif
// All the include paths are relative to the build, i.e., ../../. If you need to build these manually (i.e., not with scons), keep that in mind.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment