From: Greg Hudson Date: Sun, 4 Oct 2015 15:09:28 +0000 (-0400) Subject: Add RUN_TEST make variable X-Git-Tag: krb5-1.15-beta1~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45c6e285be8042ffccdab13b5f78cd5ada8e7973;p=thirdparty%2Fkrb5.git Add RUN_TEST make variable Add a pre.in variable to simplify running C test programs from Makefile rules. ticket: 8266 --- diff --git a/src/config/pre.in b/src/config/pre.in index 401d1c612b..b0d9015a8c 100644 --- a/src/config/pre.in +++ b/src/config/pre.in @@ -413,6 +413,12 @@ APPUTILS_LIB = -lapputils RUN_SETUP=@KRB5_RUN_ENV@ RUN_VARS=@KRB5_RUN_VARS@ +# Appropriate command prefix for most C test programs: use libraries +# from the build tree, avoid referencing the installed krb5.conf and +# message catalog, and use valgrind when asked. +RUN_TEST=$(RUN_SETUP) KRB5_CONFIG=$(top_srcdir)/config-files/krb5.conf \ + LC_ALL=C $(VALGRIND) + # # variables for --with-tcl= TCL_LIBS = @TCL_LIBS@