@@ -64,18 +64,29 @@ def build_cmult(c, path=None):
6464
6565
6666@invoke .task ()
67- def test_ctypes (c ):
67+ def test_ctypes ():
6868 """Run the script to test ctypes"""
69- print_banner ("Testing ctypes Module" )
69+ print_banner ("Testing ctypes Module for C " )
7070 # pty and python3 didn't work for me (win).
7171 if on_win :
72- invoke .run ("python ctypes_test .py" )
72+ invoke .run ("python ctypes_c_test .py" )
7373 else :
74- invoke .run ("python3 ctypes_test .py" , pty = True )
74+ invoke .run ("python3 ctypes_c_test .py" , pty = True )
7575
7676
7777@invoke .task ()
78- def build_cffi (c ):
78+ def test_ctypes_cpp ():
79+ """Run the script to test ctypes"""
80+ print_banner ("Testing ctypes Module for C++" )
81+ # pty and python3 didn't work for me (win).
82+ if on_win :
83+ invoke .run ("python ctypes_cpp_test.py" )
84+ else :
85+ invoke .run ("python3 ctypes_cpp_test.py" , pty = True )
86+
87+
88+ @invoke .task ()
89+ def build_cffi ():
7990 """Build the CFFI Python bindings"""
8091 print_banner ("Building CFFI Module" )
8192 ffi = cffi .FFI ()
@@ -108,14 +119,14 @@ def build_cffi(c):
108119
109120
110121@invoke .task ()
111- def test_cffi (c ):
122+ def test_cffi ():
112123 """Run the script to test CFFI"""
113124 print_banner ("Testing CFFI Module" )
114125 invoke .run ("python cffi_test.py" , pty = not on_win )
115126
116127
117128@invoke .task ()
118- def build_cppmult (c ):
129+ def build_cppmult ():
119130 """Build the shared library for the sample C++ code"""
120131 print_banner ("Building C++ Library" )
121132 invoke .run (
@@ -137,22 +148,22 @@ def compile_python_module(cpp_name, extension_name):
137148
138149
139150@invoke .task (build_cppmult )
140- def build_pybind11 (c ):
151+ def build_pybind11 ():
141152 """Build the pybind11 wrapper library"""
142153 print_banner ("Building PyBind11 Module" )
143154 compile_python_module ("pybind11_wrapper.cpp" , "pybind11_example" )
144155 print ("* Complete" )
145156
146157
147158@invoke .task ()
148- def test_pybind11 (c ):
159+ def test_pybind11 ():
149160 """Run the script to test PyBind11"""
150161 print_banner ("Testing PyBind11 Module" )
151162 invoke .run ("python3 pybind11_test.py" , pty = True )
152163
153164
154165@invoke .task (build_cppmult )
155- def build_cython (c ):
166+ def build_cython ():
156167 """Build the cython extension module"""
157168 print_banner ("Building Cython Module" )
158169 # Run cython on the pyx file to create a .cpp file
@@ -164,7 +175,7 @@ def build_cython(c):
164175
165176
166177@invoke .task ()
167- def test_cython (c ):
178+ def test_cython ():
168179 """Run the script to test Cython"""
169180 print_banner ("Testing Cython Module" )
170181 invoke .run ("python3 cython_test.py" , pty = True )
@@ -173,7 +184,9 @@ def test_cython(c):
173184@invoke .task (
174185 clean ,
175186 build_cmult ,
187+ build_cppmult ,
176188 test_ctypes ,
189+ test_ctypes_cpp ,
177190 build_cffi ,
178191 test_cffi ,
179192 build_pybind11 ,
0 commit comments