Makefile.am 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 Inria
  4. #
  5. # StarPU is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU Lesser General Public License as published by
  7. # the Free Software Foundation; either version 2.1 of the License, or (at
  8. # your option) any later version.
  9. #
  10. # StarPU is distributed in the hope that it will be useful, but
  11. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. #
  14. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  15. include $(top_srcdir)/starpu.mk
  16. gcc_tests = \
  17. base.c \
  18. pointers.c \
  19. output-pointer.c \
  20. output-pointer-errors.c \
  21. register.c \
  22. register-errors.c \
  23. registered.c \
  24. registered-errors.c \
  25. acquire.c \
  26. acquire-errors.c \
  27. release.c \
  28. release-errors.c \
  29. unregister.c \
  30. unregister-errors.c \
  31. task-errors.c \
  32. scalar-tasks.c \
  33. pointer-tasks.c \
  34. external-task-impl.c \
  35. no-initialize.c \
  36. lib-user.c \
  37. wait-errors.c \
  38. heap-allocated.c \
  39. heap-allocated-errors.c \
  40. verbose.c \
  41. debug-tree.c \
  42. opencl.c \
  43. opencl-errors.c \
  44. shutdown-errors.c
  45. EXTRA_DIST =
  46. if HAVE_PTR_DEREFS_MAY_ALIAS_P
  47. gcc_tests += warn-unregistered.c
  48. else !HAVE_PTR_DEREFS_MAY_ALIAS_P
  49. EXTRA_DIST += warn-unregistered.c
  50. endif !HAVE_PTR_DEREFS_MAY_ALIAS_P
  51. if !STARPU_USE_OPENCL
  52. # XXX: This test simulates a buggy OpenCL implementation, and thus
  53. # cannot be run then a real <cl_platform.h> is included.
  54. gcc_tests += opencl-types.c
  55. # This test simulates errors when lacking an OpenCL implementation.
  56. gcc_tests += opencl-lacking.c
  57. else STARPU_USE_OPENCL
  58. EXTRA_DIST += \
  59. opencl-types.c \
  60. opencl-lacking.c
  61. endif STARPU_USE_OPENCL
  62. dist_noinst_HEADERS = mocks.h
  63. CLEANFILES = *.gimple *.o \
  64. base \
  65. pointers \
  66. register \
  67. registered \
  68. release \
  69. scalar-tasks \
  70. pointer-tasks \
  71. lib-user \
  72. output-pointer \
  73. unregister \
  74. heap-allocated \
  75. acquire \
  76. opencl \
  77. starpu_idle_microsec.log
  78. EXTRA_DIST += ./run-test.in \
  79. my-lib.h my-lib.c \
  80. test.cl \
  81. $(gcc_tests)
  82. # The test suite assumes that the CPU back-end is available.
  83. if RUN_GCC_PLUGIN_TESTS
  84. TESTS = $(gcc_tests)
  85. if STARPU_HAVE_AM111
  86. LOG_COMPILER = ./run-test
  87. else
  88. TESTS_ENVIRONMENT = ./run-test
  89. endif
  90. else !RUN_GCC_PLUGIN_TESTS
  91. check-hook:
  92. -@echo "GNU Guile or CPU back-end not available, test suite not run."
  93. endif !RUN_GCC_PLUGIN_TESTS