tests: Disable run-debuginfod-federation-metrics.sh for old libmicrohttpd
[platform/upstream/elfutils.git] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in
2 ##
3 ## Copyright (C) 1996-2019 Red Hat, Inc.
4 ## This file is part of elfutils.
5 ##
6 ## This file is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 3 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## elfutils is distributed in the hope that it will be useful, but
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
18 ##
19 include $(top_srcdir)/config/eu.am
20 BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
21
22 AM_CPPFLAGS += -I$(top_srcdir)/libasm -I$(top_srcdir)/libdw \
23             -I$(top_srcdir)/libdwfl -I$(top_srcdir)/libdwelf \
24             -I$(top_srcdir)/libebl -I$(top_srcdir)/libelf \
25             -I$(top_srcdir)/lib -I..
26 AM_LDFLAGS = -Wl,-rpath-link,../libasm:../libdw:../libelf
27
28 if TESTS_RPATH
29 AM_LDFLAGS += -Wl,-rpath,$(BUILD_RPATH)
30 tests_rpath = yes
31 else
32 tests_rpath = no
33 endif
34
35 check_PROGRAMS = arextract arsymtest newfile saridx scnnames sectiondump \
36                   showptable update1 update2 update3 update4 test-nlist \
37                   show-die-info get-files next-files get-lines next-lines \
38                   get-pubnames \
39                   get-aranges allfcts line2addr addrscopes funcscopes \
40                   show-abbrev hash newscn ecp dwflmodtest \
41                   find-prologues funcretval allregs rdwrmmap \
42                   dwfl-bug-addr-overflow arls dwfl-bug-fd-leak \
43                   dwfl-addr-sect dwfl-bug-report early-offscn \
44                   dwfl-bug-getmodules dwarf-getmacros dwarf-ranges addrcfi \
45                   dwarfcfi \
46                   test-flag-nobits dwarf-getstring rerequest_tag \
47                   alldts typeiter typeiter2 low_high_pc \
48                   test-elf_cntl_gelf_getshdr dwflsyms dwfllines \
49                   dwfl-report-elf-align dwfl-report-segment-contiguous \
50                   varlocs backtrace backtrace-child \
51                   backtrace-data backtrace-dwarf debuglink debugaltlink \
52                   buildid deleted deleted-lib.so aggregate_size peel_type \
53                   vdsosyms \
54                   getsrc_die strptr newdata elfstrtab dwfl-proc-attach \
55                   elfshphehdr elfstrmerge dwelfgnucompressed elfgetchdr \
56                   elfgetzdata elfputzdata zstrptr emptyfile vendorelf \
57                   fillfile dwarf_default_lower_bound dwarf-die-addr-die \
58                   get-units-invalid get-units-split attr-integrate-skel \
59                   all-dwarf-ranges unit-info next_cfi \
60                   elfcopy addsections xlate_notes elfrdwrnop \
61                   dwelf_elf_e_machine_string \
62                   getphdrnum leb128 read_unaligned \
63                   msg_tst system-elf-libelf-test \
64                   nvidia_extended_linemap_libdw \
65                   $(asm_TESTS)
66
67 asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
68             asm-tst6 asm-tst7 asm-tst8 asm-tst9
69
70 if BIARCH
71 check_PROGRAMS += backtrace-child-biarch
72 endif
73
74 # Substitute $(COMPILE).
75 backtrace-child-biarch$(EXEEXT): backtrace-child.c
76         $(AM_V_CC)$(CC_BIARCH) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
77                      $(AM_CPPFLAGS) $(CPPFLAGS) \
78                      $(AM_CFLAGS) $(CFLAGS) $(backtrace_child_CFLAGS) \
79                      $(AM_LDFLAGS) $(LDFLAGS) $(backtrace_child_LDFLAGS) \
80                      -o $@ $<
81
82 if GCOV
83 GCOV_FLAGS=-fprofile-arcs -ftest-coverage
84 else
85 GCOV_FLAGS=
86 endif
87
88 # test_nlist checks its own symbol table, and expects various symbols
89 # to be in the order as specified in the source file. Explicitly set
90 # minimal CFLAGS. But add address sanitizer if in use.
91 if USE_ADDRESS_SANITIZER
92 EXTRA_NLIST_CFLAGS=-fsanitize=address
93 else
94 EXTRA_NLIST_CFLAGS=
95 endif
96
97 test-nlist$(EXEEXT): test-nlist.c
98         $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
99           $(AM_CPPFLAGS) $(CPPFLAGS) \
100           $(test_nlist_CFLAGS) $(GCOV_FLAGS) -o $@ $< $(test_nlist_LDADD)
101
102 TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile test-nlist \
103         update1 update2 update3 update4 \
104         run-show-die-info.sh run-get-files.sh run-get-lines.sh \
105         run-next-files.sh run-next-lines.sh \
106         run-get-pubnames.sh run-get-aranges.sh run-allfcts.sh \
107         run-show-abbrev.sh run-line2addr.sh hash \
108         run-large-elf-file.sh \
109         newscn run-strip-test.sh run-strip-test2.sh \
110         run-strip-test3.sh run-strip-test4.sh run-strip-test5.sh \
111         run-strip-test6.sh run-strip-test7.sh run-strip-test8.sh \
112         run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
113         run-strip-test12.sh \
114         run-strip-nothing.sh run-strip-g.sh run-annobingroup.sh \
115         run-strip-groups.sh run-strip-reloc.sh run-strip-strmerge.sh \
116         run-strip-nobitsalign.sh run-strip-remove-keep.sh \
117         run-unstrip-test.sh run-unstrip-test2.sh run-unstrip-test3.sh \
118         run-unstrip-test4.sh run-unstrip-M.sh run-elfstrmerge-test.sh \
119         run-ecp-test.sh run-ecp-test2.sh run-alldts.sh \
120         run-elflint-test.sh run-elflint-self.sh run-ranlib-test.sh \
121         run-ranlib-test2.sh run-ranlib-test3.sh run-ranlib-test4.sh \
122         run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
123         run-find-prologues.sh run-allregs.sh run-addrcfi.sh \
124         run-dwarfcfi.sh run-nm-syms.sh \
125         run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
126         run-readelf-compressed.sh \
127         run-readelf-const-values.sh \
128         run-varlocs-self.sh run-exprlocs-self.sh \
129         run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
130         run-readelf-test4.sh run-readelf-twofiles.sh \
131         run-readelf-macro.sh run-readelf-loc.sh run-readelf-ranges.sh \
132         run-readelf-aranges.sh run-readelf-line.sh run-readelf-z.sh \
133         run-readelf-frames.sh \
134         run-readelf-n.sh \
135         run-retain.sh \
136         run-native-test.sh run-bug1-test.sh \
137         run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
138         dwfl-bug-addr-overflow run-addrname-test.sh \
139         dwfl-bug-fd-leak dwfl-bug-report dwfl-report-segment-contiguous \
140         run-dwfl-bug-offline-rel.sh run-dwfl-addr-sect.sh \
141         run-disasm-x86.sh run-disasm-x86-64.sh \
142         run-early-offscn.sh run-dwarf-getmacros.sh run-dwarf-ranges.sh \
143         run-test-flag-nobits.sh run-prelink-addr-test.sh \
144         run-dwarf-getstring.sh run-rerequest_tag.sh run-typeiter.sh \
145         run-readelf-d.sh run-readelf-gdb_index.sh run-unstrip-n.sh \
146         run-low_high_pc.sh run-macro-test.sh run-elf_cntl_gelf_getshdr.sh \
147         run-test-archive64.sh run-readelf-vmcoreinfo.sh \
148         run-readelf-mixed-corenote.sh run-dwfllines.sh \
149         run-readelf-variant.sh run-readelf-fat-lto.sh \
150         run-dwfl-report-elf-align.sh run-addr2line-test.sh \
151         run-addr2line-i-test.sh run-addr2line-i-lex-test.sh \
152         run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
153         run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh run-funcretval.sh \
154         run-backtrace-native.sh run-backtrace-data.sh run-backtrace-dwarf.sh \
155         run-backtrace-native-biarch.sh run-backtrace-native-core.sh \
156         run-backtrace-native-core-biarch.sh run-backtrace-core-x86_64.sh \
157         run-backtrace-fp-core-x86_64.sh \
158         run-backtrace-fp-core-aarch64.sh \
159         run-backtrace-fp-core-ppc64le.sh \
160         run-backtrace-core-x32.sh \
161         run-backtrace-core-i386.sh run-backtrace-fp-core-i386.sh \
162         run-backtrace-core-ppc.sh \
163         run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
164         run-backtrace-core-aarch64.sh run-backtrace-core-sparc.sh \
165         run-backtrace-demangle.sh run-stack-d-test.sh run-stack-i-test.sh \
166         run-stack-demangled-test.sh run-readelf-zx.sh run-readelf-zp.sh \
167         run-readelf-addr.sh run-readelf-str.sh \
168         run-readelf-multi-noline.sh \
169         run-readelf-types.sh \
170         run-readelf-dwz-multi.sh run-allfcts-multi.sh run-deleted.sh \
171         run-linkmap-cut.sh run-aggregate-size.sh run-peel-type.sh \
172         vdsosyms run-readelf-A.sh \
173         run-getsrc-die.sh run-strptr.sh newdata elfstrtab dwfl-proc-attach \
174         elfshphehdr run-lfs-symbols.sh run-dwelfgnucompressed.sh \
175         run-elfgetchdr.sh \
176         run-elfgetzdata.sh run-elfputzdata.sh run-zstrptr.sh \
177         run-compress-test.sh \
178         run-readelf-zdebug.sh run-readelf-zdebug-rel.sh \
179         emptyfile vendorelf fillfile dwarf_default_lower_bound \
180         run-dwarf-die-addr-die.sh \
181         run-get-units-invalid.sh run-get-units-split.sh \
182         run-attr-integrate-skel.sh \
183         run-all-dwarf-ranges.sh run-unit-info.sh \
184         run-reloc-bpf.sh \
185         run-next-cfi.sh run-next-cfi-self.sh \
186         run-reverse-sections.sh run-reverse-sections-self.sh \
187         run-copyadd-sections.sh run-copymany-sections.sh \
188         run-typeiter-many.sh run-strip-test-many.sh \
189         run-strip-version.sh run-xlate-note.sh \
190         run-readelf-discr.sh \
191         run-dwelf_elf_e_machine_string.sh \
192         run-elfclassify.sh run-elfclassify-self.sh \
193         run-disasm-riscv64.sh \
194         run-pt_gnu_prop-tests.sh \
195         run-getphdrnum.sh run-test-includes.sh \
196         leb128 read_unaligned \
197         msg_tst system-elf-libelf-test \
198         $(asm_TESTS) run-disasm-bpf.sh run-low_high_pc-dw-form-indirect.sh \
199         run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
200         run-readelf-dw-form-indirect.sh run-strip-largealign.sh
201
202 if !BIARCH
203 export ELFUTILS_DISABLE_BIARCH = 1
204 endif
205
206 if !DEMANGLE
207 export ELFUTILS_DISABLE_DEMANGLE = 1
208 endif
209
210 if LZMA
211 TESTS += run-readelf-s.sh run-dwflsyms.sh
212 endif
213
214 if HAVE_ZSTD
215 TESTS += run-readelf-compressed-zstd.sh
216 endif
217
218 if DEBUGINFOD
219 check_PROGRAMS += debuginfod_build_id_find
220 # With the dummy delegation doesn't work
221 if !DUMMY_LIBDEBUGINFOD
222 TESTS += run-debuginfod-dlopen.sh \
223          run-debuginfod-artifact-running.sh \
224          run-debuginfod-fd-prefetch-caches.sh \
225          run-debuginfod-regex.sh \
226          run-debuginfod-duplicate-urls.sh \
227          run-debuginfod-file.sh \
228          run-debuginfod-sizetime.sh \
229          run-debuginfod-malformed.sh \
230          run-debuginfod-negative-cache.sh \
231          run-debuginfod-tmp-home.sh \
232          run-debuginfod-writable.sh \
233          run-debuginfod-no-urls.sh \
234          run-debuginfod-query-retry.sh \
235          run-debuginfod-extraction.sh \
236          run-debuginfod-archive-groom.sh \
237          run-debuginfod-archive-rename.sh \
238          run-debuginfod-archive-test.sh \
239          run-debuginfod-federation-sqlite.sh \
240          run-debuginfod-federation-link.sh \
241          run-debuginfod-percent-escape.sh \
242          run-debuginfod-x-forwarded-for.sh \
243          run-debuginfod-response-headers.sh \
244          run-debuginfod-extraction-passive.sh \
245          run-debuginfod-webapi-concurrency.sh
246 endif
247 if !OLD_LIBMICROHTTPD
248 # Will crash on too old libmicrohttpd
249 # Too many open file descriptors confuses libmicrohttpd < 0.9.51
250 TESTS += run-debuginfod-federation-metrics.sh
251 endif
252 endif
253
254 EXTRA_DIST = run-arextract.sh run-arsymtest.sh run-ar.sh \
255              run-show-die-info.sh run-get-files.sh run-get-lines.sh \
256              run-next-files.sh run-next-lines.sh testfile-only-debug-line.bz2 \
257              run-get-pubnames.sh run-get-aranges.sh \
258              run-show-abbrev.sh run-strip-test.sh \
259              run-strip-test2.sh run-ecp-test.sh run-ecp-test2.sh \
260              testfile.bz2 testfile2.bz2 testfile3.bz2 testfile4.bz2 \
261              testfile5.bz2 testfile6.bz2 testfile7.bz2 testfile8.bz2 \
262              testfile9.bz2 testfile10.bz2 testfile11.bz2 testfile12.bz2 \
263              testfile13.bz2 run-strip-test3.sh run-allfcts.sh \
264              testfile_class_func.bz2 testfile_nested_funcs.bz2 \
265              testfile-lto-gcc10.bz2 \
266              testfile-lto-gcc9.bz2 testfile-lto-gcc8.bz2 \
267              run-line2addr.sh run-elflint-test.sh testfile14.bz2 \
268              run-strip-test4.sh run-strip-test5.sh run-strip-test6.sh \
269              run-strip-test7.sh run-strip-test8.sh run-strip-groups.sh \
270              run-strip-test9.sh run-strip-test10.sh run-strip-test11.sh \
271              run-strip-test12.sh \
272              run-strip-nothing.sh run-strip-remove-keep.sh run-strip-g.sh \
273              run-annobingroup.sh testfile-annobingroup.o.bz2 \
274              testfile-annobingroup-i386.o.bz2 \
275              testfile-annobingroup-x86_64.o.bz2 \
276              run-strip-strmerge.sh run-strip-nobitsalign.sh \
277              testfile-nobitsalign.bz2 testfile-nobitsalign.strip.bz2 \
278              run-strip-reloc.sh hello_i386.ko.bz2 hello_x86_64.ko.bz2 \
279              hello_ppc64.ko.bz2 hello_s390.ko.bz2 hello_aarch64.ko.bz2 \
280              hello_m68k.ko.bz2 hello_riscv64.ko.bz2 hello_csky.ko.bz2 \
281              run-unstrip-test.sh run-unstrip-test2.sh \
282              testfile-info-link.bz2 testfile-info-link.debuginfo.bz2 \
283              testfile-info-link.stripped.bz2 run-unstrip-test3.sh \
284              run-unstrip-test4.sh testfile-strtab.bz2 \
285              testfile-strtab.stripped.bz2 testfile-strtab.debuginfo.bz2 \
286              run-unstrip-M.sh run-elfstrmerge-test.sh \
287              run-elflint-self.sh run-ranlib-test.sh run-ranlib-test2.sh \
288              run-ranlib-test3.sh run-ranlib-test4.sh \
289              run-addrscopes.sh run-strings-test.sh run-funcscopes.sh \
290              run-nm-syms.sh testfilesyms32.bz2 testfilesyms64.bz2 \
291              run-nm-self.sh run-readelf-self.sh run-readelf-info-plus.sh \
292              run-readelf-compressed.sh \
293              run-readelf-compressed-zstd.sh \
294              run-readelf-const-values.sh testfile-const-values.debug.bz2 \
295              run-addrcfi.sh run-dwarfcfi.sh \
296              testfile11-debugframe.bz2 testfile12-debugframe.bz2 \
297              testfileaarch64-debugframe.bz2 testfilearm-debugframe.bz2 \
298              testfileppc32-debugframe.bz2 testfileppc64-debugframe.bz2 \
299              testfilecsky.bz2 \
300              run-varlocs-self.sh run-exprlocs-self.sh \
301              run-find-prologues.sh run-allregs.sh run-native-test.sh \
302              run-addrname-test.sh run-dwfl-bug-offline-rel.sh \
303              run-dwfl-addr-sect.sh run-early-offscn.sh \
304              run-dwarf-getmacros.sh \
305              run-dwarf-ranges.sh debug-ranges-no-lowpc.o.bz2 \
306              testfileranges4.debug.bz2 testfileranges5.debug.bz2 \
307              testfilesplitranges5.debug.bz2 \
308              testfile-ranges-hello5.dwo.bz2 testfile-ranges-world5.dwo.bz2 \
309              run-test-flag-nobits.sh \
310              run-dwarf-getstring.sh run-rerequest_tag.sh run-alldts.sh \
311              testfile15.bz2 testfile15.debug.bz2 \
312              testfile16.bz2 testfile16.debug.bz2 \
313              testfile17.bz2 testfile17.debug.bz2 \
314              testfile18.bz2 testfile19.bz2 testfile19.index.bz2 \
315              testfile20.bz2 testfile20.index.bz2 \
316              testfile21.bz2 testfile21.index.bz2 \
317              testfile22.bz2 testfile23.bz2 testfile24.bz2 testfile25.bz2 \
318              testfile26.bz2 testfile27.bz2 \
319              coverage.sh test-subr.sh test-wrapper.sh debuginfod-subr.sh \
320              run-readelf-test1.sh run-readelf-test2.sh run-readelf-test3.sh \
321              run-readelf-test4.sh run-readelf-twofiles.sh \
322              run-bug1-test.sh testfile28.bz2 testfile28.rdwr.bz2 \
323              run-debuglink.sh run-debugaltlink.sh run-buildid.sh \
324              testfile29.bz2 testfile29.rdwr.bz2 \
325              testfile30.bz2 testfile31.bz2 testfile32.bz2 testfile33.bz2 \
326              testfile34.bz2 testfile35.bz2 testfile35.debug.bz2 \
327              testfile36.bz2 testfile36.debug.bz2 \
328              testfile37.bz2 testfile37.debug.bz2 \
329              testfile38.bz2 testfile39.bz2 testfile40.bz2 testfile40.debug.bz2 \
330              testfile41.bz2 testfile42.bz2 testfile42_noshdrs.bz2 \
331              testfile43.bz2 \
332              testfile44.S.bz2 testfile44.expect.bz2 run-disasm-x86.sh \
333              testfile45.S.bz2 testfile45.expect.bz2 run-disasm-x86-64.sh \
334              testfile46.bz2 testfile47.bz2 testfile48.bz2 testfile48.debug.bz2 \
335              testfile49.bz2 testfile50.bz2 testfile51.bz2 \
336              testfile-macros-0xff.bz2 \
337              run-readelf-macro.sh testfilemacro.bz2 \
338              run-readelf-loc.sh testfileloc.bz2 \
339              splitdwarf4-not-split4.dwo.bz2 \
340              testfile-splitdwarf4-not-split4.debug.bz2 \
341              run-readelf-ranges.sh \
342              run-readelf-aranges.sh run-readelf-line.sh testfilefoobarbaz.bz2 \
343              testfile-ppc64-min-instr.bz2 \
344              testfile-dwarf-45.source \
345              testfile-dwarf-4.bz2 testfile-dwarf-5.bz2 \
346              run-readelf-z.sh \
347              run-readelf-dwz-multi.sh libtestfile_multi_shared.so.bz2 \
348              testfile_multi.dwz.bz2 testfile_multi_main.bz2 \
349              testfile-dwzstr.bz2 testfile-dwzstr.multi.bz2 \
350              run-readelf-addr.sh run-readelf-str.sh \
351              run-readelf-multi-noline.sh testfile_multi_noline.bz2 \
352              run-readelf-types.sh \
353              run-readelf-frames.sh \
354              run-readelf-n.sh \
355              testfile-gnu-property-note.bz2 testfile-gnu-property-note.o.bz2 \
356              testfile_gnu_props.32le.o.bz2 \
357              testfile_gnu_props.64le.o.bz2 \
358              testfile_gnu_props.32be.o.bz2 \
359              testfile_gnu_props.64be.o.bz2 \
360              testfile-gnu-property-note-aarch64.bz2 \
361              run-retain.sh testfile-retain.o.bz2 \
362              run-allfcts-multi.sh \
363              test-offset-loop.bz2 test-offset-loop.alt.bz2 \
364              run-prelink-addr-test.sh \
365              testfile52-32.so.bz2 testfile52-32.so.debug.bz2 \
366              testfile52-32.prelink.so.bz2 testfile52-32.noshdrs.so.bz2 \
367              testfile52-64.so.bz2 testfile52-64.so.debug.bz2 \
368              testfile52-64.prelink.so.bz2 testfile52-64.noshdrs.so.bz2 \
369              testfile53-32.bz2 testfile53-32.debug.bz2 \
370              testfile53-32.prelink.bz2 testfile53-64.bz2 \
371              testfile53-64.debug.bz2 testfile53-64.prelink.bz2 \
372              testfile54-32.so.bz2 testfile54-32.so.debug.bz2 \
373              testfile54-32.prelink.so.bz2 testfile54-32.noshdrs.so.bz2 \
374              testfile54-64.so.bz2 testfile54-64.so.debug.bz2 \
375              testfile54-64.prelink.so.bz2 testfile54-64.noshdrs.so.bz2 \
376              testfile55-32.bz2 testfile55-32.debug.bz2 \
377              testfile55-32.prelink.bz2 testfile55-64.bz2 \
378              testfile55-64.debug.bz2 testfile55-64.prelink.bz2 \
379              testfile56.bz2 testfile57.bz2 testfile58.bz2 \
380              run-typeiter.sh testfile59.bz2 \
381              run-readelf-d.sh testlib_dynseg.so.bz2 \
382              testfile-s390x-hash-both.bz2 \
383              run-readelf-gdb_index.sh testfilegdbindex5.bz2 \
384              testfilegdbindex7.bz2 \
385              run-readelf-s.sh testfilebazdbg.bz2 testfilebazdyn.bz2 \
386              testfilebazmin.bz2 testfilebazdbg.debug.bz2 testfilebazmdb.bz2 \
387              testfilebaztab.bz2 testfilebasmin.bz2 testfilebaxmin.bz2 \
388              testfilebazdbg_pl.bz2 testfilebazmin_pl.bz2 \
389              testfilebazdbg_plr.bz2 testfilebazmin_plr.bz2 \
390              testfilebazdbgppc64.bz2 testfilebazdbgppc64.debug.bz2 \
391              testfilebazdbgppc64_pl.bz2 testfilebazdbgppc64_plr.bz2 \
392              testfilebazdynppc64.bz2 testfilebazmdbppc64.bz2 \
393              testfilebazminppc64.bz2 testfilebazminppc64_pl.bz2 \
394              testfilebazminppc64_plr.bz2 testfilebaztabppc64.bz2 \
395              run-readelf-variant.sh testfile-ada-variant.bz2 \
396              run-readelf-fat-lto.sh testfile-dwarf5-fat-lto.o.bz2 \
397              run-dwflsyms.sh \
398              run-unstrip-n.sh testcore-rtlib.bz2 testcore-rtlib-ppc.bz2 \
399              run-low_high_pc.sh testfile_low_high_pc.bz2 \
400              run-macro-test.sh testfile-macinfo.bz2 testfile-macros.bz2 \
401              run-elf_cntl_gelf_getshdr.sh \
402              run-test-archive64.sh testarchive64.a.bz2 \
403              testfile61.bz2 \
404              run-readelf-vmcoreinfo.sh testfile62.bz2 \
405              run-readelf-mixed-corenote.sh testfile63.bz2 testfile64.bz2 \
406              testfile65.bz2 testfile67.bz2 testfile68.bz2 \
407              testfile69.core.bz2 testfile69.so.bz2 \
408              testfile70.core.bz2 testfile70.exec.bz2 testfile71.bz2 \
409              run-dwfllines.sh run-dwfl-report-elf-align.sh \
410              testfile-dwfl-report-elf-align-shlib.so.bz2 \
411              testfilenolines.bz2 test-core-lib.so.bz2 test-core.core.bz2 \
412              test-core.exec.bz2 run-addr2line-test.sh \
413              run-addr2line-i-test.sh testfile-inlines.bz2 \
414              run-addr2line-i-lex-test.sh testfile-lex-inlines.bz2 \
415              run-addr2line-i-demangle-test.sh run-addr2line-alt-debugpath.sh \
416              testfileppc32.bz2 testfileppc64.bz2 \
417              testfiles390.bz2 testfiles390x.bz2 \
418              testfilearm.bz2 testfileaarch64.bz2 \
419              run-varlocs.sh run-exprlocs.sh run-varlocs-vars.sh \
420              testfile-vars-clang-dwarf4-32.o.bz2 \
421              testfile-vars-clang-dwarf4-64.o.bz2 \
422              testfile-vars-clang-dwarf5-32.o.bz2 \
423              testfile-vars-clang-dwarf5-64.o.bz2 \
424              testfile-vars-gcc-dwarf4-32.o.bz2 \
425              testfile-vars-gcc-dwarf4-64.o.bz2 \
426              testfile-vars-gcc-dwarf5-32.o.bz2 \
427              testfile-vars-gcc-dwarf5-64.o.bz2 \
428              testfile-stridex.bz2 \
429              testfile_const_type.c testfile_const_type.bz2 \
430              testfile_implicit_pointer.c testfile_implicit_pointer.bz2 \
431              testfile_parameter_ref.c testfile_parameter_ref.bz2 \
432              testfile_entry_value.c testfile_entry_value.bz2 \
433              testfile_implicit_value.c testfile_implicit_value.bz2 \
434              testfile_aarch64_core.bz2 testfile_i686_core.bz2 \
435              addrx_constx-4.dwo.bz2 addrx_constx-5.dwo.bz2 \
436              testfile-addrx_constx-4.bz2 testfile-addrx_constx-5.bz2 \
437              run-funcretval.sh funcretval_test.c funcretval_test_aarch64.bz2 \
438              run-backtrace-data.sh run-backtrace-dwarf.sh cleanup-13.c \
439              run-backtrace-native.sh run-backtrace-native-biarch.sh \
440              run-backtrace-native-core.sh run-backtrace-native-core-biarch.sh \
441              run-backtrace-core-x86_64.sh run-backtrace-core-i386.sh \
442              run-backtrace-fp-core-x86_64.sh \
443              run-backtrace-core-x32.sh \
444              run-backtrace-fp-core-aarch64.sh \
445              backtrace.aarch64.fp.core.bz2 backtrace.aarch64.fp.exec.bz2 \
446              backtrace-subr.sh backtrace.i386.core.bz2 backtrace.i386.exec.bz2 \
447              run-backtrace-fp-core-i386.sh \
448              backtrace.i386.fp.core.bz2 backtrace.i386.fp.exec.bz2 \
449              run-backtrace-fp-core-ppc64le.sh \
450              backtrace.ppc64le.fp.core.bz2 backtrace.ppc64le.fp.exec.bz2 \
451              backtrace.x86_64.core.bz2 backtrace.x86_64.exec.bz2 \
452              backtrace.x86_64.fp.core.bz2 backtrace.x86_64.fp.exec.bz2 \
453              backtrace.ppc.core.bz2 backtrace.ppc.exec.bz2 \
454              run-backtrace-core-ppc.sh testfile66.bz2 testfile66.core.bz2 \
455              backtrace.s390x.core.bz2 backtrace.s390x.exec.bz2 \
456              backtrace.s390.core.bz2 backtrace.s390.exec.bz2 \
457              run-backtrace-core-s390x.sh run-backtrace-core-s390.sh \
458              run-backtrace-core-aarch64.sh \
459              backtrace.aarch64.core.bz2 backtrace.aarch64.exec.bz2 \
460              run-backtrace-core-sparc.sh \
461              backtrace.sparc.core.bz2 backtrace.sparc.exec.bz2 \
462              run-backtrace-demangle.sh testfile-backtrace-demangle.bz2 \
463              testfile-backtrace-demangle.cc \
464              testfile-backtrace-demangle.core.bz2 \
465              run-stack-d-test.sh run-stack-i-test.sh \
466              run-stack-demangled-test.sh \
467              testfiledwarfinlines.bz2 testfiledwarfinlines.core.bz2 \
468              run-readelf-zdebug.sh testfile-debug.bz2 testfile-zdebug.bz2 \
469              run-readelf-zdebug-rel.sh testfile-debug-rel.o.bz2 \
470              testfile-debug-rel-g.o.bz2 testfile-debug-rel-z.o.bz2 \
471              run-readelf-zx.sh run-readelf-zp.sh \
472              run-deleted.sh run-linkmap-cut.sh linkmap-cut-lib.so.bz2 \
473              linkmap-cut.bz2 linkmap-cut.core.bz2 \
474              run-aggregate-size.sh testfile-sizes1.o.bz2 testfile-sizes2.o.bz2 \
475              testfile-sizes3.o.bz2 testfile-sizes4.o.bz2 testfile-sizes4.s \
476              run-peel-type.sh \
477              run-readelf-A.sh testfileppc32attrs.o.bz2 \
478              testfilesparc64attrs.o.bz2 testfileppc64attrs.o.bz2 \
479              testfile-debug-types.bz2 \
480              run-getsrc-die.sh run-strptr.sh \
481              testfile-x32-core.bz2 testfile-x32.bz2 \
482              backtrace.x32.core.bz2 backtrace.x32.exec.bz2 \
483              testfile-x32-s.bz2 testfile-x32-d.bz2 testfile-x32-debug.bz2 \
484              run-lfs-symbols.sh lfs-symbols testfile-nolfs.bz2 \
485              testfile-zgnu32.bz2 testfile-zgnu64.bz2 \
486              testfile-zgnu32be.bz2 testfile-zgnu64be.bz2 \
487              run-dwelfgnucompressed.sh \
488              testfile-zgabi32.bz2 testfile-zgabi64.bz2 \
489              testfile-zgabi32be.bz2 testfile-zgabi64be.bz2 \
490              run-elfgetchdr.sh run-elfgetzdata.sh run-elfputzdata.sh \
491              run-zstrptr.sh run-compress-test.sh \
492              run-disasm-bpf.sh \
493              testfile-bpf-dis1.expect.bz2 testfile-bpf-dis1.o.bz2 \
494              run-reloc-bpf.sh \
495              testfile-bpf-reloc.expect.bz2 testfile-bpf-reloc.o.bz2 \
496              testfile-m68k-core.bz2 testfile-m68k.bz2 testfile-m68k-s.bz2 \
497              run-dwarf-die-addr-die.sh \
498              run-get-units-invalid.sh run-get-units-split.sh \
499              testfile-hello4.dwo.bz2 testfile-hello5.dwo.bz2 \
500              testfile-splitdwarf-4.bz2 testfile-splitdwarf-5.bz2 \
501              testfile-world5.dwo.bz2 testfile-world4.dwo.bz2 \
502              run-attr-integrate-skel.sh \
503              run-all-dwarf-ranges.sh testfilesplitranges4.debug.bz2 \
504              testfile-ranges-hello.dwo.bz2 testfile-ranges-world.dwo.bz2 \
505              run-unit-info.sh run-next-cfi.sh run-next-cfi-self.sh \
506              testfile-riscv64.bz2 testfile-riscv64-s.bz2 \
507              testfile-riscv64-core.bz2 \
508              run-reverse-sections.sh run-reverse-sections-self.sh \
509              run-copyadd-sections.sh run-copymany-sections.sh \
510              run-large-elf-file.sh \
511              run-typeiter-many.sh run-strip-test-many.sh \
512              testfile-debug-rel-ppc64-g.o.bz2 \
513              testfile-debug-rel-ppc64-z.o.bz2 \
514              testfile-debug-rel-ppc64.o.bz2 \
515              run-strip-version.sh testfile-version.bz2 \
516              run-xlate-note.sh \
517              run-readelf-discr.sh \
518              testfile-rng.debug.bz2 testfile-urng.debug.bz2 \
519              run-dwelf_elf_e_machine_string.sh \
520              run-elfclassify.sh run-elfclassify-self.sh \
521              run-disasm-riscv64.sh \
522              testfile-riscv64-dis1.o.bz2 testfile-riscv64-dis1.expect.bz2 \
523              run-debuginfod-extraction.sh \
524              run-debuginfod-federation-link.sh \
525              run-debuginfod-federation-metrics.sh \
526              run-debuginfod-artifact-running.sh \
527              run-debuginfod-federation-sqlite.sh \
528              run-debuginfod-x-forwarded-for.sh \
529              run-debuginfod-fd-prefetch-caches.sh \
530              run-debuginfod-regex.sh \
531              run-debuginfod-duplicate-urls.sh \
532              run-debuginfod-file.sh \
533              run-debuginfod-sizetime.sh \
534              run-debuginfod-dlopen.sh \
535              run-debuginfod-malformed.sh \
536              run-debuginfod-negative-cache.sh \
537              run-debuginfod-tmp-home.sh \
538              run-debuginfod-writable.sh \
539              run-debuginfod-no-urls.sh \
540              run-debuginfod-query-retry.sh \
541              run-debuginfod-archive-groom.sh \
542              run-debuginfod-archive-rename.sh \
543              run-debuginfod-archive-test.sh \
544              run-debuginfod-percent-escape.sh \
545              run-debuginfod-response-headers.sh \
546              run-debuginfod-extraction-passive.sh \
547              run-debuginfod-webapi-concurrency.sh \
548              debuginfod-rpms/fedora30/hello2-1.0-2.src.rpm \
549              debuginfod-rpms/fedora30/hello2-1.0-2.x86_64.rpm \
550              debuginfod-rpms/fedora30/hello2-debuginfo-1.0-2.x86_64.rpm \
551              debuginfod-rpms/fedora30/hello2-debugsource-1.0-2.x86_64.rpm \
552              debuginfod-rpms/fedora30/hello2-two-1.0-2.x86_64.rpm \
553              debuginfod-rpms/fedora30/hello2-two-debuginfo-1.0-2.x86_64.rpm \
554              debuginfod-rpms/fedora31/hello3-1.0-2.src.rpm \
555              debuginfod-rpms/fedora31/hello3-1.0-2.x86_64.rpm \
556              debuginfod-rpms/fedora31/hello3-debuginfo-1.0-2.x86_64.rpm \
557              debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm \
558              debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm \
559              debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm \
560              debuginfod-rpms/hello2.spec. \
561              debuginfod-rpms/rhel6/hello2-1.0-2.i686.rpm \
562              debuginfod-rpms/rhel6/hello2-1.0-2.src.rpm \
563              debuginfod-rpms/rhel6/hello2-debuginfo-1.0-2.i686.rpm \
564              debuginfod-rpms/rhel6/hello2-two-1.0-2.i686.rpm \
565              debuginfod-rpms/rhel7/hello2-1.0-2.src.rpm \
566              debuginfod-rpms/rhel7/hello2-1.0-2.x86_64.rpm \
567              debuginfod-rpms/rhel7/hello2-debuginfo-1.0-2.x86_64.rpm \
568              debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
569              debuginfod-rpms/rhel7/hello2-two-1.0-2.x86_64.rpm \
570              debuginfod-debs/hithere-dbgsym_1.0-1_amd64.ddeb \
571              debuginfod-debs/hithere_1.0-1.debian.tar.xz \
572              debuginfod-debs/hithere_1.0-1.dsc \
573              debuginfod-debs/hithere_1.0-1_amd64.deb \
574              debuginfod-debs/hithere_1.0.orig.tar.gz \
575              debuginfod-tars/hello-1-1-x86_64.pkg.tar.xz \
576              debuginfod-tars/hello-debug-1-1-x86_64.pkg.tar.bz2 \
577              debuginfod-tars/pacman-sources/PKGBUILD \
578              debuginfod-tars/pacman-sources/README.md \
579              debuginfod-tars/pacman-sources/hello.c \
580              run-pt_gnu_prop-tests.sh \
581              testfile_pt_gnu_prop.bz2 testfile_pt_gnu_prop32.bz2 \
582              run-getphdrnum.sh testfile-phdrs.elf.bz2 \
583              run-test-includes.sh run-low_high_pc-dw-form-indirect.sh \
584              run-readelf-dw-form-indirect.sh testfile-dw-form-indirect.bz2 \
585              run-nvidia-extended-linemap-libdw.sh run-nvidia-extended-linemap-readelf.sh \
586              testfile_nvidia_linemap.bz2 \
587              testfile-largealign.o.bz2 run-strip-largealign.sh
588
589
590 if USE_VALGRIND
591 valgrind_cmd=valgrind -q --leak-check=full --error-exitcode=1
592 endif
593
594
595 installed_TESTS_ENVIRONMENT = libdir='$(DESTDIR)$(libdir)'; \
596                               bindir='$(DESTDIR)$(bindir)'; \
597                               LC_ALL=C; LANG=C; \
598                               VALGRIND_CMD='$(valgrind_cmd)'; \
599                               abs_srcdir='$(abs_srcdir)'; \
600                               abs_builddir='$(abs_builddir)'; \
601                               abs_top_builddir='$(abs_top_builddir)'; \
602                               export abs_srcdir; export abs_builddir; \
603                               export abs_top_builddir; \
604                               export libdir; export bindir; \
605                               export LC_ALL; export LANG; export VALGRIND_CMD; \
606                               unset DEBUGINFOD_URLS; \
607                               NM='$(NM)'; export NM; \
608                               CC='$(CC)'; export CC;
609 installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
610                          installed $(tests_rpath) \
611                          '$(program_transform_name)'
612 TESTS_ENVIRONMENT = LC_ALL=C; LANG=C; VALGRIND_CMD='$(valgrind_cmd)'; \
613                     abs_srcdir='$(abs_srcdir)'; \
614                     abs_builddir='$(abs_builddir)'; \
615                     abs_top_builddir='$(abs_top_builddir)'; \
616                     export abs_srcdir; export abs_builddir; \
617                     export abs_top_builddir; \
618                     export LC_ALL; export LANG; export VALGRIND_CMD; \
619                     unset DEBUGINFOD_URLS; \
620                     NM='$(NM)'; export NM; \
621                     CC='$(CC)'; export CC;
622 LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
623                $(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
624
625 installcheck-local:
626         $(MAKE) $(AM_MAKEFLAGS) \
627                 TESTS_ENVIRONMENT="$(installed_TESTS_ENVIRONMENT)" \
628                 LOG_COMPILER="$(installed_LOG_COMPILER)" check-TESTS
629
630 if BUILD_STATIC
631 libdw = ../libdw/libdw.a -lz $(zip_LIBS) $(libelf) $(libebl) -ldl -lpthread
632 libelf = ../libelf/libelf.a -lz
633 libasm = ../libasm/libasm.a
634 else
635 libdw = ../libdw/libdw.so
636 libelf = ../libelf/libelf.so
637 libasm = ../libasm/libasm.so
638 endif
639 libebl = ../libebl/libebl.a ../backends/libebl_backends.a ../libcpu/libcpu.a
640 libeu = ../lib/libeu.a
641
642 arextract_LDADD = $(libelf)
643 arsymtest_LDADD = $(libelf)
644 newfile_LDADD = $(libelf)
645 saridx_LDADD = $(libelf)
646 scnnames_LDADD = $(libelf)
647 sectiondump_LDADD = $(libelf)
648 showptable_LDADD = $(libelf)
649 hash_LDADD = $(libelf)
650 test_nlist_CFLAGS =-g -O0 $(EXTRA_NLIST_CFLAGS)
651 test_nlist_LDADD = $(libelf)
652 msg_tst_LDADD = $(libelf)
653 newscn_LDADD = $(libelf)
654 early_offscn_LDADD = $(libelf)
655 ecp_LDADD = $(libelf)
656 update1_LDADD = $(libelf)
657 update2_LDADD = $(libelf)
658 update3_LDADD = $(libdw) $(libelf)
659 update4_LDADD = $(libdw) $(libelf)
660 show_die_info_LDADD = $(libdw) $(libelf)
661 get_pubnames_LDADD = $(libdw) $(libelf)
662 show_abbrev_LDADD = $(libdw) $(libelf)
663 get_lines_LDADD = $(libdw) $(libelf)
664 next_lines_LDADD = $(libdw) $(libelf)
665 get_files_LDADD = $(libdw) $(libelf)
666 next_files_LDADD = $(libdw) $(libelf)
667 get_aranges_LDADD = $(libdw) $(libelf)
668 allfcts_LDADD = $(libdw) $(libelf)
669 line2addr_LDADD = $(libdw) $(argp_LDADD)
670 addrscopes_LDADD = $(libdw) $(argp_LDADD)
671 funcscopes_LDADD = $(libdw) $(argp_LDADD)
672 funcretval_LDADD = $(libdw) $(argp_LDADD)
673 allregs_LDADD = $(libdw) $(argp_LDADD)
674 find_prologues_LDADD = $(libdw) $(argp_LDADD)
675 #show_ciefde_LDADD = ../libdwarf/libdwarf.so $(libelf)
676 asm_tst1_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
677 asm_tst2_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
678 asm_tst3_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
679 asm_tst4_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
680 asm_tst5_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
681 asm_tst6_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
682 asm_tst7_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
683 asm_tst8_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
684 asm_tst9_LDADD = $(libasm) $(libebl) $(libelf) $(libdw)
685 dwflmodtest_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
686 rdwrmmap_LDADD = $(libelf)
687 dwfl_bug_addr_overflow_LDADD = $(libdw) $(libebl) $(libelf)
688 arls_LDADD = $(libelf)
689 dwfl_bug_fd_leak_LDADD = $(libdw) $(libebl) $(libelf)
690 dwfl_bug_report_LDADD = $(libdw) $(libebl) $(libelf)
691 dwfl_bug_getmodules_LDADD = $(libdw) $(libebl) $(libelf)
692 dwfl_addr_sect_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
693 dwarf_getmacros_LDADD = $(libdw)
694 dwarf_ranges_LDADD = $(libdw)
695 dwarf_getstring_LDADD = $(libdw)
696 addrcfi_LDADD = $(libdw) $(libebl) $(libelf) $(argp_LDADD)
697 dwarfcfi_LDADD = $(libdw) $(libelf)
698 test_flag_nobits_LDADD = $(libelf)
699 rerequest_tag_LDADD = $(libdw)
700 alldts_LDADD = $(libdw) $(libelf)
701 typeiter_LDADD = $(libdw) $(libelf)
702 typeiter2_LDADD = $(libdw) $(libelf)
703 low_high_pc_LDADD = $(libdw) $(libelf) $(argp_LDADD)
704 test_elf_cntl_gelf_getshdr_LDADD = $(libelf)
705 dwflsyms_LDADD = $(libdw) $(libelf) $(argp_LDADD)
706 dwfllines_LDADD = $(libdw) $(libelf) $(argp_LDADD)
707 dwfl_report_elf_align_LDADD = $(libdw)
708 dwfl_report_segment_contiguous_LDADD = $(libdw) $(libebl) $(libelf)
709 varlocs_LDADD = $(libdw) $(libelf) $(argp_LDADD)
710 backtrace_LDADD = $(libdw) $(libelf) $(argp_LDADD)
711 # backtrace-child-biarch also uses those *_CFLAGS and *_LDLAGS variables:
712 backtrace_child_CFLAGS = $(fpie_CFLAGS)
713 backtrace_child_LDFLAGS = -pie -pthread
714 backtrace_child_biarch_SOURCES = backtrace-child.c
715 backtrace_data_LDADD = $(libdw) $(libelf)
716 backtrace_dwarf_CFLAGS = -Wno-unused-parameter
717 backtrace_dwarf_LDADD = $(libdw) $(libelf)
718 debuglink_LDADD = $(libdw) $(libelf)
719 debugaltlink_LDADD = $(libdw) $(libelf)
720 buildid_LDADD = $(libdw) $(libelf)
721 deleted_LDADD = ./deleted-lib.so
722 deleted_lib_so_LDFLAGS = -shared
723 deleted_lib_so_CFLAGS = $(fpic_CFLAGS) -fasynchronous-unwind-tables
724 aggregate_size_LDADD = $(libdw) $(libelf) $(argp_LDADD)
725 peel_type_LDADD = $(libdw) $(libelf) $(argp_LDADD)
726 vdsosyms_LDADD = $(libdw) $(libelf)
727 getsrc_die_LDADD = $(libdw) $(libelf)
728 strptr_LDADD = $(libelf)
729 newdata_LDADD = $(libelf)
730 elfstrtab_LDADD = $(libelf)
731 dwfl_proc_attach_LDADD = $(libdw)
732 dwfl_proc_attach_LDFLAGS = -pthread -rdynamic $(AM_LDFLAGS)
733 elfshphehdr_LDADD =$(libelf)
734 elfstrmerge_LDADD = $(libdw) $(libelf)
735 dwelfgnucompressed_LDADD = $(libelf) $(libdw)
736 elfgetchdr_LDADD = $(libelf) $(libdw)
737 elfgetzdata_LDADD = $(libelf)
738 elfputzdata_LDADD = $(libelf)
739 zstrptr_LDADD = $(libelf)
740 emptyfile_LDADD = $(libelf)
741 vendorelf_LDADD = $(libelf)
742 fillfile_LDADD = $(libelf)
743 dwarf_default_lower_bound_LDADD = $(libdw)
744 dwarf_die_addr_die_LDADD = $(libdw)
745 get_units_invalid_LDADD = $(libdw)
746 get_units_split_LDADD = $(libdw)
747 attr_integrate_skel_LDADD = $(libdw)
748 all_dwarf_ranges_LDADD = $(libdw)
749 unit_info_LDADD = $(libdw)
750 next_cfi_LDADD = $(libelf) $(libdw)
751 elfcopy_LDADD = $(libelf)
752 addsections_LDADD = $(libelf)
753 debuginfod_build_id_find_LDADD = $(libelf) $(libdw)
754 xlate_notes_LDADD = $(libelf)
755 elfrdwrnop_LDADD = $(libelf)
756 dwelf_elf_e_machine_string_LDADD = $(libelf) $(libdw)
757 getphdrnum_LDADD = $(libelf) $(libdw)
758 leb128_LDADD = $(libelf) $(libdw)
759 read_unaligned_LDADD = $(libelf) $(libdw)
760 nvidia_extended_linemap_libdw_LDADD = $(libelf) $(libdw)
761
762 # We want to test the libelf header against the system elf.h header.
763 # Don't include any -I CPPFLAGS. Except when we install our own elf.h.
764 if !INSTALL_ELFH
765 system_elf_libelf_test_CPPFLAGS =
766 else
767 system_elf_libelf_test_CPPFLAGS = -I$(top_srcdir)/libelf
768 endif
769 system_elf_libelf_test_LDADD = $(libelf)
770
771 # A lock file used to make sure only one test dumps core at a time
772 CLEANFILES += core-dump-backtrace.lock
773
774 if GCOV
775 check: check-am coverage
776 .PHONY: coverage
777 coverage:
778         -$(srcdir)/coverage.sh
779 endif