From 52b999ab4e861526122151c74770f8f0d2b147fd Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 31 Mar 2018 11:36:49 +0300 Subject: [PATCH 1/2] Don't build or install test libraries with make and make install. Using make check builds but does not install them. --- Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 09edecc1..d87dcd35 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,7 +30,7 @@ man1_MANS = noinst_bin_PROGRAMS = noinst_bindir = -noinst_lib_LTLIBRARIES = +check_LTLIBRARIES = noinst_libdir = ##### ChangeLog: @@ -220,7 +220,7 @@ src_espeak_ng_SOURCES = src/espeak-ng.c # Test version of libespeak-ng.so with access to the internal APIs, so they can # be accessed in the test code. This version should not be installed, as the # internal APIs are not guaranteed to be stable between releases. -lib_LTLIBRARIES += src/libespeak-ng-test.la +check_LTLIBRARIES += src/libespeak-ng-test.la src_libespeak_ng_test_la_LDFLAGS = $(src_libespeak_ng_la_LDFLAGS) src_libespeak_ng_test_la_CFLAGS = \ @@ -264,7 +264,7 @@ check: tests/encoding.check \ if !HAVE_LIBFUZZER # libfuzzrunner is a stub implementation of libFuzzer that calls the # LLVMFuzzerTestOneInput with the files passed to the fuzzer program. -lib_LTLIBRARIES += tests/libfuzzrunner.la +check_LTLIBRARIES += tests/libfuzzrunner.la tests_libfuzzrunner_la_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} tests_libfuzzrunner_la_SOURCES = tests/fuzzrunner.c endif From 8ac2a29199b6d2eab6071d0755cb96bb7b1d5f8a Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sat, 31 Mar 2018 11:49:18 +0300 Subject: [PATCH 2/2] Don't build or install test programs with make and make install. Using make check builds but does not install them. --- Makefile.am | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index d87dcd35..6f20a259 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,11 +27,8 @@ bin_PROGRAMS = lib_LTLIBRARIES = man1_MANS = -noinst_bin_PROGRAMS = -noinst_bindir = - +check_PROGRAMS = check_LTLIBRARIES = -noinst_libdir = ##### ChangeLog: @@ -228,18 +225,18 @@ src_libespeak_ng_test_la_CFLAGS = \ ${PCAUDIOLIB_CFLAGS} ${AM_CFLAGS} src_libespeak_ng_test_la_SOURCES = $(src_libespeak_ng_la_SOURCES) -noinst_bin_PROGRAMS += tests/encoding.test +check_PROGRAMS += tests/encoding.test tests_encoding_test_LDADD = src/libespeak-ng.la tests_encoding_test_SOURCES = tests/encoding.c -noinst_bin_PROGRAMS += tests/readclause.test +check_PROGRAMS += tests/readclause.test tests_readclause_test_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} tests_readclause_test_LDADD = src/libespeak-ng-test.la tests_readclause_test_SOURCES = tests/readclause.c -noinst_bin_PROGRAMS += tests/api.test +check_PROGRAMS += tests/api.test tests_api_test_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} tests_api_test_LDADD = src/libespeak-ng-test.la @@ -269,7 +266,7 @@ tests_libfuzzrunner_la_CFLAGS = -Isrc/libespeak-ng ${AM_CFLAGS} tests_libfuzzrunner_la_SOURCES = tests/fuzzrunner.c endif -noinst_bin_PROGRAMS += tests/ssml-fuzzer.test +check_PROGRAMS += tests/ssml-fuzzer.test tests_ssml_fuzzer_test_CFLAGS = ${AM_CFLAGS} tests_ssml_fuzzer_test_SOURCES = tests/ssml-fuzzer.c tests_ssml_fuzzer_test_LDADD = src/libespeak-ng.la