X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2FMakefile.am;h=427041b4af88b66ec6dfcacad24f330b72d8620d;hp=21971a6c396db9769079873e9db83a301ce947df;hb=9f191cc3c194ed51534c22e2dae15b2c08c8abc2;hpb=bf40f5fbd759241d1505c985fa02441cd6febd64;ds=inline diff --git a/test/Makefile.am b/test/Makefile.am index 21971a6..427041b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -11,11 +11,14 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +if ENABLE_TEST_VALGRIND +LOG_COMPILER = valgrind +AM_LOG_FLAGS = --leak-check=full --error-exitcode=1 +export LOG_COMPILER AM_LOG_FLAGS +endif -SUBDIRS = parser urls +noinst_SCRIPTS = test/hotplug-device.sh +EXTRA_DIST += $(noinst_SCRIPTS) -noinst_SCRIPTS = hotplug-device.sh - -EXTRA_DIST = $(noinst_SCRIPTS) - -MAINTAINERCLEANFILES = Makefile.in +$(check_PROGRAMS): AM_CFLAGS = -O0 -g -Wall -Wextra -Werror +$(check_PROGRAMS): AM_CPPFLAGS = -DDEBUG -I$(top_srcdir)/lib