[ofw] [PATCH 02/11] uDAPL dtestcm windows: add build infrastructure for new dtestcm test suite

Arlin Davis arlin.r.davis at intel.com
Mon Jul 6 12:51:50 PDT 2009


Signed-off-by: Arlin Davis <arlin.r.davis at intel.com>
---
 test/dtest/dtestcm.c                  |    1 -
 test/dtest/windows/dirs               |    2 +-
 test/dtest/windows/dtestcm/SOURCES    |   33 ++++++++++++++++++++++
 test/dtest/windows/dtestcm/dtestcm.c  |    2 +
 test/dtest/windows/dtestcm/dtestcm.rc |   48 +++++++++++++++++++++++++++++++++
 test/dtest/windows/dtestcm/makefile   |    7 +++++
 6 files changed, 91 insertions(+), 2 deletions(-)
 create mode 100644 test/dtest/windows/dtestcm/SOURCES
 create mode 100644 test/dtest/windows/dtestcm/dtestcm.c
 create mode 100644 test/dtest/windows/dtestcm/dtestcm.rc
 create mode 100644 test/dtest/windows/dtestcm/makefile

diff --git a/test/dtest/dtestcm.c b/test/dtest/dtestcm.c
index 7bfe342..62af6a1 100644
--- a/test/dtest/dtestcm.c
+++ b/test/dtest/dtestcm.c
@@ -49,7 +49,6 @@
 #include <complib/cl_types.h>
 #include "..\..\..\..\etc\user\getopt.c"
 
-#define  ((int)GetCurrentProcessId())
 #define F64x "%I64x"
 #define F64d "%I64d"
 
diff --git a/test/dtest/windows/dirs b/test/dtest/windows/dirs
index cac5a54..50f0131 100644
--- a/test/dtest/windows/dirs
+++ b/test/dtest/windows/dirs
@@ -1 +1 @@
-dirs = dtest dtestx
+dirs = dtest dtestx dtestcm
diff --git a/test/dtest/windows/dtestcm/SOURCES b/test/dtest/windows/dtestcm/SOURCES
new file mode 100644
index 0000000..7b4264e
--- /dev/null
+++ b/test/dtest/windows/dtestcm/SOURCES
@@ -0,0 +1,33 @@
+!if $(FREEBUILD)
+TARGETNAME = dtestcm
+!else
+TARGETNAME = dtestcmd
+!endif
+
+TARGETPATH = ..\..\..\..\..\..\bin\user\obj$(BUILD_ALT_DIR)
+TARGETTYPE = PROGRAM
+UMTYPE = console
+USE_MSVCRT = 1
+
+SOURCES = \
+	dtestcm.rc	\
+	dtestcm.c
+	
+INCLUDES = ..\..\..\..\dat\include;..\..\..\..\..\..\inc;\
+	   ..\..\..\..\..\..\inc\user;
+
+RCOPTIONS=/I..\..\..\..\..\..\inc;
+
+# Set defines particular to the driver.
+#USER_C_FLAGS = $(USER_C_FLAGS) /DDAT_EXTENSIONS
+
+!if $(FREEBUILD)
+DATLIB = dat2.lib
+!else
+DATLIB = dat2d.lib
+!endif
+
+TARGETLIBS = $(TARGETPATH)\*\$(DATLIB) $(SDK_LIB_PATH)\ws2_32.lib
+
+# XXX do this ASAP - MSC_WARNING_LEVEL= /W3
+MSC_WARNING_LEVEL = /W1
diff --git a/test/dtest/windows/dtestcm/dtestcm.c b/test/dtest/windows/dtestcm/dtestcm.c
new file mode 100644
index 0000000..f9a6db0
--- /dev/null
+++ b/test/dtest/windows/dtestcm/dtestcm.c
@@ -0,0 +1,2 @@
+#include "..\..\dtestcm.c"
+
diff --git a/test/dtest/windows/dtestcm/dtestcm.rc b/test/dtest/windows/dtestcm/dtestcm.rc
new file mode 100644
index 0000000..a167485
--- /dev/null
+++ b/test/dtest/windows/dtestcm/dtestcm.rc
@@ -0,0 +1,48 @@
+/*
+ * Copyright (c) 2009 Intel Corporation.  All rights reserved.
+ *
+ * This software is available to you under the OpenIB.org BSD license
+ * below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
+ *
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id$
+ */
+
+
+#include <oib_ver.h>
+
+#define VER_FILETYPE			VFT_APP
+#define VER_FILESUBTYPE			VFT2_UNKNOWN
+
+#if DBG
+#define VER_FILEDESCRIPTION_STR		"Measure DAPL connection rate scaling (Debug)"
+#define VER_INTERNALNAME_STR		"dtestcmd.exe"
+#define VER_ORIGINALFILENAME_STR	"dtestcmd.exe"
+#else
+#define VER_FILEDESCRIPTION_STR		"Measure DAPL connection rate scaling"
+#define VER_INTERNALNAME_STR		"dtestcm.exe"
+#define VER_ORIGINALFILENAME_STR	"dtestcm.exe"
+#endif
+
+#include <common.ver>
diff --git a/test/dtest/windows/dtestcm/makefile b/test/dtest/windows/dtestcm/makefile
new file mode 100644
index 0000000..5fb2ee8
--- /dev/null
+++ b/test/dtest/windows/dtestcm/makefile
@@ -0,0 +1,7 @@
+#
+# DO NOT EDIT THIS FILE!!!  Edit .\sources. if you want to add a new source
+# file to this component.  This file merely indirects to the real make file
+# that is shared by all the driver components of the OpenIB Windows project.
+#
+
+!INCLUDE ..\..\..\..\..\..\inc\openib.def
-- 
1.5.2.5





More information about the ofw mailing list