blob: 931a6056ca4039591ace16da73a60dff1f38b87e [file] [log] [blame]
Leon Romanovsky6ea0a172016-01-13 08:00:07 +02001# Copyright (C) 2015-2016 Mellanox Technologies Ltd. All rights reserved.
Leon Romanovsky51940842015-11-08 14:39:44 +02002#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions
5# are met:
6#
7# 1. Redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer.
9# 2. Redistributions in binary form must reproduce the above copyright
10# notice, this list of conditions and the following disclaimer in the
11# documentation and/or other materials provided with the distribution.
12# 3. Neither the name of the copyright holder nor the names of its
13# contributors may be used to endorse or promote products derived from
14# this software without specific prior written permission.
15#
16# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20# HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
22# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28AM_CPPFLAGS = -I$(top_srcdir)/include
29ACLOCAL_AMFLAGS = -I config
30AM_CFLAGS = -g -Wall -Werror -I.
31
32bin_PROGRAMS = ibv_test
33
34ibv_test_CXXFLAGS = -g -Wall -O3 -fno-strict-aliasing
35
36ibv_test_CPPFLAGS = \
37 -I$(top_srcdir)/src \
38 -I$(top_srcdir)/include
39
40ibv_test_SOURCES = \
41 include/common.h \
42 include/verbs_test.h \
43 include/gtest.h \
44 src/main.cc \
45 src/sys.cc
Leon Romanovsky1f412432015-11-08 18:20:22 +020046# Add tests HERE
47ibv_test_SOURCES += \
Leon Romanovsky81031662015-11-10 11:16:01 +020048 tests/general/init.cc \
Leon Romanovsky1956f252015-11-12 14:34:22 +020049 tests/cross-channel/query_device.cc \
Leon Romanovsky50b0cff2015-12-06 12:09:25 +020050 tests/cross-channel/create_cq.cc \
Leon Romanovsky65416522015-12-15 08:49:30 +020051 tests/cross-channel/post_send_en.cc \
Leon Romanovsky5e3e14e2015-12-15 10:34:05 +020052 tests/cross-channel/post_recv_en.cc \
Leon Romanovsky6ea0a172016-01-13 08:00:07 +020053 tests/cross-channel/post_send_wait.cc \
54 tests/cross-channel/post_task.cc
Leon Romanovsky51940842015-11-08 14:39:44 +020055
Artemy Kovalyovea26e1c2016-06-20 17:14:47 +030056ibv_test_SOURCES += tests/basic/smoke.cc
57
Kovalyov Artemyb324b012015-11-11 12:09:18 +020058if PEER_DIRECT
Kovalyov Artemy970f38c2016-01-10 10:40:40 +020059ibv_test_SOURCES += tests/peer-direct/smoke.cc
Kovalyov Artemy970f38c2016-01-10 10:40:40 +020060endif
Artemy Kovalyovea26e1c2016-06-20 17:14:47 +030061
62if TAG_MATCHING
Artemy Kovalyove5c93662017-01-30 17:17:22 +020063if TAG_MATCHING_V0_2
Artemy Kovalyovea26e1c2016-06-20 17:14:47 +030064ibv_test_SOURCES += tests/tag-matching/smoke.cc
Artemy Kovalyove5c93662017-01-30 17:17:22 +020065else
66ibv_test_SOURCES += tests/tag-matching/smoke_old.cc
67endif
Kovalyov Artemyb324b012015-11-11 12:09:18 +020068endif
69
Artemy Kovalyov062c3ef2016-08-29 11:14:47 +030070ibv_test_SOURCES += tests/odp/smoke.cc
71
Moses Reuben06b0ac52016-12-15 11:15:09 -050072ibv_test_SOURCES += tests/vxlan/smoke.cc
Moses Reuben520ff652017-01-05 09:57:18 +000073ibv_test_SOURCES += tests/flow_tag/smoke.cc
Moses Reuben06b0ac52016-12-15 11:15:09 -050074
Artemy Kovalyov23e89242017-06-14 12:53:37 +000075if SIG_HANDOVER
76ibv_test_SOURCES += tests/sig-handover/smoke.cc
77endif
78
Artemy Kovalyovcec4ef92018-12-12 09:41:01 +020079if DEVX
80ibv_test_SOURCES += tests/devx/smoke.cc
81endif
82
Artemy Kovalyovb4f5b672018-10-13 21:35:43 +000083ibv_test_LDFLAGS = $(LIB_MLX5)
84
Leon Romanovsky51940842015-11-08 14:39:44 +020085EXTRA_DIST = src/gtest-all.cc
86EXTRA_DIST += autogen.sh