Makefile.am 2.5 KB

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