Leon Romanovsky | 6ea0a17 | 2016-01-13 08:00:07 +0200 | [diff] [blame] | 1 | # Copyright (C) 2015-2016 Mellanox Technologies Ltd. All rights reserved. |
Leon Romanovsky | 5194084 | 2015-11-08 14:39:44 +0200 | [diff] [blame] | 2 | # |
| 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 | |
| 28 | AM_CPPFLAGS = -I$(top_srcdir)/include |
| 29 | ACLOCAL_AMFLAGS = -I config |
| 30 | AM_CFLAGS = -g -Wall -Werror -I. |
| 31 | |
| 32 | bin_PROGRAMS = ibv_test |
| 33 | |
| 34 | ibv_test_CXXFLAGS = -g -Wall -O3 -fno-strict-aliasing |
| 35 | |
| 36 | ibv_test_CPPFLAGS = \ |
| 37 | -I$(top_srcdir)/src \ |
| 38 | -I$(top_srcdir)/include |
| 39 | |
| 40 | ibv_test_SOURCES = \ |
| 41 | include/common.h \ |
| 42 | include/verbs_test.h \ |
| 43 | include/gtest.h \ |
| 44 | src/main.cc \ |
| 45 | src/sys.cc |
Leon Romanovsky | 1f41243 | 2015-11-08 18:20:22 +0200 | [diff] [blame] | 46 | # Add tests HERE |
| 47 | ibv_test_SOURCES += \ |
Leon Romanovsky | 8103166 | 2015-11-10 11:16:01 +0200 | [diff] [blame] | 48 | tests/general/init.cc \ |
Leon Romanovsky | 1956f25 | 2015-11-12 14:34:22 +0200 | [diff] [blame] | 49 | tests/cross-channel/query_device.cc \ |
Leon Romanovsky | 50b0cff | 2015-12-06 12:09:25 +0200 | [diff] [blame] | 50 | tests/cross-channel/create_cq.cc \ |
Leon Romanovsky | 6541652 | 2015-12-15 08:49:30 +0200 | [diff] [blame] | 51 | tests/cross-channel/post_send_en.cc \ |
Leon Romanovsky | 5e3e14e | 2015-12-15 10:34:05 +0200 | [diff] [blame] | 52 | tests/cross-channel/post_recv_en.cc \ |
Leon Romanovsky | 6ea0a17 | 2016-01-13 08:00:07 +0200 | [diff] [blame] | 53 | tests/cross-channel/post_send_wait.cc \ |
| 54 | tests/cross-channel/post_task.cc |
Leon Romanovsky | 5194084 | 2015-11-08 14:39:44 +0200 | [diff] [blame] | 55 | |
Artemy Kovalyov | ea26e1c | 2016-06-20 17:14:47 +0300 | [diff] [blame] | 56 | ibv_test_SOURCES += tests/basic/smoke.cc |
| 57 | |
Kovalyov Artemy | b324b01 | 2015-11-11 12:09:18 +0200 | [diff] [blame] | 58 | if PEER_DIRECT |
Kovalyov Artemy | 970f38c | 2016-01-10 10:40:40 +0200 | [diff] [blame] | 59 | ibv_test_SOURCES += tests/peer-direct/smoke.cc |
Kovalyov Artemy | 970f38c | 2016-01-10 10:40:40 +0200 | [diff] [blame] | 60 | endif |
Artemy Kovalyov | ea26e1c | 2016-06-20 17:14:47 +0300 | [diff] [blame] | 61 | |
| 62 | if TAG_MATCHING |
Artemy Kovalyov | e5c9366 | 2017-01-30 17:17:22 +0200 | [diff] [blame] | 63 | if TAG_MATCHING_V0_2 |
Artemy Kovalyov | ea26e1c | 2016-06-20 17:14:47 +0300 | [diff] [blame] | 64 | ibv_test_SOURCES += tests/tag-matching/smoke.cc |
Artemy Kovalyov | e5c9366 | 2017-01-30 17:17:22 +0200 | [diff] [blame] | 65 | else |
| 66 | ibv_test_SOURCES += tests/tag-matching/smoke_old.cc |
| 67 | endif |
Kovalyov Artemy | b324b01 | 2015-11-11 12:09:18 +0200 | [diff] [blame] | 68 | endif |
| 69 | |
Artemy Kovalyov | 062c3ef | 2016-08-29 11:14:47 +0300 | [diff] [blame] | 70 | ibv_test_SOURCES += tests/odp/smoke.cc |
| 71 | |
Moses Reuben | 06b0ac5 | 2016-12-15 11:15:09 -0500 | [diff] [blame] | 72 | ibv_test_SOURCES += tests/vxlan/smoke.cc |
Moses Reuben | 520ff65 | 2017-01-05 09:57:18 +0000 | [diff] [blame] | 73 | ibv_test_SOURCES += tests/flow_tag/smoke.cc |
Moses Reuben | 06b0ac5 | 2016-12-15 11:15:09 -0500 | [diff] [blame] | 74 | |
Artemy Kovalyov | 23e8924 | 2017-06-14 12:53:37 +0000 | [diff] [blame] | 75 | if SIG_HANDOVER |
| 76 | ibv_test_SOURCES += tests/sig-handover/smoke.cc |
| 77 | endif |
| 78 | |
Artemy Kovalyov | cec4ef9 | 2018-12-12 09:41:01 +0200 | [diff] [blame] | 79 | if DEVX |
| 80 | ibv_test_SOURCES += tests/devx/smoke.cc |
| 81 | endif |
| 82 | |
Artemy Kovalyov | b4f5b67 | 2018-10-13 21:35:43 +0000 | [diff] [blame] | 83 | ibv_test_LDFLAGS = $(LIB_MLX5) |
| 84 | |
Leon Romanovsky | 5194084 | 2015-11-08 14:39:44 +0200 | [diff] [blame] | 85 | EXTRA_DIST = src/gtest-all.cc |
| 86 | EXTRA_DIST += autogen.sh |