Makefile.am 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. AUTOMAKE_OPTIONS = dejagnu
  2. DEJATOOL = libzebra
  3. SUBDIRS = \
  4. bgpd.tests \
  5. libzebra.tests
  6. EXTRA_DIST = \
  7. config/unix.exp \
  8. lib/bgpd.exp \
  9. lib/libzebra.exp \
  10. global-conf.exp \
  11. testcommands.in \
  12. testcommands.refout \
  13. testcli.in \
  14. testcli.refout
  15. AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
  16. DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
  17. if BGPD
  18. TESTS_BGPD = aspathtest testbgpcap ecommtest testbgpmpattr testbgpmpath
  19. DEJATOOL += bgpd
  20. else
  21. TESTS_BGPD =
  22. endif
  23. check_PROGRAMS = testsig testsegv testbuffer testmemory heavy heavywq heavythread \
  24. testprivs teststream testchecksum tabletest testnexthopiter \
  25. testcommands test-timer-correctness test-timer-performance \
  26. testcli \
  27. $(TESTS_BGPD)
  28. ../vtysh/vtysh_cmd.c:
  29. $(MAKE) -C ../vtysh vtysh_cmd.c
  30. test-commands-defun.c: ../vtysh/vtysh_cmd.c
  31. sed \
  32. -e 's/"vtysh\.h"/"tests.h"/' \
  33. -e 's/vtysh_init_cmd/test_init_cmd/' \
  34. -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
  35. < ../vtysh/vtysh_cmd.c \
  36. > test-commands-defun.c
  37. BUILT_SOURCES = test-commands-defun.c
  38. noinst_HEADERS = prng.h tests.h common-cli.h
  39. testcli_SOURCES = test-cli.c common-cli.c
  40. testsig_SOURCES = test-sig.c
  41. testsegv_SOURCES = test-segv.c
  42. testbuffer_SOURCES = test-buffer.c
  43. testmemory_SOURCES = test-memory.c
  44. testprivs_SOURCES = test-privs.c
  45. teststream_SOURCES = test-stream.c
  46. heavy_SOURCES = heavy.c main.c
  47. heavywq_SOURCES = heavy-wq.c main.c
  48. heavythread_SOURCES = heavy-thread.c main.c
  49. aspathtest_SOURCES = aspath_test.c
  50. testbgpcap_SOURCES = bgp_capability_test.c
  51. ecommtest_SOURCES = ecommunity_test.c
  52. testbgpmpattr_SOURCES = bgp_mp_attr_test.c
  53. testchecksum_SOURCES = test-checksum.c
  54. testbgpmpath_SOURCES = bgp_mpath_test.c
  55. tabletest_SOURCES = table_test.c
  56. testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
  57. testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
  58. test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
  59. test_timer_performance_SOURCES = test-timer-performance.c prng.c
  60. testcli_LDADD = ../lib/libzebra.la @LIBCAP@
  61. testsig_LDADD = ../lib/libzebra.la @LIBCAP@
  62. testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
  63. testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
  64. testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
  65. testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
  66. teststream_LDADD = ../lib/libzebra.la @LIBCAP@
  67. heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  68. heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  69. heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  70. aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  71. testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  72. ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  73. testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  74. testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
  75. testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  76. tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  77. testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@
  78. testcommands_LDADD = ../lib/libzebra.la @LIBCAP@
  79. test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@
  80. test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@