| 1 | AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common |
| 2 | |
| 3 | LOG_DRIVER_FLAGS = --merge --comments |
| 4 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ |
| 5 | URCU_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ |
| 6 | URCU_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ |
| 7 | $(SHELL) $(top_srcdir)/tests/utils/tap-driver.sh |
| 8 | |
| 9 | noinst_PROGRAMS = \ |
| 10 | get_cpu_mask_from_sysfs \ |
| 11 | get_cpu_mask_from_sysfs_cxx \ |
| 12 | get_max_cpuid_from_sysfs \ |
| 13 | get_max_cpuid_from_sysfs_cxx \ |
| 14 | test_arch \ |
| 15 | test_arch_cxx \ |
| 16 | test_get_max_cpuid_from_mask \ |
| 17 | test_get_max_cpuid_from_mask_cxx \ |
| 18 | test_get_possible_cpus_array_len \ |
| 19 | test_get_possible_cpus_array_len_cxx \ |
| 20 | test_uatomic \ |
| 21 | test_uatomic_cxx \ |
| 22 | test_urcu_multiflavor \ |
| 23 | test_urcu_multiflavor_cxx \ |
| 24 | test_urcu_multiflavor_dynlink \ |
| 25 | test_urcu_multiflavor_dynlink_cxx \ |
| 26 | test_urcu_multiflavor_single_unit \ |
| 27 | test_urcu_multiflavor_single_unit_cxx \ |
| 28 | test_urcu_multiflavor_single_unit_dynlink \ |
| 29 | test_urcu_multiflavor_single_unit_dynlink_cxx \ |
| 30 | test_build \ |
| 31 | test_build_cxx \ |
| 32 | test_build_dynlink \ |
| 33 | test_build_dynlink_cxx |
| 34 | |
| 35 | dist_noinst_SCRIPTS = \ |
| 36 | test_get_cpu_mask_from_sysfs \ |
| 37 | test_get_cpu_mask_from_sysfs_cxx \ |
| 38 | test_get_max_cpuid_from_sysfs \ |
| 39 | test_get_max_cpuid_from_sysfs_cxx |
| 40 | |
| 41 | TESTS = \ |
| 42 | test_arch \ |
| 43 | test_arch_cxx \ |
| 44 | test_get_cpu_mask_from_sysfs \ |
| 45 | test_get_cpu_mask_from_sysfs_cxx \ |
| 46 | test_get_max_cpuid_from_mask \ |
| 47 | test_get_max_cpuid_from_mask_cxx \ |
| 48 | test_get_max_cpuid_from_sysfs \ |
| 49 | test_get_max_cpuid_from_sysfs_cxx \ |
| 50 | test_get_possible_cpus_array_len \ |
| 51 | test_get_possible_cpus_array_len_cxx \ |
| 52 | test_uatomic \ |
| 53 | test_uatomic_cxx \ |
| 54 | test_urcu_multiflavor \ |
| 55 | test_urcu_multiflavor_cxx \ |
| 56 | test_urcu_multiflavor_dynlink \ |
| 57 | test_urcu_multiflavor_dynlink_cxx \ |
| 58 | test_urcu_multiflavor_single_unit \ |
| 59 | test_urcu_multiflavor_single_unit_cxx \ |
| 60 | test_urcu_multiflavor_single_unit_dynlink \ |
| 61 | test_urcu_multiflavor_single_unit_dynlink_cxx \ |
| 62 | test_build \ |
| 63 | test_build_cxx \ |
| 64 | test_build_dynlink \ |
| 65 | test_build_dynlink_cxx |
| 66 | |
| 67 | noinst_HEADERS = test_urcu_multiflavor.h |
| 68 | |
| 69 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
| 70 | URCU_LIB=$(top_builddir)/src/liburcu.la |
| 71 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la |
| 72 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la |
| 73 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la |
| 74 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la |
| 75 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la |
| 76 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
| 77 | |
| 78 | get_cpu_mask_from_sysfs_cxx_SOURCES = get_cpu_mask_from_sysfs_cxx.cpp |
| 79 | get_cpu_mask_from_sysfs_SOURCES = get_cpu_mask_from_sysfs.c |
| 80 | get_max_cpuid_from_sysfs_cxx_SOURCES = get_max_cpuid_from_sysfs_cxx.cpp |
| 81 | get_max_cpuid_from_sysfs_SOURCES = get_max_cpuid_from_sysfs.c |
| 82 | |
| 83 | test_arch_SOURCES = test_arch.c |
| 84 | test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
| 85 | |
| 86 | test_arch_cxx_SOURCES = test_arch_cxx.cpp |
| 87 | test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB) |
| 88 | |
| 89 | test_get_max_cpuid_from_mask_SOURCES = test_get_max_cpuid_from_mask.c |
| 90 | test_get_max_cpuid_from_mask_LDADD = $(TAP_LIB) |
| 91 | |
| 92 | test_get_max_cpuid_from_mask_cxx_SOURCES = test_get_max_cpuid_from_mask_cxx.cpp |
| 93 | test_get_max_cpuid_from_mask_cxx_LDADD = $(TAP_LIB) |
| 94 | |
| 95 | test_get_possible_cpus_array_len_SOURCES = test_get_possible_cpus_array_len.c |
| 96 | test_get_possible_cpus_array_len_LDADD = $(TAP_LIB) |
| 97 | |
| 98 | test_get_possible_cpus_array_len_cxx_SOURCES = test_get_possible_cpus_array_len_cxx.cpp |
| 99 | test_get_possible_cpus_array_len_cxx_LDADD = $(TAP_LIB) |
| 100 | |
| 101 | test_uatomic_SOURCES = test_uatomic.c |
| 102 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
| 103 | |
| 104 | test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp |
| 105 | test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
| 106 | |
| 107 | test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \ |
| 108 | test_urcu_multiflavor-memb.c \ |
| 109 | test_urcu_multiflavor-mb.c \ |
| 110 | test_urcu_multiflavor-signal.c \ |
| 111 | test_urcu_multiflavor-qsbr.c \ |
| 112 | test_urcu_multiflavor-bp.c |
| 113 | test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 114 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 115 | |
| 116 | test_urcu_multiflavor_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \ |
| 117 | test_urcu_multiflavor-memb_cxx.cpp \ |
| 118 | test_urcu_multiflavor-mb_cxx.cpp \ |
| 119 | test_urcu_multiflavor-signal_cxx.cpp \ |
| 120 | test_urcu_multiflavor-qsbr_cxx.cpp \ |
| 121 | test_urcu_multiflavor-bp_cxx.cpp |
| 122 | test_urcu_multiflavor_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 123 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 124 | |
| 125 | test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \ |
| 126 | test_urcu_multiflavor-memb.c \ |
| 127 | test_urcu_multiflavor-mb.c \ |
| 128 | test_urcu_multiflavor-signal.c \ |
| 129 | test_urcu_multiflavor-qsbr.c \ |
| 130 | test_urcu_multiflavor-bp.c |
| 131 | test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) |
| 132 | test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 133 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 134 | |
| 135 | test_urcu_multiflavor_dynlink_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \ |
| 136 | test_urcu_multiflavor-memb_cxx.cpp \ |
| 137 | test_urcu_multiflavor-mb_cxx.cpp \ |
| 138 | test_urcu_multiflavor-signal_cxx.cpp \ |
| 139 | test_urcu_multiflavor-qsbr_cxx.cpp \ |
| 140 | test_urcu_multiflavor-bp_cxx.cpp |
| 141 | test_urcu_multiflavor_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) |
| 142 | test_urcu_multiflavor_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 143 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 144 | |
| 145 | test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c |
| 146 | test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 147 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 148 | |
| 149 | test_urcu_multiflavor_single_unit_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp |
| 150 | test_urcu_multiflavor_single_unit_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 151 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 152 | |
| 153 | test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c |
| 154 | test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) |
| 155 | test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 156 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 157 | |
| 158 | test_urcu_multiflavor_single_unit_dynlink_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp |
| 159 | test_urcu_multiflavor_single_unit_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) |
| 160 | test_urcu_multiflavor_single_unit_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ |
| 161 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
| 162 | |
| 163 | test_build_SOURCES = \ |
| 164 | test_build.c |
| 165 | test_build_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB) |
| 166 | |
| 167 | test_build_cxx_SOURCES = \ |
| 168 | test_build_cxx.cpp |
| 169 | test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB) |
| 170 | |
| 171 | test_build_dynlink_SOURCES = \ |
| 172 | test_build.c |
| 173 | test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) |
| 174 | test_build_dynlink_LDADD = $(URCU_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB) |
| 175 | |
| 176 | test_build_dynlink_cxx_SOURCES = \ |
| 177 | test_build_cxx.cpp |
| 178 | test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) |
| 179 | test_build_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB) |