Makefile.am 3.0 KB

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