diff options
author | Damien Miller <djm@mindrot.org> | 2014-05-15 18:01:01 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-05-15 18:01:01 +1000 |
commit | e7429f2be8643e1100380a8a7389d85cc286c8fe (patch) | |
tree | 1d4b68573fb31a573907aef5cb9dcab57b2db333 /Makefile.in | |
parent | def1de086707b0e6b046fe7e115c60aca0227a99 (diff) |
- (djm) [regress/Makefile Makefile.in]
[regress/unittests/sshbuf/test_sshbuf.c
[regress/unittests/sshbuf/test_sshbuf_fixed.c]
[regress/unittests/sshbuf/test_sshbuf_fuzz.c]
[regress/unittests/sshbuf/test_sshbuf_getput_basic.c]
[regress/unittests/sshbuf/test_sshbuf_getput_crypto.c]
[regress/unittests/sshbuf/test_sshbuf_getput_fuzz.c]
[regress/unittests/sshbuf/test_sshbuf_misc.c]
[regress/unittests/sshbuf/tests.c]
[regress/unittests/test_helper/fuzz.c]
[regress/unittests/test_helper/test_helper.c]
Hook new unit tests into the build and "make tests"
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 55 |
1 files changed, 48 insertions, 7 deletions
diff --git a/Makefile.in b/Makefile.in index 53f0f1f72..16fb9ee8c 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: Makefile.in,v 1.357 2014/05/15 04:58:08 djm Exp $ | 1 | # $Id: Makefile.in,v 1.358 2014/05/15 08:01:01 djm Exp $ |
2 | 2 | ||
3 | # uncomment if you run a non bourne compatable shell. Ie. csh | 3 | # uncomment if you run a non bourne compatable shell. Ie. csh |
4 | #SHELL = @SH@ | 4 | #SHELL = @SH@ |
@@ -143,7 +143,7 @@ $(SSHOBJS): Makefile.in config.h | |||
143 | $(SSHDOBJS): Makefile.in config.h | 143 | $(SSHDOBJS): Makefile.in config.h |
144 | 144 | ||
145 | .c.o: | 145 | .c.o: |
146 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< | 146 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ |
147 | 147 | ||
148 | LIBCOMPAT=openbsd-compat/libopenbsd-compat.a | 148 | LIBCOMPAT=openbsd-compat/libopenbsd-compat.a |
149 | $(LIBCOMPAT): always | 149 | $(LIBCOMPAT): always |
@@ -222,6 +222,10 @@ umac128.o: umac.c | |||
222 | clean: regressclean | 222 | clean: regressclean |
223 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log | 223 | rm -f *.o *.a $(TARGETS) logintest config.cache config.log |
224 | rm -f *.out core survey | 224 | rm -f *.out core survey |
225 | rm -f regress/unittests/test_helper/*.a | ||
226 | rm -f regress/unittests/test_helper/*.o | ||
227 | rm -f regress/unittests/sshbuf/*.o | ||
228 | rm -f regress/unittests/sshbuf/test_sshbuf | ||
225 | (cd openbsd-compat && $(MAKE) clean) | 229 | (cd openbsd-compat && $(MAKE) clean) |
226 | 230 | ||
227 | distclean: regressclean | 231 | distclean: regressclean |
@@ -230,6 +234,10 @@ distclean: regressclean | |||
230 | rm -f Makefile buildpkg.sh config.h config.status | 234 | rm -f Makefile buildpkg.sh config.h config.status |
231 | rm -f survey.sh openbsd-compat/regress/Makefile *~ | 235 | rm -f survey.sh openbsd-compat/regress/Makefile *~ |
232 | rm -rf autom4te.cache | 236 | rm -rf autom4te.cache |
237 | rm -f regress/unittests/test_helper/*.a | ||
238 | rm -f regress/unittests/test_helper/*.o | ||
239 | rm -f regress/unittests/sshbuf/*.o | ||
240 | rm -f regress/unittests/sshbuf/test_sshbuf | ||
233 | (cd openbsd-compat && $(MAKE) distclean) | 241 | (cd openbsd-compat && $(MAKE) distclean) |
234 | if test -d pkg ; then \ | 242 | if test -d pkg ; then \ |
235 | rm -fr pkg ; \ | 243 | rm -fr pkg ; \ |
@@ -402,21 +410,54 @@ uninstall: | |||
402 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 | 410 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 |
403 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 | 411 | -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 |
404 | 412 | ||
405 | regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c | 413 | regress-prep: |
406 | [ -d `pwd`/regress ] || mkdir -p `pwd`/regress | 414 | [ -d `pwd`/regress ] || mkdir -p `pwd`/regress |
415 | [ -d `pwd`/regress/unitests ] || mkdir -p `pwd`/regress/unitests | ||
416 | [ -d `pwd`/regress/unitests/test_helper ] || \ | ||
417 | mkdir -p `pwd`/regress/unitests/test_helper | ||
418 | [ -d `pwd`/regress/unitests/sshbuf ] || \ | ||
419 | mkdir -p `pwd`/regress/unitests/sshbuf | ||
407 | [ -f `pwd`/regress/Makefile ] || \ | 420 | [ -f `pwd`/regress/Makefile ] || \ |
408 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile | 421 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile |
422 | |||
423 | regress/modpipe$(EXEEXT): $(srcdir)/regress/modpipe.c | ||
409 | $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ | 424 | $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ |
410 | $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | 425 | $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) |
411 | 426 | ||
412 | regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c | 427 | regress/setuid-allowed$(EXEEXT): $(srcdir)/regress/setuid-allowed.c |
413 | [ -d `pwd`/regress ] || mkdir -p `pwd`/regress | ||
414 | [ -f `pwd`/regress/Makefile ] || \ | ||
415 | ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile | ||
416 | $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ | 428 | $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $? \ |
417 | $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | 429 | $(LDFLAGS) -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) |
418 | 430 | ||
419 | tests interop-tests: $(TARGETS) regress/modpipe$(EXEEXT) regress/setuid-allowed$(EXEEXT) | 431 | UNITTESTS_TEST_HELPER_OBJS=\ |
432 | regress/unittests/test_helper/test_helper.o \ | ||
433 | regress/unittests/test_helper/fuzz.o | ||
434 | |||
435 | regress/unittests/test_helper/libtest_helper.a: ${UNITTESTS_TEST_HELPER_OBJS} | ||
436 | $(AR) rv $@ $(UNITTESTS_TEST_HELPER_OBJS) | ||
437 | $(RANLIB) $@ | ||
438 | |||
439 | UNITTESTS_TEST_SSHBUF_OBJS=\ | ||
440 | regress/unittests/sshbuf/tests.o \ | ||
441 | regress/unittests/sshbuf/test_sshbuf.o \ | ||
442 | regress/unittests/sshbuf/test_sshbuf_getput_basic.o \ | ||
443 | regress/unittests/sshbuf/test_sshbuf_getput_crypto.o \ | ||
444 | regress/unittests/sshbuf/test_sshbuf_misc.o \ | ||
445 | regress/unittests/sshbuf/test_sshbuf_fuzz.o \ | ||
446 | regress/unittests/sshbuf/test_sshbuf_getput_fuzz.o \ | ||
447 | regress/unittests/sshbuf/test_sshbuf_fixed.o | ||
448 | |||
449 | regress/unittests/sshbuf/test_sshbuf$(EXEEXT): ${UNITTESTS_TEST_SSHBUF_OBJS} \ | ||
450 | regress/unittests/test_helper/libtest_helper.a | ||
451 | $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_SSHBUF_OBJS) \ | ||
452 | -L regress/unittests/test_helper -ltest_helper \ | ||
453 | -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS) | ||
454 | |||
455 | REGRESS_BINARIES=\ | ||
456 | regress/modpipe$(EXEEXT) \ | ||
457 | regress/setuid-allowed$(EXEEXT) \ | ||
458 | regress/unittests/sshbuf/test_sshbuf$(EXEEXT) | ||
459 | |||
460 | tests interop-tests: regress-prep $(TARGETS) $(REGRESS_BINARIES) | ||
420 | BUILDDIR=`pwd`; \ | 461 | BUILDDIR=`pwd`; \ |
421 | TEST_SHELL="@TEST_SHELL@"; \ | 462 | TEST_SHELL="@TEST_SHELL@"; \ |
422 | TEST_SSH_SCP="$${BUILDDIR}/scp"; \ | 463 | TEST_SSH_SCP="$${BUILDDIR}/scp"; \ |