File tree Expand file tree Collapse file tree 1 file changed +27
-14
lines changed
Expand file tree Collapse file tree 1 file changed +27
-14
lines changed Original file line number Diff line number Diff line change 1717def clean (c ):
1818 """Remove any built objects"""
1919 for file_pattern in (
20- "*.o" ,
21- "*.so" ,
22- "*.obj" ,
23- "*.dll" ,
24- "*.exp" ,
25- "*.lib" ,
26- "*.pyd" ,
27- "cffi_example*" , # Is this a dir?
28- "cython_wrapper.cpp" ,
20+ "*.o" ,
21+ "*.so" ,
22+ "*.obj" ,
23+ "*.dll" ,
24+ "*.exp" ,
25+ "*.lib" ,
26+ "*.pyd" ,
27+ "cffi_example*" , # Is this a dir?
28+ "cython_wrapper.cpp" ,
2929 ):
3030 for file in glob .glob (file_pattern ):
3131 os .remove (file )
@@ -64,14 +64,25 @@ def build_cmult(c, path=None):
6464
6565
6666@invoke .task ()
67- def test_ctypes (c ):
67+ def test_ctypes_c (c ):
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 )
75+
76+
77+ @invoke .task ()
78+ def test_ctypes_cpp (c ):
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 )
7586
7687
7788@invoke .task ()
@@ -173,7 +184,9 @@ def test_cython(c):
173184@invoke .task (
174185 clean ,
175186 build_cmult ,
176- test_ctypes ,
187+ build_cppmult ,
188+ test_ctypes_c ,
189+ test_ctypes_cpp ,
177190 build_cffi ,
178191 test_cffi ,
179192 build_pybind11 ,
You can’t perform that action at this time.
0 commit comments