]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Add RUN_TEST make variable
authorGreg Hudson <ghudson@mit.edu>
Sun, 4 Oct 2015 15:09:28 +0000 (11:09 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 23 Oct 2015 15:36:22 +0000 (11:36 -0400)
Add a pre.in variable to simplify running C test programs from
Makefile rules.

ticket: 8266

src/config/pre.in

index 401d1c612bfffeb39b4f45657f2de4b678083b4c..b0d9015a8ce24e07f2f930aa92e53c703e9b8711 100644 (file)
@@ -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@