Makefile.am 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  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. gcc_tests = \
  16. base.c \
  17. pointers.c \
  18. output-pointer.c \
  19. output-pointer-errors.c \
  20. register.c \
  21. register-errors.c \
  22. registered.c \
  23. registered-errors.c \
  24. acquire.c \
  25. acquire-errors.c \
  26. release.c \
  27. release-errors.c \
  28. unregister.c \
  29. unregister-errors.c \
  30. task-errors.c \
  31. scalar-tasks.c \
  32. pointer-tasks.c \
  33. external-task-impl.c \
  34. no-initialize.c \
  35. lib-user.c \
  36. wait-errors.c \
  37. heap-allocated.c \
  38. heap-allocated-errors.c \
  39. verbose.c \
  40. debug-tree.c \
  41. opencl.c \
  42. opencl-errors.c \
  43. shutdown-errors.c
  44. EXTRA_DIST =
  45. if !STARPU_USE_OPENCL
  46. # XXX: This test simulates a buggy OpenCL implementation, and thus
  47. # cannot be run then a real <cl_platform.h> is included.
  48. gcc_tests += opencl-types.c
  49. # This test simulates errors when lacking an OpenCL implementation.
  50. gcc_tests += opencl-lacking.c
  51. else STARPU_USE_OPENCL
  52. EXTRA_DIST += \
  53. opencl-types.c \
  54. opencl-lacking.c
  55. endif STARPU_USE_OPENCL
  56. dist_noinst_HEADERS = mocks.h
  57. CLEANFILES = *.gimple *.o \
  58. base \
  59. pointers \
  60. register \
  61. registered \
  62. release \
  63. scalar-tasks \
  64. pointer-tasks \
  65. lib-user \
  66. output-pointer \
  67. unregister \
  68. heap-allocated \
  69. acquire \
  70. opencl
  71. EXTRA_DIST += ./run-test.in \
  72. my-lib.h my-lib.c \
  73. test.cl \
  74. $(gcc_tests)
  75. # The test suite assumes that the CPU back-end is available.
  76. if RUN_GCC_PLUGIN_TESTS
  77. TESTS = $(gcc_tests)
  78. if STARPU_HAVE_AM111
  79. LOG_COMPILER = ./run-test
  80. else
  81. TESTS_ENVIRONMENT = ./run-test
  82. endif
  83. else !RUN_GCC_PLUGIN_TESTS
  84. check-hook:
  85. -@echo "GNU Guile or CPU back-end not available, test suite not run."
  86. endif !RUN_GCC_PLUGIN_TESTS
  87. showcheck:
  88. -cat $(TEST_LOGS) /dev/null