Print this page
10816 ctf_dwarf_convert_type() relies on un-initialized id
10817 ctfconvert -i option is mis-handled
10818 Improve ctfconvert error messages
10819 ctfconvert should handle empty dies
10820 ctfconvert -i never converts
10821 bad free in ctf_dwarf_init_die
10815 shouldn't build gcore.c as part of kmdb
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed 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
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 #
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
11 11
12 12 #
13 13 # Copyright (c) 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 -SCRIPTS = ctftest.ksh
21 +SCRIPTS = precheck.ksh \
22 + ctftest.ksh \
23 + ctftest-convert-non-c.ksh \
24 + ctftest-convert-no-dwarf.ksh \
25 + ctftest-merge-no-ctf.ksh \
22 26
23 27 TESTS = test-float.c \
24 28 test-reference.c \
25 29 test-int.c \
26 30 test-array.c \
27 31 test-enum.c \
28 32 test-forward.c \
29 33 test-sou.c \
30 34 test-function.c \
31 35 test-merge-static/Makefile.ctftest \
32 36 test-merge-static/test-a.c \
33 37 test-merge-static/test-b.c \
34 38 test-merge-static/test-c.c \
35 39 test-merge-static/test-d.c \
36 40 test-merge-static/test-main.c \
37 41 test-merge-forward/Makefile.ctftest \
38 42 test-merge-forward/test-impl.c \
39 43 test-merge-forward/test-merge.c \
40 44 test-merge-dedup/Makefile.ctftest \
41 45 test-merge-dedup/test-merge-1.c \
42 46 test-merge-dedup/test-merge-2.c \
43 47 test-merge-dedup/test-merge-3.c \
44 48 test-merge-dedup/test-merge-dedup.c \
45 49 test-merge-reduction/Makefile.ctftest \
46 50 test-merge-reduction/mapfile-vers \
47 51 test-merge-reduction/test-global.c \
48 52 test-merge-reduction/test-scoped.c \
49 53 test-merge-weak/Makefile.ctftest \
50 54 test-merge-weak/test-merge-weak.c \
51 55 test-weak.c \
52 56 Makefile.ctftest.com
53 57
54 58 MAKEDIRS = test-merge-static \
55 59 test-merge-forward \
56 60 test-merge-dedup \
57 61 test-merge-reduction \
58 62 test-merge-weak
59 63
60 64 CHECKS = check-float-32 \
61 65 check-float-64 \
62 66 check-int-32 \
63 67 check-int-64 \
64 68 check-reference \
65 69 check-array \
66 70 check-enum \
67 71 check-sou-32 \
68 72 check-sou-64 \
69 73 check-forward-32 \
70 74 check-forward-64 \
71 75 check-function \
72 76 check-merge-static \
73 77 check-merge-forward-32 \
74 78 check-merge-forward-64 \
75 79 check-merge-dedup \
76 80 check-merge-reduction \
77 81 check-merge-weak \
78 82 check-weak
79 83
80 84 COMMON_OBJS = check-common.o
81 85 ALL_OBJS = $(CHECKS:%=%.o) $(CHECKS:%-32=%.32.o) $(CHECKS:%-64=%.64.o) $(COMMON_OBJS)
82 86
83 87 ROOTTESTS = $(TESTS:%=$(TESTDIR)/%)
84 88 ROOTMAKEDIRS = $(MAKEDIRS:%=$(TESTDIR)/%)
85 89 ROOTCHECKS = $(CHECKS:%=$(TESTDIR)/%)
86 90 ROOTSCRIPTS = $(SCRIPTS:%.ksh=$(TESTDIR)/%)
87 91
88 92 ROOTTESTS := FILEMODE = 0444
89 93 ROOTCHECKS := FILEMODE = 0555
90 94 ROOTSCRIPTS := FILEMODE = 0555
91 95
92 96 include $(SRC)/cmd/Makefile.cmd
93 97 include $(SRC)/test/Makefile.com
94 98
95 99 LDLIBS += -lctf
96 100
97 101 check-merge-static := LDLIBS += -lelf
98 102
99 103 all: $(CHECKS)
100 104
101 105 install: all $(ROOTTESTS) $(ROOTCHECKS) $(ROOTSCRIPTS)
102 106
103 107 $(CHECKS): $(COMMON_OBJS)
104 108
105 109 clean:
106 110 $(RM) $(ALL_OBJS)
107 111
108 112 clobber: clean
109 113 $(RM) $(CHECKS)
110 114
111 115 $(ROOTTESTS): $(TESTDIR) $(ROOTMAKEDIRS) $(TESTS)
112 116 $(ROOTCHECKS): $(TESTDIR) $(CHECKS)
113 117 $(ROOTSCRIPTS): $(TESTDIR) $(SCRIPTS)
114 118
115 119 $(TESTDIR):
116 120 $(INS.dir)
117 121
118 122 $(ROOTMAKEDIRS):
119 123 $(INS.dir)
120 124
121 125 $(TESTDIR)/%: %
122 126 $(INS.file)
123 127
124 128 $(TESTDIR)/%: %.ksh
125 129 $(INS.rename)
126 130
127 131 %.o: %.c
128 132 $(COMPILE.c) -o $@ $<
129 133 $(POST_PROCESS_O)
130 134
131 135 %.32.o: %.c
132 136 $(COMPILE.c) -o $@ $<
133 137 $(POST_PROCESS_O)
134 138
135 139 %.64.o: %.c
136 140 $(COMPILE.c) -DTARGET_LP64 -o $@ $<
137 141 $(POST_PROCESS_O)
138 142
139 143 %-32: %.32.o
140 144 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
141 145 $(POST_PROCESS)
142 146
143 147 %-64: %.64.o
144 148 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
145 149 $(POST_PROCESS)
146 150
147 151 %: %.o
148 152 $(LINK.c) -o $@ $< $(COMMON_OBJS) $(LDLIBS)
149 153 $(POST_PROCESS)
↓ open down ↓ |
118 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX