Makefile.am 2.3 KB

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