Makefile.am 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. 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 HAVE_PTR_DEREFS_MAY_ALIAS_P
  46. gcc_tests += warn-unregistered.c
  47. else !HAVE_PTR_DEREFS_MAY_ALIAS_P
  48. EXTRA_DIST += warn-unregistered.c
  49. endif !HAVE_PTR_DEREFS_MAY_ALIAS_P
  50. if !STARPU_USE_OPENCL
  51. # XXX: This test simulates a buggy OpenCL implementation, and thus
  52. # cannot be run then a real <cl_platform.h> is included.
  53. gcc_tests += opencl-types.c
  54. # This test simulates errors when lacking an OpenCL implementation.
  55. gcc_tests += opencl-lacking.c
  56. else STARPU_USE_OPENCL
  57. EXTRA_DIST += \
  58. opencl-types.c \
  59. opencl-lacking.c
  60. endif STARPU_USE_OPENCL
  61. dist_noinst_HEADERS = mocks.h
  62. CLEANFILES = *.gimple *.o \
  63. base \
  64. pointers \
  65. register \
  66. registered \
  67. release \
  68. scalar-tasks \
  69. pointer-tasks \
  70. lib-user \
  71. output-pointer \
  72. unregister \
  73. heap-allocated \
  74. acquire \
  75. opencl \
  76. starpu_idle_microsec.log
  77. EXTRA_DIST += ./run-test.in \
  78. my-lib.h my-lib.c \
  79. test.cl \
  80. $(gcc_tests)
  81. # The test suite assumes that the CPU back-end is available.
  82. if RUN_GCC_PLUGIN_TESTS
  83. TESTS = $(gcc_tests)
  84. if STARPU_HAVE_AM111
  85. LOG_COMPILER = ./run-test
  86. else
  87. TESTS_ENVIRONMENT = ./run-test
  88. endif
  89. else !RUN_GCC_PLUGIN_TESTS
  90. check-hook:
  91. -@echo "GNU Guile or CPU back-end not available, test suite not run."
  92. endif !RUN_GCC_PLUGIN_TESTS
  93. showcheck:
  94. -cat $(TEST_LOGS) /dev/null
  95. ! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null
  96. ! grep -q "WARNING: AddressSanitizer: " $(TEST_LOGS) /dev/null
  97. ! grep -q "ERROR: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  98. ! grep -q "WARNING: ThreadSanitizer: " $(TEST_LOGS) /dev/null