benchmarks: move sources under benchmarks/src/

This commit is contained in:
Mickey Rose 2018-07-11 15:43:22 +02:00
parent fa55e3dfa9
commit 5091a4ba9d
24 changed files with 6 additions and 28 deletions

View file

@ -25,34 +25,12 @@ if env['PLATFORM'] == 'Darwin':
test_env_local = test_env.Clone() test_env_local = test_env.Clone()
#benchmarks = glob.glob('test*cpp') benchmarks = glob.glob("src/*.cpp")
benchmarks = [
#"test_array_allocation.cpp", for src in benchmarks:
#"test_png_encoding1.cpp", name, ext = os.path.splitext(os.path.basename(src))
#"test_png_encoding2.cpp", out = os.path.join("out", name)
#"test_to_string1.cpp", test_program = test_env_local.Program(out, source=[src])
#"test_to_string2.cpp",
#"test_to_bool.cpp",
#"test_to_double.cpp",
#"test_to_int.cpp",
#"test_utf_encoding.cpp"
"test_polygon_clipping.cpp",
#"test_polygon_clipping_rendering.cpp",
"test_proj_transform1.cpp",
"test_expression_parse.cpp",
"test_face_ptr_creation.cpp",
"test_font_registration.cpp",
"test_rendering.cpp",
"test_rendering_shared_map.cpp",
"test_offset_converter.cpp",
"test_marker_cache.cpp",
"test_quad_tree.cpp",
"test_noop_rendering.cpp",
"test_getline.cpp",
# "test_numeric_cast_vs_static_cast.cpp",
]
for cpp_test in benchmarks:
test_program = test_env_local.Program('out/'+cpp_test.replace('.cpp',''), source=[cpp_test])
if 'install' in COMMAND_LINE_TARGETS: if 'install' in COMMAND_LINE_TARGETS:
env.Alias('install',test_program) env.Alias('install',test_program)
#Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME'])) #Depends(test_program, env.subst('../src/%s' % env['MAPNIK_LIB_NAME']))