6
6
# A single example or unit test source file generates its own executable
7
7
# This program is called by a top level Makefile, but can also be used stand-alone for debugging
8
8
# This program also generates testing.mk, examples.mk and dependencies.mk
9
+ from __future__ import print_function
9
10
import sys
10
11
import shutil as sh
11
12
import os
@@ -31,7 +32,7 @@ def Glob(pattern, directory,exclude='\B'):
31
32
32
33
33
34
def generate_test_mk (mk_path , test_path , group , TEST_DIR ):
34
- print 'Generating makefiles in "' + mk_path + '" for tests in "' + test_path + '"'
35
+ print ( 'Generating makefiles in "' + mk_path + '" for tests in "' + test_path + '"' )
35
36
src_cu = Glob ("*.cu" , test_path , ".*testframework.cu$" )
36
37
src_cxx = Glob ("*.cpp" , test_path )
37
38
src_cu .sort ();
@@ -52,7 +53,7 @@ def generate_test_mk(mk_path, test_path, group, TEST_DIR):
52
53
return [tests_all , dependencies_all ]
53
54
54
55
def generate_example_mk (mk_path , example_path , group , EXAMPLE_DIR ):
55
- print 'Generating makefiles in "' + mk_path + '" for examples in "' + example_path + '"'
56
+ print ( 'Generating makefiles in "' + mk_path + '" for examples in "' + example_path + '"' )
56
57
src_cu = Glob ("*.cu" , example_path )
57
58
src_cxx = Glob ("*.cpp" , example_path )
58
59
src_cu .sort ();
0 commit comments