Update Trac ticket URLs to point to GitLab
[ghc.git] / testsuite / tests / Makefile
1 TOP=..
2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/test.mk
4
5 # The libraries that we actually know about. We don't want to test
6 # extralibs that are in our tree but which we haven't built, and
7 # we don't want to test unix on Windows or Win32 on non-Windows.
8 LIBRARIES := $(shell '$(GHC_PKG)' list --simple-output --names-only)
9
10 ifeq "$(findstring base,$(LIBRARIES))" ""
11 $(error base library does not seem to be installed)
12 endif
13
14 # Now find the "tests" directories of those libraries, where they exist
15 LIBRARY_TEST_PATHS := $(wildcard $(patsubst %, $(TOP)/../libraries/%/tests, $(LIBRARIES))) \
16 $(wildcard $(patsubst %, $(TOP)/../libraries/%/tests-ghc, $(LIBRARIES)))
17
18
19 # Add tests from packages
20 RUNTEST_OPTS += $(patsubst %, --rootdir=%, $(LIBRARY_TEST_PATHS))
21