blob: 8f3f5c4cf92a98ed6a4b361a90abfea2d0b5e04e (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
|
#!gmake
#
# Copyright (c) 1997-2002 Silicon Graphics, Inc. All Rights Reserved.
#
# NB: this GNUmakefile is only for use from within the PCP build tree. It governs
# only the packaging of the testsuite into the $PCP_VAR_DIR/testsuite directory.
# The nearby GNUmakefile.install file actually governs execution of the testsuite.
TOPDIR = ..
include $(TOPDIR)/src/include/builddefs
-include ./GNUlocaldefs
TESTDIR = $(PCP_VAR_DIR)/testsuite
TESTS = $(shell sed -n -e '/^[0-9]/s/:retired//' -e '/^[0-9]/s/:reserved//' -e '/^[0-9]/s/[ ].*//' -e '/^[0-9]/p' <group)
SUBDIRS = src pmdas cisco gluster pconf sadist collectl secure nfsclient \
archives views qt linux
LCONFIG = localconfig
# No implicit rules here, thank you
#
.SUFFIXES:
# and do nothing if NNN.out is older than NNN
#
%.out: %
default_pcp default: new remake check qa_outfiles $(OTHERS) $(SUBDIRS) $(LCONFIG)
$(SUBDIRS_MAKERULE)
setup: $(SUBDIRS) $(LCONFIG) qa_hosts
$(SUBDIRS_MAKERULE)
LDIRT += 051.work 134.full.* \
*.bak *.bad *.core *.full *.raw *.o core a.out core.* \
*.log eek* urk* so_locations tmp.* gmon.out oss.qa.tar.gz \
*.full.ok *.new rc_cron_check.clean \
make.out qa_hosts qa_outfiles localconfig check.time
# these ones are links to the real files created when the associated
# test is run
LDIRT += $(shell [ -f .gitignore ] && grep '\.out$$' .gitignore)
SCRIPTS = mk.localconfig mk.pcpversion mk.qa_hosts mk.variant getpmcdhosts \
new check recheck remake findmetric group-stats changeversion \
check-gitignore check-group chk.setup show-me disk-work \
xlate_2_new_pmns common setup.051
COMMON_SCRIPTS = common.install.cisco common.pcpweb
COMMON = common.check common.config common.filter \
common.product common.rc common.setup \
common.secure common.gfs2 common.rpm \
common.python common.sh common.qt common.avahi \
common.discovery common.compress
OTHERS = GNUmakefile.install group qa_hosts.master README \
valgrind-suppress sanity.coverage
DOTOUTFILES = $(shell [ -f qa_outfiles ] && cat qa_outfiles || ls -1 | grep '^[0-9]' | grep -v '^[0-9][0-9][0-9]$$' | grep -v '^[0-9][0-9][0-9][0-9]$$' | egrep -v '^[0-9][0-9][0-9]*\.(full|out\.bad|notrun|work)' | tee qa_outfiles)
LSRCFILES = $(SCRIPTS) $(COMMON_SCRIPTS) $(COMMON) $(TESTS) $(DOTOUTFILES) $(OTHERS)
qa_outfiles:
@echo $(DOTOUTFILES) > qa_outfiles
qa_hosts: qa_hosts.master mk.qa_hosts
./mk.qa_hosts
localconfig:
@echo PCP_PLATFORM=$(PCP_PLATFORM) > localconfig
./mk.pcpversion $(PCP_VERSION) >> localconfig
@echo 'PCP_EOE_VER=0' >> localconfig
@echo 'PCP_PRO_VER=0' >> localconfig
install_pcp install: $(SUBDIRS)
ifeq (, $(filter mingw darwin solaris, $(TARGET_OS)))
$(INSTALL) -m 755 -d $(TESTDIR)
$(INSTALL) -m 755 $(TESTS) $(SCRIPTS) $(COMMON_SCRIPTS) $(TESTDIR)
$(INSTALL) -m 644 $(COMMON) $(OTHERS) $(TESTDIR)
$(INSTALL) -m 644 GNUmakefile.install $(TESTDIR)/GNUmakefile
$(INSTALL) -m 644 qa_outfiles $(DOTOUTFILES) $(TESTDIR)
$(SUBDIRS_MAKERULE)
endif
include $(BUILDRULES)
debug-me:
@echo TESTS=$(TESTS)
@echo SRCFILES=$(SRCFILES)
@echo CONFFILES=$(CONFFILES)
@echo SUBDIRS=$(SUBDIRS)
|