X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2FMakefile.am;h=65628368227066222b7677e76004c9db7d293d8b;hp=2f0625d163116e51b71c1e0b6d11d26f7827a930;hb=059262751021d17ffa6d7f474cf25df0f297d23e;hpb=b53c175d61e9cac8e5a95abee9d6c05032d284b5 diff --git a/test/Makefile.am b/test/Makefile.am index 2f0625d..6562836 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -10,26 +10,17 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -AM_CPPFLAGS = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/lib \ - -I$(includedir) \ - $(DEFAULT_CPPFLAGS) - -AM_CFLAGS = \ - $(DEFAULT_CFLAGS) -common_libs = \ - $(top_builddir)/lib/libpbcore.la \ - $(top_builddir)/discover/libparser.la +if ENABLE_TEST_VALGRIND +LOG_COMPILER = valgrind +AM_LOG_FLAGS = --leak-check=full --error-exitcode=1 +export LOG_COMPILER AM_LOG_FLAGS +endif -noinst_SCRIPTS = parser-test.sh hotplug-device.sh +SUBDIRS = lib parser urls -noinst_PROGRAMS = parser-test +noinst_SCRIPTS = hotplug-device.sh -parser_test_SOURCES = parser-test.c -parser_test_LDADD = $(common_libs) +EXTRA_DIST = $(noinst_SCRIPTS) MAINTAINERCLEANFILES = Makefile.in