osmtest_base.h revision 219820
118334Speter/*
290081Sobrien * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
390081Sobrien * Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
418334Speter *
590081Sobrien * This software is available to you under a choice of one of two
618334Speter * licenses.  You may choose to be licensed under the terms of the GNU
790081Sobrien * General Public License (GPL) Version 2, available from the file
818334Speter * COPYING in the main directory of this source tree, or the
918334Speter * OpenIB.org BSD license below:
1018334Speter *
1118334Speter *     Redistribution and use in source and binary forms, with or
1290081Sobrien *     without modification, are permitted provided that the following
1318334Speter *     conditions are met:
1418334Speter *
1518334Speter *      - Redistributions of source code must retain the above
1618334Speter *        copyright notice, this list of conditions and the following
1718334Speter *        disclaimer.
1890081Sobrien *
1918334Speter *      - Redistributions in binary form must reproduce the above
2018334Speter *        copyright notice, this list of conditions and the following
2118334Speter *        disclaimer in the documentation and/or other materials
2252298Sobrien *        provided with the distribution.
2352298Sobrien *
2418334Speter * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
2518334Speter * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2618334Speter * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2718334Speter * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
2818334Speter * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
2990081Sobrien * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3090081Sobrien * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3190081Sobrien * SOFTWARE.
3218334Speter *
3318334Speter */
3418334Speter
3550448Sobrien/*
3650448Sobrien * Abstract:
3750448Sobrien * 	Declaration of osmtest_t.
3850448Sobrien *	This object represents the OSMTest Test object.
3990081Sobrien *
4090081Sobrien */
4190081Sobrien#ifndef _OSMTEST_BASE_H_
4218334Speter#define _OSMTEST_BASE_H_
4318334Speter
4418334Speter#ifndef __WIN__
4518334Speter#include <limits.h>
4618334Speter#else
4750448Sobrien#include <vendor/winosm_common.h>
4818334Speter#endif
4918334Speter
5018334Speter#define OSMTEST_MAX_LINE_LEN	120
5152298Sobrien#ifdef WIN32
5290081Sobrien#define OSMTEST_FILE_PATH_MAX	4096
5318334Speter#else
5450448Sobrien#define OSMTEST_FILE_PATH_MAX	PATH_MAX
5550448Sobrien#endif
5650448Sobrien
5750448Sobrien#define STRESS_SMALL_RMPP_THR 100000
5890081Sobrien/*
5990081Sobrien    Take long times when quering big clusters (over 40 nodes) , an average of : 0.25 sec for query
6090081Sobrien    each query receives 1000 records
6190081Sobrien*/
6290081Sobrien#define STRESS_LARGE_RMPP_THR 4000
6390081Sobrien#define STRESS_LARGE_PR_RMPP_THR 20000
6490081Sobrien
6590081Sobrienextern const char *const p_file;
6618334Speter
6750448Sobrien#endif				/* _OSMTEST_BASE_H_ */
6818334Speter