Print this page
10823 should ignore DW_TAG_subprogram with DW_AT_declaration tags
10824 GCC7-derived CTF can double qualifiers on arrays
10825 ctfdump -c drops last type
10826 ctfdump -c goes off the rails with a missing parent
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Approved by: Jerry Jelinek <jerry.jelinek@joyent.com>
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/test/util-tests/tests/ctf/Makefile
+++ new/usr/src/test/util-tests/tests/ctf/Makefile
1 1 #
2 2 # This file and its contents are supplied under the terms of the
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
3 3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 4 # You may only use this file in accordance with the terms of version
5 5 # 1.0 of the CDDL.
6 6 #
7 7 # A full copy of the text of the CDDL should have accompanied this
8 8 # source. A copy of the CDDL is also available via the Internet at
9 9 # http://www.illumos.org/license/CDDL.
10 10 #
11 11
12 12 #
13 -# Copyright (c) 2019, Joyent, Inc.
13 +# Copyright 2019, Joyent, Inc.
14 14 #
15 15
16 16 include $(SRC)/Makefile.master
17 17
18 18 ROOTOPTPKG = $(ROOT)/opt/util-tests
19 19 TESTDIR = $(ROOTOPTPKG)/tests/ctf
20 20
21 21 SCRIPTS = precheck.ksh \
22 22 ctftest.ksh \
23 23 ctftest-convert-non-c.ksh \
24 24 ctftest-convert-no-dwarf.ksh \
↓ open down ↓ |
1 lines elided |
↑ open up ↑ |
25 25 ctftest-merge-no-ctf.ksh \
26 26
27 27 TESTS = test-float.c \
28 28 test-reference.c \
29 29 test-int.c \
30 30 test-array.c \
31 31 test-enum.c \
32 32 test-forward.c \
33 33 test-sou.c \
34 34 test-function.c \
35 + test-qualifiers.c \
35 36 test-merge-static/Makefile.ctftest \
36 37 test-merge-static/test-a.c \
37 38 test-merge-static/test-b.c \
38 39 test-merge-static/test-c.c \
39 40 test-merge-static/test-d.c \
40 41 test-merge-static/test-main.c \
41 42 test-merge-forward/Makefile.ctftest \
42 43 test-merge-forward/test-impl.c \
43 44 test-merge-forward/test-merge.c \
44 45 test-merge-dedup/Makefile.ctftest \
45 46 test-merge-dedup/test-merge-1.c \
46 47 test-merge-dedup/test-merge-2.c \
47 48 test-merge-dedup/test-merge-3.c \
48 49 test-merge-dedup/test-merge-dedup.c \
49 50 test-merge-reduction/Makefile.ctftest \
50 51 test-merge-reduction/mapfile-vers \
51 52 test-merge-reduction/test-global.c \
52 53 test-merge-reduction/test-scoped.c \
53 54 test-merge-weak/Makefile.ctftest \
54 55 test-merge-weak/test-merge-weak.c \
55 56 test-weak.c \
56 57 Makefile.ctftest.com
57 58
58 59 MAKEDIRS = test-merge-static \
59 60 test-merge-forward \
60 61 test-merge-dedup \
61 62 test-merge-reduction \
62 63 test-merge-weak
63 64
64 65 CHECKS = check-float-32 \
65 66 check-float-64 \
↓ open down ↓ |
21 lines elided |
↑ open up ↑ |
66 67 check-int-32 \
67 68 check-int-64 \
68 69 check-reference \
69 70 check-array \
70 71 check-enum \
71 72 check-sou-32 \
72 73 check-sou-64 \
73 74 check-forward-32 \
74 75 check-forward-64 \
75 76 check-function \
77 + check-qualifiers \
76 78 check-merge-static \
77 79 check-merge-forward-32 \
78 80 check-merge-forward-64 \
79 81 check-merge-dedup \
80 82 check-merge-reduction \
81 83 check-merge-weak \
82 84 check-weak
83 85
84 86 COMMON_OBJS = check-common.o
85 87 ALL_OBJS = $(CHECKS:%=%.o) $(CHECKS:%-32=%.32.o) $(CHECKS:%-64=%.64.o) $(COMMON_OBJS)
86 88
87 89 ROOTTESTS = $(TESTS:%=$(TESTDIR)/%)
88 90 ROOTMAKEDIRS = $(MAKEDIRS:%=$(TESTDIR)/%)
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
89 91 ROOTCHECKS = $(CHECKS:%=$(TESTDIR)/%)
90 92 ROOTSCRIPTS = $(SCRIPTS:%.ksh=$(TESTDIR)/%)
91 93
92 94 ROOTTESTS := FILEMODE = 0444
93 95 ROOTCHECKS := FILEMODE = 0555
94 96 ROOTSCRIPTS := FILEMODE = 0555
95 97
96 98 include $(SRC)/cmd/Makefile.cmd
97 99 include $(SRC)/test/Makefile.com
98 100
101 +CSTD = $(CSTD_GNU99)
102 +
99 103 LDLIBS += -lctf
100 104
101 105 check-merge-static := LDLIBS += -lelf
102 106
103 107 all: $(CHECKS)
104 108
105 109 install: all $(ROOTTESTS) $(ROOTCHECKS) $(ROOTSCRIPTS)
106 110
107 111 $(CHECKS): $(COMMON_OBJS)
108 112
109 113 clean:
110 114 $(RM) $(ALL_OBJS)
111 115
112 116 clobber: clean
113 117 $(RM) $(CHECKS)
114 118
115 119 $(ROOTTESTS): $(TESTDIR) $(ROOTMAKEDIRS) $(TESTS)
116 120 $(ROOTCHECKS): $(TESTDIR) $(CHECKS)
117 121 $(ROOTSCRIPTS): $(TESTDIR) $(SCRIPTS)
118 122
119 123 $(TESTDIR):
120 124 $(INS.dir)
121 125
122 126 $(ROOTMAKEDIRS):
123 127 $(INS.dir)
124 128
125 129 $(TESTDIR)/%: %
126 130 $(INS.file)
127 131
128 132 $(TESTDIR)/%: %.ksh
129 133 $(INS.rename)
130 134
131 135 %.o: %.c
132 136 $(COMPILE.c) -o $@ $<
133 137 $(POST_PROCESS_O)
134 138
135 139 %.32.o: %.c
136 140 $(COMPILE.c) -o $@ $<
137 141 $(POST_PROCESS_O)
138 142
139 143 %.64.o: %.c
140 144 $(COMPILE.c) -DTARGET_LP64 -o $@ $<
141 145 $(POST_PROCESS_O)
142 146
143 147 %-32: %.32.o
144 148 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
145 149 $(POST_PROCESS)
146 150
147 151 %-64: %.64.o
148 152 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
149 153 $(POST_PROCESS)
150 154
151 155 %: %.o
152 156 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
153 157 $(POST_PROCESS)
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX