Browse Source

Makefile.am: programs in directory tests are compiled when running 'make' and installed in 'target/lib/starpu/tests' when running 'make install'

Nathalie Furmento 14 years ago
parent
commit
a9621e568b
1 changed files with 112 additions and 0 deletions
  1. 112 0
      tests/Makefile.am

+ 112 - 0
tests/Makefile.am

@@ -65,6 +65,10 @@ SPU_LD ?= spu-ld
 
 endif
 
+
+testbindir = $(libdir)/starpu/tests
+testbin_PROGRAMS =
+
 SUBDIRS = 
 
 TESTS = $(check_PROGRAMS)
@@ -126,76 +130,126 @@ check_PROGRAMS += 				\
 	microbenchs/local_pingpong		\
 	overlap/overlap
 
+testbin_PROGRAMS +=				\
+	core/restart
 core_restart_SOURCES =				\
 	core/restart.c
 
+testbin_PROGRAMS +=				\
+	core/execute_on_a_specific_worker
 core_execute_on_a_specific_worker_SOURCES = 	\
 	core/execute_on_a_specific_worker.c
 
+testbin_PROGRAMS +=				\
+	core/multithreaded
 core_multithreaded_SOURCES =			\
 	core/multithreaded.c
 
+testbin_PROGRAMS +=				\
+	core/starpu_task_wait_for_all
 core_starpu_task_wait_for_all_SOURCES =		\
 	core/starpu_task_wait_for_all.c
 
+testbin_PROGRAMS +=				\
+	core/starpu_task_wait
 core_starpu_task_wait_SOURCES =			\
 	core/starpu_task_wait.c
 
+testbin_PROGRAMS +=				\
+	core/static_restartable
 core_static_restartable_SOURCES =		\
 	core/static_restartable.c
 
+testbin_PROGRAMS +=				\
+	core/static_restartable_using_initializer
 core_static_restartable_using_initializer_SOURCES =		\
 	core/static_restartable_using_initializer.c
 
+testbin_PROGRAMS +=				\
+	core/static_restartable_tag
 core_static_restartable_tag_SOURCES =		\
 	core/static_restartable_tag.c
 
+testbin_PROGRAMS +=				\
+	core/regenerate
 core_regenerate_SOURCES =			\
 	core/regenerate.c
 
+testbin_PROGRAMS +=				\
+	core/wait_all_regenerable_tasks
 core_wait_all_regenerable_tasks_SOURCES =	\
 	core/wait_all_regenerable_tasks.c
 
+testbin_PROGRAMS +=				\
+	core/subgraph_repeat
 core_subgraph_repeat_SOURCES =			\
 	core/subgraph_repeat.c
 
+testbin_PROGRAMS +=				\
+	core/subgraph_repeat_regenerate
 core_subgraph_repeat_regenerate_SOURCES =	\
 	core/subgraph_repeat_regenerate.c
 
+testbin_PROGRAMS +=				\
+	core/empty_task
 core_empty_task_SOURCES =			\
 	core/empty_task.c
 
+testbin_PROGRAMS +=				\
+	core/empty_task_sync_point
 core_empty_task_sync_point_SOURCES =		\
 	core/empty_task_sync_point.c
 
+testbin_PROGRAMS +=				\
+	core/empty_task_sync_point_tasks
 core_empty_task_sync_point_tasks_SOURCES =	\
 	core/empty_task_sync_point_tasks.c
 
+testbin_PROGRAMS +=				\
+	core/empty_task_chain
 core_empty_task_chain_SOURCES =			\
 	core/empty_task_chain.c
 
+testbin_PROGRAMS +=				\
+	core/tag_wait_api
 core_tag_wait_api_SOURCES =			\
 	core/tag_wait_api.c
 
+testbin_PROGRAMS +=				\
+	core/task_wait_api
 core_task_wait_api_SOURCES =			\
 	core/task_wait_api.c
 
+testbin_PROGRAMS +=				\
+	core/declare_deps_in_callback
 core_declare_deps_in_callback_SOURCES =		\
 	core/declare_deps_in_callback.c
 
+testbin_PROGRAMS +=				\
+	core/declare_deps_after_submission
 core_declare_deps_after_submission_SOURCES =	\
 	core/declare_deps_after_submission.c
 
+testbin_PROGRAMS +=				\
+	core/declare_deps_after_submission_synchronous
 core_declare_deps_after_submission_synchronous_SOURCES =	\
 	core/declare_deps_after_submission_synchronous.c
 
+testbin_PROGRAMS +=				\
+	core/get_current_task
 core_get_current_task_SOURCES =			\
 	core/get_current_task.c
 
+testbin_PROGRAMS +=				\
+	datawizard/acquire_release
 
+testbin_PROGRAMS +=				\
+	datawizard/data_implicit_deps
 datawizard_data_implicit_deps_SOURCES =		\
 	datawizard/data_implicit_deps.c
 
+testbin_PROGRAMS +=				\
+	datawizard/scratch
 datawizard_scratch_SOURCES =			\
 	datawizard/scratch.c
 
@@ -204,39 +258,63 @@ datawizard_scratch_SOURCES +=		\
 	datawizard/scratch_cuda.cu
 endif
 
+testbin_PROGRAMS +=				\
+	datawizard/dsm_stress
 datawizard_dsm_stress_SOURCES =			\
 	datawizard/dsm_stress.c
 
+testbin_PROGRAMS +=				\
+	datawizard/write_only_tmp_buffer
 datawizard_write_only_tmp_buffer_SOURCES =	\
 	datawizard/write_only_tmp_buffer.c
 
+testbin_PROGRAMS +=				\
+	datawizard/data_invalidation
 datawizard_data_invalidation_SOURCES =	\
 	datawizard/data_invalidation.c
 
+testbin_PROGRAMS +=				\
+	datawizard/dining_philosophers
 datawizard_dining_philosophers_SOURCES = 	\
 	datawizard/dining_philosophers.c
 
+testbin_PROGRAMS +=				\
+	datawizard/readers_and_writers
 datawizard_readers_and_writers_SOURCES = 	\
 	datawizard/readers_and_writers.c
 
+testbin_PROGRAMS +=				\
+	datawizard/unpartition
 datawizard_unpartition_SOURCES =		\
 	datawizard/unpartition.c
 
+testbin_PROGRAMS +=				\
+	datawizard/user_interaction_implicit
 datawizard_user_interaction_implicit_SOURCES =	\
 	datawizard/user_interaction_implicit.c
 
+testbin_PROGRAMS +=				\
+	datawizard/sync_with_data_with_mem
 datawizard_sync_with_data_with_mem_SOURCES =	\
 	datawizard/sync_with_data_with_mem.c
 
+testbin_PROGRAMS +=				\
+	datawizard/sync_with_data_with_mem_non_blocking
 datawizard_sync_with_data_with_mem_non_blocking_SOURCES = \
 	datawizard/sync_with_data_with_mem_non_blocking.c
 
+testbin_PROGRAMS +=				\
+	datawizard/sync_with_data_with_mem_non_blocking_implicit
 datawizard_sync_with_data_with_mem_non_blocking_implicit_SOURCES = \
 	datawizard/sync_with_data_with_mem_non_blocking_implicit.c
 
+testbin_PROGRAMS +=				\
+	datawizard/mpi_like
 datawizard_mpi_like_SOURCES =			\
 	datawizard/mpi_like.c
 
+testbin_PROGRAMS +=				\
+	datawizard/mpi_like_async
 datawizard_mpi_like_async_SOURCES =		\
 	datawizard/mpi_like_async.c
 
@@ -244,55 +322,87 @@ if STARPU_USE_CUDA
 datawizard_mpi_like_SOURCES +=			\
 	datawizard/cuda_codelet_unsigned_inc.cu
 
+testbin_PROGRAMS +=				\
+	datawizard/cuda_codelet_unsigned_inc.
 datawizard_mpi_like_async_SOURCES +=		\
 	datawizard/cuda_codelet_unsigned_inc.cu
 endif
 
+testbin_PROGRAMS +=				\
+	errorcheck/starpu_init_noworker
 errorcheck_starpu_init_noworker_SOURCES =	\
 	errorcheck/starpu_init_noworker.c
 
+testbin_PROGRAMS +=				\
+	errorcheck/invalid_blocking_calls
 errorcheck_invalid_blocking_calls_SOURCES =	\
 	errorcheck/invalid_blocking_calls.c
 
+testbin_PROGRAMS +=				\
+	errorcheck/invalid_tasks
 errorcheck_invalid_tasks_SOURCES =		\
 	errorcheck/invalid_tasks.c
 
+testbin_PROGRAMS +=				\
+	helper/cublas_init
 helper_cublas_init_SOURCES =			\
 	helper/cublas_init.c
 
+testbin_PROGRAMS +=				\
+	helper/pinned_memory
 helper_pinned_memory_SOURCES =			\
 	helper/pinned_memory.c
 
+testbin_PROGRAMS +=				\
+	helper/execute_on_all
 helper_execute_on_all_SOURCES =			\
 	helper/execute_on_all.c
 
+testbin_PROGRAMS +=				\
+	helper/starpu_create_sync_task
 helper_starpu_create_sync_task_SOURCES =	\
 	helper/starpu_create_sync_task.c
 
+testbin_PROGRAMS +=				\
+	microbenchs/async_tasks_overhead
 microbenchs_async_tasks_overhead_SOURCES =	\
 	microbenchs/async_tasks_overhead.c
 
+testbin_PROGRAMS +=				\
+	microbenchs/sync_tasks_overhead
 microbenchs_sync_tasks_overhead_SOURCES =	\
 	microbenchs/sync_tasks_overhead.c
 
+testbin_PROGRAMS +=				\
+	microbenchs/tasks_overhead
 microbenchs_tasks_overhead_SOURCES =		\
 	microbenchs/tasks_overhead.c
 
+testbin_PROGRAMS +=				\
+	microbenchs/prefetch_data_on_node
 microbenchs_prefetch_data_on_node_SOURCES =	\
 	microbenchs/prefetch_data_on_node.c
 
+testbin_PROGRAMS +=				\
+	datawizard/sync_and_notify_data
 datawizard_sync_and_notify_data_SOURCES =	\
 	datawizard/sync_and_notify_data.c
 
+testbin_PROGRAMS +=				\
+	datawizard/sync_and_notify_data_implicit
 datawizard_sync_and_notify_data_implicit_SOURCES =	\
 	datawizard/sync_and_notify_data_implicit.c
 
 nobase_STARPU_OPENCL_DATA_DATA = \
 	datawizard/sync_and_notify_data_opencl_codelet.cl
 
+testbin_PROGRAMS +=				\
+	microbenchs/redundant_buffer
 microbenchs_redundant_buffer_SOURCES =		\
 	microbenchs/redundant_buffer.c
 
+testbin_PROGRAMS +=				\
+	microbenchs/local_pingpong
 microbenchs_local_pingpong_SOURCES =		\
 	microbenchs/local_pingpong.c
 
@@ -324,5 +434,7 @@ BUILT_SOURCES += 						\
 	microbenchs/null_kernel_gordon.spuelf
 endif
 
+testbin_PROGRAMS +=				\
+	overlap/overlap
 overlap_overlap_SOURCES =			\
 	overlap/overlap.c