Makefile.am 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
  14. DEFS = @DEFS@ $(LOCAL_OPTS) -DSYSCONFDIR=\"$(sysconfdir)/\"
  15. AM_CFLAGS = $(PICFLAGS)
  16. AM_LDFLAGS = $(PILDFLAGS)
  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. $(TESTS_BGPD)
  27. ../vtysh/vtysh_cmd.c:
  28. $(MAKE) -C ../vtysh vtysh_cmd.c
  29. test-commands-defun.c: ../vtysh/vtysh_cmd.c
  30. sed \
  31. -e '/"vtysh.h"/d' \
  32. -e 's/vtysh_init_cmd/test_init_cmd/' \
  33. -e 's/VTYSH_[A-Z][A-Z_0-9]*/0/g' \
  34. < ../vtysh/vtysh_cmd.c \
  35. > test-commands-defun.c
  36. BUILT_SOURCES = test-commands-defun.c
  37. noinst_HEADERS = prng.h
  38. testsig_SOURCES = test-sig.c
  39. testsegv_SOURCES = test-segv.c
  40. testbuffer_SOURCES = test-buffer.c
  41. testmemory_SOURCES = test-memory.c
  42. testprivs_SOURCES = test-privs.c
  43. teststream_SOURCES = test-stream.c
  44. heavy_SOURCES = heavy.c main.c
  45. heavywq_SOURCES = heavy-wq.c main.c
  46. heavythread_SOURCES = heavy-thread.c main.c
  47. aspathtest_SOURCES = aspath_test.c
  48. testbgpcap_SOURCES = bgp_capability_test.c
  49. ecommtest_SOURCES = ecommunity_test.c
  50. testbgpmpattr_SOURCES = bgp_mp_attr_test.c
  51. testchecksum_SOURCES = test-checksum.c
  52. testbgpmpath_SOURCES = bgp_mpath_test.c
  53. tabletest_SOURCES = table_test.c
  54. testnexthopiter_SOURCES = test-nexthop-iter.c prng.c
  55. testcommands_SOURCES = test-commands-defun.c test-commands.c prng.c
  56. test_timer_correctness_SOURCES = test-timer-correctness.c prng.c
  57. test_timer_performance_SOURCES = test-timer-performance.c prng.c
  58. testsig_LDADD = ../lib/libzebra.la @LIBCAP@
  59. testsegv_LDADD = ../lib/libzebra.la @LIBCAP@
  60. testbuffer_LDADD = ../lib/libzebra.la @LIBCAP@
  61. testmemory_LDADD = ../lib/libzebra.la @LIBCAP@
  62. testprivs_LDADD = ../lib/libzebra.la @LIBCAP@
  63. teststream_LDADD = ../lib/libzebra.la @LIBCAP@
  64. heavy_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  65. heavywq_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  66. heavythread_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  67. aspathtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  68. testbgpcap_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  69. ecommtest_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  70. testbgpmpattr_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  71. testchecksum_LDADD = ../lib/libzebra.la @LIBCAP@
  72. testbgpmpath_LDADD = ../bgpd/libbgp.a ../lib/libzebra.la @LIBCAP@ -lm
  73. tabletest_LDADD = ../lib/libzebra.la @LIBCAP@ -lm
  74. testnexthopiter_LDADD = ../lib/libzebra.la @LIBCAP@
  75. testcommands_LDADD = ../lib/libzebra.la @LIBCAP@
  76. test_timer_correctness_LDADD = ../lib/libzebra.la @LIBCAP@
  77. test_timer_performance_LDADD = ../lib/libzebra.la @LIBCAP@