Add makefile for the "osmtest" utility. While at it:

- Fix depend target by removing a space after an "-I" inclusion option.
- Fix some minor compile issues in the "osmtest" utility.

MFC after:	3 days
PR:		196580
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2015-01-08 14:45:54 +00:00
parent 6b7ca552c3
commit 9a0603fa5f
6 changed files with 49 additions and 6 deletions

View File

@ -42,6 +42,7 @@
#ifndef __WIN__
#include <unistd.h>
#endif
#include <sys/socket.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -3013,7 +3013,7 @@ static ib_api_status_t osmtest_check_missing_paths(IN osmtest_t * const p_osmt)
/**********************************************************************
**********************************************************************/
inline uint32_t osmtest_path_rec_key_get(IN const ib_path_rec_t * const p_rec)
static inline uint32_t osmtest_path_rec_key_get(IN const ib_path_rec_t * const p_rec)
{
return (p_rec->dlid << 16 | p_rec->slid);
}

View File

@ -1,6 +1,12 @@
SUBDIR = ibaddr ibnetdiscover ibping ibportstate ibroute ibsendtrap ibstat
SUBDIR += ibsysstat ibtracert opensm perfquery saquery
SUBDIR += sminfo smpdump smpquery vendstat
.include <src.opts.mk>
SUBDIR= ibaddr ibnetdiscover ibping ibportstate ibroute ibsendtrap ibstat \
ibsysstat ibtracert opensm perfquery saquery \
sminfo smpdump smpquery vendstat
.if ${MK_TESTS} != "no"
SUBDIR+= osmtest
.endif
SUBDIR_PARALLEL=

View File

@ -0,0 +1,34 @@
# $FreeBSD$
.include "../Makefile.inc"
OPENSM= ${.CURDIR}/../../management/opensm
.PATH: ${OPENSM}/osmtest ${OPENSM}/man
BINDIR= ${TESTSBASE}/usr.bin/opensm
PROG= osmtest
SRCS= main.c \
osmt_inform.c \
osmt_mtl_regular_qp.c \
osmt_multicast.c \
osmt_service.c \
osmt_slvl_vl_arb.c \
osmtest.c
LDADD= -libcommon \
-libmad \
-libumad \
-losmvendor \
-losmcomp \
-lopensm \
-lpthread
CFLAGS= -DVENDOR_RMPP_SUPPORT -DDUAL_SIDED_RMPP \
-I${OPENSM}/osmtest/include
MAN= osmtest.8
WARNS?= 1
.include <bsd.prog.mk>

View File

@ -1,5 +1,5 @@
SUBDIR = libibcommon libibmad libibumad libibverbs libmlx4 libmthca
SUBDIR += libopensm libosmcomp libosmvendor libibcm librdmacm libsdp libcxgb4
SUBDIR= libibcommon libibmad libibumad libibverbs libmlx4 libmthca \
libopensm libosmcomp libosmvendor libibcm librdmacm libsdp libcxgb4
SUBDIR_PARALLEL=

View File

@ -358,6 +358,8 @@
..
ncal
..
opensm
..
printf
..
sed