$(CC_LINK) -o pty_paranoia pty_paranoia.o $(PTY_LIB) $(COM_ERR_LIB) $(LIBS)
check-paranoia: pty_paranoia
- $(KRB5_RUN_ENV) ./pty_paranoia
+ $(KRB5_RUN_ENV) $(VALGRIND) ./pty_paranoia
install-unix:: install-libs
# platform-dependent temporary files that should get cleaned up
EXTRA_FILES=@EXTRA_FILES@
-# The "env" at the end is because sometimes we add local environment
-# variable settings with "@RUN_ENV@ KRB5_CONFIG=foo ..."
-MAYBE_VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes env
+VALGRIND= # valgrind --tool=memcheck --log-file=$(BUILDTOP)/valgrind.out --trace-children=yes -v --leak-check=yes
#
AUTOCONF_HEADER=$(SRCTOP)/include/autoconf.h.in
RPATH_FLAG='-Wl,-rpath -Wl,'
CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(LDFLAGS)'
CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(LDFLAGS)'
- RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH; $(MAYBE_VALGRIND)'
+ RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH; '
## old version:
# Linux libc does weird stuff at shlib link time, must be
check-unix:: rtest
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; export KRB5_CONFIG ;\
- $(RUN_SETUP) $(srcdir)/rtscript > test.out
+ $(RUN_SETUP) $(VALGRIND) $(srcdir)/rtscript > test.out
cmp test.out $(srcdir)/rtest.good
$(RM) test.out
clean-unix:: clean-liblinks clean-libs clean-libobjs
check-unix:: t_nfold t_encrypt t_prf t_prng t_hmac t_pkcs5
- $(RUN_SETUP) ./t_nfold
- $(RUN_SETUP) ./t_encrypt
- $(RUN_SETUP) ./t_prng <$(srcdir)/t_prng.seed >t_prng.output && \
+ $(RUN_SETUP) $(VALGRIND) ./t_nfold
+ $(RUN_SETUP) $(VALGRIND) ./t_encrypt
+ $(RUN_SETUP) $(VALGRIND) ./t_prng <$(srcdir)/t_prng.seed >t_prng.output && \
diff t_prng.output $(srcdir)/t_prng.expected
- $(RUN_SETUP) ./t_hmac
+ $(RUN_SETUP) $(VALGRIND) ./t_hmac
-# $(RUN_SETUP) ./t_pkcs5
+# $(RUN_SETUP) $(VALGRIND) ./t_pkcs5
t_nfold$(EXEEXT): t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_DEPLIB)
$(CC_LINK) -o $@ t_nfold.$(OBJEXT) nfold.$(OBJEXT) $(SUPPORT_LIB)
check:: run-aes-test
run-aes-test: aes-test
- $(RUN_SETUP) ./aes-test -k > vk.txt
+ $(RUN_SETUP) $(VALGRIND) ./aes-test -k > vk.txt
cmp vk.txt $(srcdir)/expect-vk.txt
- $(RUN_SETUP) ./aes-test > vt.txt
+ $(RUN_SETUP) $(VALGRIND) ./aes-test > vt.txt
cmp vt.txt $(srcdir)/expect-vt.txt
clean-unix:: clean-libobjs
$(RM) t_crc.o t_crc
check-unix:: t_crc
- $(RUN_SETUP) ./t_crc
+ $(RUN_SETUP) $(VALGRIND) ./t_crc
t_crc: t_crc.o crc32.o $(SUPPORT_DEPLIB)
$(CC_LINK) -o $@ t_crc.o crc32.o $(SUPPORT_LIB)
$(CC_LINK) -o $@ $(TAFSS2KOBJS) -lcom_err $(SUPPORT_LIB)
check-unix:: verify destest t_afss2k
- $(RUN_SETUP) ./verify -z
- $(RUN_SETUP) ./verify -m
- $(RUN_SETUP) ./verify
- $(RUN_SETUP) ./destest < $(srcdir)/keytest.data
- $(RUN_SETUP) ./t_afss2k
+ $(RUN_SETUP) $(VALGRIND) ./verify -z
+ $(RUN_SETUP) $(VALGRIND) ./verify -m
+ $(RUN_SETUP) $(VALGRIND) ./verify
+ $(RUN_SETUP) $(VALGRIND) ./destest < $(srcdir)/keytest.data
+ $(RUN_SETUP) $(VALGRIND) ./t_afss2k
check-windows::
$(CC_LINK) -o t_cksum5 t_cksum5.o $(K5CRYPTO_LIB) $(COM_ERR_LIB) $(SUPPORT_LIB) $(LIBS)
check-unix:: t_cksum4 t_cksum5
- $(RUN_SETUP) $(C)t_cksum4 "this is a test"
- $(RUN_SETUP) $(C)t_cksum5 "this is a test"
+ $(RUN_SETUP) $(VALGRIND) $(C)t_cksum4 "this is a test"
+ $(RUN_SETUP) $(VALGRIND) $(C)t_cksum5 "this is a test"
clean-unix::
$(RM) t_cksum4 t_cksum4.o
link -out:$@ $**
check-unix:: t_mddriver
- $(RUN_SETUP) $(C)t_mddriver -x
+ $(RUN_SETUP) $(VALGRIND) $(C)t_mddriver -x
check-windows:: $(OUTPRE)t_mddriver.exe
$(OUTPRE)$(C)t_mddriver.exe -x
link -out:$@ $**
check-unix:: t_mddriver
- $(RUN_SETUP) $(C)t_mddriver -x
+ $(RUN_SETUP) $(VALGRIND) $(C)t_mddriver -x
check-windows:: $(OUTPRE)t_mddriver.exe
$(OUTPRE)$(C)t_mddriver.exe -x
link -out:$@ $**
check-unix:: t_shs t_shs3
- $(RUN_SETUP) $(C)t_shs -x
- $(RUN_SETUP) $(C)t_shs3
+ $(RUN_SETUP) $(VALGRIND) $(C)t_shs -x
+ $(RUN_SETUP) $(VALGRIND) $(C)t_shs3
check-windows:: $(OUTPRE)t_shs.exe $(OUTPRE)t_shs3.exe
$(OUTPRE)$(C)t_shs.exe -x
$(CC_LINK) -o $@ t_pcbc.o pcbc_encrypt.o key_sched.o $(KRB5_BASE_LIBS)
check-unix:: verify t_quad t_pcbc
- $(RUN_SETUP) ./verify -z
- $(RUN_SETUP) ./verify -m
- $(RUN_SETUP) ./verify
- $(RUN_SETUP) ./t_quad
- $(RUN_SETUP) ./t_pcbc
+ $(RUN_SETUP) $(VALGRIND) ./verify -z
+ $(RUN_SETUP) $(VALGRIND) ./verify -m
+ $(RUN_SETUP) $(VALGRIND) ./verify
+ $(RUN_SETUP) $(VALGRIND) ./t_quad
+ $(RUN_SETUP) $(VALGRIND) ./t_pcbc
check-windows::
check-unix:: t_cc
KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
- $(RUN_SETUP) ./t_cc
+ $(RUN_SETUP) $(VALGRIND) ./t_cc
clean-unix::
$(RM) t_cc t_cc.o
check-unix:: $(TEST_PROGS)
KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
- $(RUN_SETUP) ./t_kerb \
+ $(RUN_SETUP) $(VALGRIND) ./t_kerb \
parse_name tytso \
parse_name tytso@SHAZAAM \
parse_name tytso/root@VEGGIE.COM \
cmp test.out $(srcdir)/t_ref_kerb.out
$(RM) test.out
KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
- $(RUN_SETUP) ./t_ser
- $(RUN_SETUP) ./t_deltat
- $(RUN_SETUP) sh $(srcdir)/transit-tests
+ $(RUN_SETUP) $(VALGRIND) ./t_ser
+ $(RUN_SETUP) $(VALGRIND) ./t_deltat
+ $(RUN_SETUP) $(VALGRIND) sh $(srcdir)/transit-tests
clean::
$(RM) $(OUTPRE)t_walk_rtree$(EXEEXT) $(OUTPRE)t_walk_rtree.$(OBJEXT) \
check-unix:: $(TEST_PROGS)
KRB5_CONFIG=$(srcdir)/td_krb5.conf ; export KRB5_CONFIG ;\
- $(KRB5_RUN_ENV) ./t_std_conf -d -s NEW.DEFAULT.REALM -d \
+ $(KRB5_RUN_ENV) $(VALGRIND) ./t_std_conf -d -s NEW.DEFAULT.REALM -d \
-k IGGY.ORG -k DEFAULT_REALM.TST \
-D DEFAULT_REALM.TST -r bad.idea -r itar.bad.idea \
-r really.BAD.IDEA. -r clipper.bad.idea -r KeYEsCrOW.BaD.IDea \
cmp test.out $(srcdir)/ref_std_conf.out
$(RM) test.out
KRB5_CONFIG=$(srcdir)/td_krb5.conf ; export KRB5_CONFIG ;\
- $(KRB5_RUN_ENV) ./t_locate_kdc ATHENA.MIT.EDU
+ $(KRB5_RUN_ENV) $(VALGRIND) ./t_locate_kdc ATHENA.MIT.EDU
#
# Do some aname-to-lname testing.
echo '[realms]' >> ./t_an.conf
echo 'r = {' >> ./t_an.conf
# if test -r ../../../admin/aname/kdb5_anadd ; then \
-# $(KRB5_RUN_ENV) ../../../admin/aname/kdb5_anadd -a -n ./t_an p/i/i/i@r piii; \
+# $(KRB5_RUN_ENV) $(VALGRIND) ../../../admin/aname/kdb5_anadd -a -n ./t_an p/i/i/i@r piii; \
# ../../../admin/aname/kdb5_anadd -a -n ./t_an p/a/b/c@r pabc; \
# echo 'auth_to_local = DB:./t_an' >> ./t_an.conf; \
# fi
echo '}' >> ./t_an.conf
# if test -r ../../../admin/aname/kdb5_anadd ; then \
# KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
-# $(KRB5_RUN_ENV) ./t_an_to_ln p/i/i/i@r p/a/b/c@r; \
+# $(KRB5_RUN_ENV) $(VALGRIND) ./t_an_to_ln p/i/i/i@r p/a/b/c@r; \
# fi
KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
- $(KRB5_RUN_ENV) ./t_an_to_ln rul/helpme/e@r ru/123/le@r
+ $(KRB5_RUN_ENV) $(VALGRIND) ./t_an_to_ln rul/helpme/e@r ru/123/le@r
KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
- $(KRB5_RUN_ENV) ./t_an_to_ln fred/r@r barney/r@r
+ $(KRB5_RUN_ENV) $(VALGRIND) ./t_an_to_ln fred/r@r barney/r@r
$(RM) ./t_an.*
clean::
$(CC_LINK) -o $@ dbtest.o $(STRERROR_OBJ) $(DB_LIB)
check:: dbtest
- $(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(FCTSH) $(srcdir)/run.test
+ $(KRB5_RUN_ENV) srcdir=$(srcdir) TMPDIR=$(TMPDIR) $(VALGRIND) $(FCTSH) $(srcdir)/run.test
bttest.o: $(srcdir)/btree.tests/main.c
$(CC) $(ALL_CFLAGS) -c $(srcdir)/btree.tests/main.c -o $@
kdb_check: kdc.conf krb5.conf
$(RM) $(TEST_DB)*
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create
- $(RUN_SETUP) ../tests/create/kdb5_mkdums $(KTEST_OPTS)
- $(RUN_SETUP) ../tests/verify/kdb5_verify $(KTEST_OPTS)
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump -ov $(TEST_DB).ovdump
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create
+ $(RUN_SETUP) $(VALGRIND) ../tests/create/kdb5_mkdums $(KTEST_OPTS)
+ $(RUN_SETUP) $(VALGRIND) ../tests/verify/kdb5_verify $(KTEST_OPTS)
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump -ov $(TEST_DB).ovdump
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f
@echo "====> NOTE!"
@echo "The following 'create' command is needed due to a change"
@echo "in functionality caused by DAL integration. See ticket 3973."
@echo ====
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) load $(TEST_DB).dump
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) load -update -ov $(TEST_DB).ovdump
- $(RUN_SETUP) ../tests/verify/kdb5_verify $(KTEST_OPTS)
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump2
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump -ov $(TEST_DB).ovdump2
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) create
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) load $(TEST_DB).dump
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) load -update -ov $(TEST_DB).ovdump
+ $(RUN_SETUP) $(VALGRIND) ../tests/verify/kdb5_verify $(KTEST_OPTS)
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump $(TEST_DB).dump2
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) dump -ov $(TEST_DB).ovdump2
sort $(TEST_DB).dump > $(TEST_DB).sort
sort $(TEST_DB).dump2 > $(TEST_DB).sort2
sort $(TEST_DB).ovdump > $(TEST_DB).ovsort
sort $(TEST_DB).ovdump2 > $(TEST_DB).ovsort2
cmp $(TEST_DB).sort $(TEST_DB).sort2
cmp $(TEST_DB).ovsort $(TEST_DB).ovsort2
- $(RUN_SETUP) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f
+ $(RUN_SETUP) $(VALGRIND) ../kadmin/dbutil/kdb5_util $(KADMIN_OPTS) destroy -f
$(RM) $(TEST_DB)* stash_file
clean::
check:: krb5_decode_test krb5_encode_test
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; \
export KRB5_CONFIG ;\
- $(RUN_SETUP) ./krb5_decode_test
+ $(RUN_SETUP) $(VALGRIND) ./krb5_decode_test
$(RM) test.out
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; \
export KRB5_CONFIG ;\
- $(RUN_SETUP) ./krb5_encode_test > test.out
+ $(RUN_SETUP) $(VALGRIND) ./krb5_encode_test > test.out
cmp test.out $(srcdir)/reference_encode.out
KRB5_CONFIG=$(SRCTOP)/config-files/krb5.conf ; \
export KRB5_CONFIG ;\
- $(RUN_SETUP) ./krb5_encode_test -t > test.out
+ $(RUN_SETUP) $(VALGRIND) ./krb5_encode_test -t > test.out
cmp test.out $(srcdir)/trval_reference.out
$(RM) test.out
site.exp: runenv.vals Makefile
echo "set runvarlist [list `cat runenv.vals | tr '\n' ' '`]" | \
sed -e 's%=\.%='`pwd`'/.%g' > site.exp
+ echo "set VALGRIND {$(VALGRIND)}" >> site.exp
echo "set KRB5_DB_MODULE_DIR {$(KRB5_DB_MODULE_DIR)}" >> site.exp
# +++ Dependency line eater +++
all:: test_getpw
check:: test_getpw
- $(RUN_SETUP) ./test_getpw
+ $(RUN_SETUP) $(VALGRIND) ./test_getpw
test_getpw: $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_DEPLIB)
$(CC_LINK) $(ALL_CFLAGS) -o test_getpw $(OUTPRE)test_getpw.$(OBJEXT) $(SUPPORT_LIB)
$(CC_LINK) -o $@ fake-addrinfo-test.o $(SUPPORT_LIB) $(LIBS)
check:: resolve addrinfo-test
- $(RUN_SETUP) ./resolve
- $(RUN_SETUP) ./addrinfo-test -p telnet
- $(RUN_SETUP) ./fake-addrinfo-test -p telnet
+ $(RUN_SETUP) $(VALGRIND) ./resolve
+ $(RUN_SETUP) $(VALGRIND) ./addrinfo-test -p telnet
+ $(RUN_SETUP) $(VALGRIND) ./fake-addrinfo-test -p telnet
install::
RUN_SETUP = @KRB5_RUN_ENV@
-VALGRIND=valgrind
-VALGRINDFLAGS=--tool=memcheck --leak-check=yes --show-reachable=yes
+#VALGRIND=valgrind
+#VALGRINDFLAGS=--tool=memcheck --leak-check=yes --show-reachable=yes
SRCS=$(srcdir)/t_loader.c
all::
run-t_loader: t_loader
- $(RUN_SETUP) ./t_loader
-
-valgrind-t_loader: t_loader
- $(RUN_SETUP) $(VALGRIND) $(VALGRINDFLAGS) ./t_loader
+ $(RUN_SETUP) $(VALGRIND) ./t_loader
t_loader: t_loader.o
$(CC_LINK) -o t_loader t_loader.o $(DL_LIB)
N = 4
run-t_rcache: t_rcache
- $(RUN_SETUP) ./t_rcache -n $(N)
+ $(RUN_SETUP) $(VALGRIND) ./t_rcache -n $(N)
t_rcache: t_rcache.o $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o t_rcache t_rcache.o $(KRB5_BASE_LIBS) $(THREAD_LINKOPTS)
$(CC_LINK) -o syms syms.o
run-syms: syms
- $(RUN_SETUP) ./syms
+ $(RUN_SETUP) $(VALGRIND) ./syms
prof1: prof1.o $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o prof1 prof1.o $(KRB5_BASE_LIBS) $(THREAD_LINKOPTS)
# test_et doesn't have an interesting exit status, but it'll exercise
# some cases that t_com_err doesn't, so let's see if it crashes.
check-unix:: t_com_err test_et
- $(RUN_SETUP) ./test_et
- $(RUN_SETUP) ./t_com_err
+ $(RUN_SETUP) $(VALGRIND) ./test_et
+ $(RUN_SETUP) $(VALGRIND) ./t_com_err
check-windows:: $(OUTPRE)test_et$(EXEEXT)
set path=$(BUILDTOP)\lib\$(OUTPRE);%path%;
check-unix-tcl-ok: profile_tcl
cp $(srcdir)/test.ini test2.ini
- $(KRB5_RUN_ENV) ./profile_tcl $(srcdir)/prof_test1
+ $(KRB5_RUN_ENV) $(VALGRIND) ./profile_tcl $(srcdir)/prof_test1
check-windows:: $(OUTPRE)test_profile.exe $(OUTPRE)test_parse.exe
$(RM) $(OUTPRE)*.obj