Print this page
NEX-2835 nightly_test script should support running of test-runner tests (zfs in particular)
NEX-2767 The existing zfs stress test does not run at all
NEX-1666 More maintainable ips2deb
OS-41 Support building with Jenkins
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/tools/scripts/Makefile
+++ new/usr/src/tools/scripts/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Copyright 2010, Richard Lowe
25 +# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
25 26
26 27 SHELL=/usr/bin/ksh93
27 28
28 29 SHFILES= \
29 30 Install \
30 31 bldenv \
31 32 build_cscope \
32 33 bringovercheck \
34 + check_mail_msg \
33 35 checkpaths \
34 36 cstyle \
35 37 elfcmp \
36 38 flg.flp \
37 39 genoffsets \
38 40 nightly \
39 41 onu \
42 + onu-deb \
40 43 protocmp.terse \
41 44 sccscheck \
42 45 webrev \
43 46 which_scm \
44 47 ws \
45 48 xref
46 49
47 50 PERLFILES= \
48 51 check_rtime \
49 52 find_elf \
50 53 interface_check \
51 54 interface_cmp \
52 55 jstyle \
53 56 validate_flg \
54 57 validate_paths \
55 58 wdiff
56 59
57 60 PERLMODULES= \
58 61 onbld_elfmod.pm \
59 62 onbld_elfmod_vertype.pm
60 63
61 64
62 65 PYFILES= \
63 66 cddlchk \
64 67 copyrightchk \
65 68 git-pbchk \
66 69 hdrchk \
67 70 mapfilechk \
68 71 validate_pkg \
69 72 wsdiff
70 73
71 74 SCRIPTLINKS= \
72 75 git-nits
73 76
74 77 MAN1ONBLDFILES= \
75 78 Install.1onbld \
76 79 bldenv.1onbld \
77 80 bringovercheck.1onbld \
78 81 cddlchk.1onbld \
79 82 checkpaths.1onbld \
80 83 check_rtime.1onbld \
81 84 cstyle.1onbld \
82 85 find_elf.1onbld \
83 86 flg.flp.1onbld \
84 87 git-pbchk.1onbld \
85 88 hdrchk.1onbld \
86 89 interface_check.1onbld \
87 90 interface_cmp.1onbld \
88 91 jstyle.1onbld \
89 92 mapfilechk.1onbld \
90 93 nightly.1onbld \
91 94 onu.1onbld \
92 95 sccscheck.1onbld \
93 96 webrev.1onbld \
94 97 which_scm.1onbld \
95 98 ws.1onbld \
96 99 wsdiff.1onbld \
97 100 xref.1onbld
98 101
99 102 MAN1ONBLDLINKS= \
100 103 git-nits.1onbld
101 104
102 105 MAKEFILES= \
103 106 xref.mk
104 107
105 108 ETCFILES= \
106 109 its.conf \
107 110 its.reg
108 111
109 112 EXCEPTFILES= \
110 113 check_rtime \
111 114 interface_check \
112 115 interface_cmp
113 116
114 117 CLEANFILES = $(SHFILES) $(PERLFILES) $(PYFILES) bldenv.1onbld onu.sh
115 118
116 119 onu.sh: onu.sh.in
117 120 $(SED) -e "s:@PYTHON_VERSION@:$(PYTHON_VERSION):g" < onu.sh.in > $@
118 121
119 122 include ../Makefile.tools
120 123
121 124 ROOTONBLDSCRIPTLINKS = $(SCRIPTLINKS:%=$(ROOTONBLDBIN)/%)
122 125 ROOTONBLDMAN1ONBLDLINKS = $(MAN1ONBLDLINKS:%=$(ROOTONBLDMAN1ONBLD)/%)
123 126
124 127 $(ROOTONBLDETCFILES) := FILEMODE= 644
125 128 $(ROOTONBLDEXCEPTFILES) := FILEMODE= 644
126 129 $(ROOTONBLDPERLMODULES) := FILEMODE= 644
127 130 $(ROOTONBLDMAKEFILES) := FILEMODE= 644
128 131 $(ROOTONBLDMAN1ONBLDFILES) := FILEMODE= 644
129 132
130 133 .KEEP_STATE:
131 134
132 135 all: $(SHFILES) $(PERLFILES) $(PERLMODULES) $(PYFILES) \
133 136 $(MAN1ONBLDFILES) $(MAKEFILES)
134 137
135 138 $(ROOTONBLDBIN)/git-nits:
136 139 $(RM) $(ROOTONBLDBIN)/git-nits
137 140 $(SYMLINK) git-pbchk $(ROOTONBLDBIN)/git-nits
138 141
139 142 $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld:
140 143 $(RM) $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
141 144 $(SYMLINK) git-pbchk.1onbld $(ROOTONBLDMAN1ONBLD)/git-nits.1onbld
142 145
143 146 install: all .WAIT $(ROOTONBLDSHFILES) $(ROOTONBLDPERLFILES) \
144 147 $(ROOTONBLDPERLMODULES) $(ROOTONBLDPYFILES) \
145 148 $(ROOTONBLDSCRIPTLINKS) $(ROOTONBLDMAN1ONBLDFILES) \
146 149 $(ROOTONBLDMAKEFILES) $(ROOTONBLDETCFILES) \
147 150 $(ROOTONBLDEXCEPTFILES) $(ROOTONBLDMAN1ONBLDLINKS)
148 151
149 152 clean:
150 153 $(RM) $(CLEANFILES)
151 154
152 155 bldenv: bldenv.sh stdenv.sh
153 156 $(RM) "$@"
154 157 sed -e '/# STDENV_START/ r stdenv.sh' bldenv.sh > "$@"
155 158 # Check for shell lint and fail if we hit warnings
156 159 shlintout="$$( /usr/bin/ksh93 -n "$@" 2>&1 )" ; \
157 160 [[ "$${shlintout}" != "" ]] && \
158 161 { print -r -- "$${shlintout}" ; false ; } || true
159 162 $(CHMOD) +x "$@"
160 163
161 164 bldenv.1onbld: bldenv
162 165 $(RM) "$@"
163 166 (set +o errexit ; ksh93 $? --nroff ; true) 2>&1 | \
164 167 sed -e 's/\.DS/.nf/g;s/\.DE/.fi/' \
165 168 -e 's/\.TH BLDENV 1/.TH BLDENV 1ONBLD/' \
166 169 -e 's/(1)/(1ONBLD)/' > "$@"
167 170
168 171 nightly: nightly.sh stdenv.sh
169 172 $(RM) "$@"
170 173 sed -e '/# STDENV_START/ r stdenv.sh' nightly.sh > nightly
171 174 $(CHMOD) +x "$@"
172 175
173 176 include ../Makefile.targ
174 177
|
↓ open down ↓ |
125 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX