summaryrefslogtreecommitdiffstats
path: root/cts/Makefile.am
blob: 598ae32b9b22a03f845f82f7f0f8dbfbc6ada08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Copyright 2001-2023 the Pacemaker project contributors
#
# The version control history for this file may have further details.
#
# This source code is licensed under the GNU General Public License version 2
# or later (GPLv2+) WITHOUT ANY WARRANTY.
#

MAINTAINERCLEANFILES    = Makefile.in

# Test commands and globally applicable test files should be in $(testdir),
# and command-specific test data should be in a command-specific subdirectory.
testdir			= $(datadir)/$(PACKAGE)/tests
test_SCRIPTS		= cts-attrd 		\
			  cts-cli		\
			  cts-exec		\
			  cts-fencing		\
			  cts-lab 		\
			  cts-regression	\
			  cts-scheduler
dist_test_DATA		= README.md			\
			  valgrind-pcmk.suppressions

clidir		= $(testdir)/cli
dist_cli_DATA	= $(wildcard cli/*.xml cli/*.exp)

ctsdir			= $(datadir)/$(PACKAGE)/tests/cts
cts_SCRIPTS		= cts

# Commands intended to be run only via other commands
halibdir		= $(CRM_DAEMON_DIR)
dist_halib_SCRIPTS	= cts-log-watcher

noinst_SCRIPTS		= cluster_test

.PHONY: scheduler-list
scheduler-list:
	@for T in "$(srcdir)"/scheduler/xml/*.xml; do       \
		echo $$(basename $$T .xml);             \
	done

CLEANFILES	= $(builddir)/.regression.failed.diff

.PHONY: clean-local
clean-local:
	rm -f scheduler/*/*.pe

SUBDIRS	= benchmark 	\
	  scheduler 	\
	  support

.PHONY: cts-support-install
cts-support-install:
	$(MAKE) $(AM_MAKEFLAGS) -C support cts-support
	$(builddir)/support/cts-support install

.PHONY: cts-support-uninstall
cts-support-uninstall:
	$(MAKE) $(AM_MAKEFLAGS) -C support cts-support
	$(builddir)/support/cts-support uninstall

# Everything listed here is a python script, typically generated from a .in file
# (though that is not a requirement).  We want to run pylint on all of these
# things after they've been built.
python_files = cts-attrd 	\
	       cts-exec 	\
	       cts-fencing 	\
	       cts-lab 		\
	       cts-log-watcher 	\
	       cts-regression 	\
	       cts-scheduler

.PHONY: pylint
pylint: $(python_files)
	PYTHONPATH=$(top_builddir)/python pylint --rcfile $(top_srcdir)/python/pylintrc $(python_files)