@@ -86,13 +86,19 @@ libbacktrace_la_DEPENDENCIES = $(libbacktrace_la_LIBADD)
86
86
87
87
# Testsuite.
88
88
89
- # Add a test to this variable if you want it to be built.
89
+ # Add a test to this variable if you want it to be built as a program,
90
+ # with SOURCES, etc.
90
91
check_PROGRAMS =
91
92
92
93
# Add a test to this variable if you want it to be run.
93
94
TESTS =
94
95
95
- # Add a test to this variable if you want it to be built and run.
96
+ # Add a test to this variable if you want it to be built as a Makefile
97
+ # target and run.
98
+ MAKETESTS =
99
+
100
+ # Add a test to this variable if you want it to be built as a program,
101
+ # with SOURCES, etc., and run.
96
102
BUILDTESTS =
97
103
98
104
# Add a file to this variable if you want it to be built for testing.
@@ -251,7 +257,7 @@ b2test_LDFLAGS = -Wl,--build-id
251
257
b2test_LDADD = libbacktrace_elf_for_test.la
252
258
253
259
check_PROGRAMS += b2test
254
- TESTS += b2test_buildid
260
+ MAKETESTS += b2test_buildid
255
261
256
262
if HAVE_DWZ
257
263
@@ -261,7 +267,7 @@ b3test_LDFLAGS = -Wl,--build-id
261
267
b3test_LDADD = libbacktrace_elf_for_test.la
262
268
263
269
check_PROGRAMS += b3test
264
- TESTS += b3test_dwz_buildid
270
+ MAKETESTS += b3test_dwz_buildid
265
271
266
272
endif HAVE_DWZ
267
273
@@ -312,11 +318,11 @@ if HAVE_DWZ
312
318
cp $< $@ ; \
313
319
fi
314
320
315
- TESTS += btest_dwz
321
+ MAKETESTS += btest_dwz
316
322
317
323
if HAVE_OBJCOPY_DEBUGLINK
318
324
319
- TESTS += btest_dwz_gnudebuglink
325
+ MAKETESTS += btest_dwz_gnudebuglink
320
326
321
327
endif HAVE_OBJCOPY_DEBUGLINK
322
328
@@ -417,7 +423,7 @@ endif HAVE_PTHREAD
417
423
418
424
if HAVE_OBJCOPY_DEBUGLINK
419
425
420
- TESTS += btest_gnudebuglink
426
+ MAKETESTS += btest_gnudebuglink
421
427
422
428
% _gnudebuglink : %
423
429
$(OBJCOPY ) --only-keep-debug $< $@ .debug
@@ -495,7 +501,7 @@ endif USE_DSYMUTIL
495
501
496
502
if HAVE_MINIDEBUG
497
503
498
- TESTS += mtest_minidebug
504
+ MAKETESTS += mtest_minidebug
499
505
500
506
% _minidebug : %
501
507
$(NM ) -D $< -P --defined-only | $(AWK ) ' { print $$1 }' | sort > $< .dsyms
@@ -537,10 +543,11 @@ endif HAVE_ELF
537
543
538
544
check_PROGRAMS += $(BUILDTESTS )
539
545
540
- TESTS += $(BUILDTESTS )
546
+ TESTS += $(MAKETESTS ) $( BUILDTESTS )
541
547
542
548
CLEANFILES = \
543
- $(TESTS ) *.debug elf_for_test.c edtest2_build.c gen_edtest2_build \
549
+ $(MAKETESTS ) $(BUILDTESTS ) *.debug elf_for_test.c edtest2_build.c \
550
+ gen_edtest2_build \
544
551
*.dsyms *.fsyms *.keepsyms *.dbg *.mdbg *.mdbg.xz *.strip
545
552
546
553
clean-local :
0 commit comments