]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[DAPL2] remove static path specification.
authorStan Smith <stan.smith@intel.com>
Thu, 18 Mar 2010 18:13:07 +0000 (18:13 +0000)
committerStan Smith <stan.smith@intel.com>
Thu, 18 Mar 2010 18:13:07 +0000 (18:13 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@2740 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat
trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat

index 0036950680573e4810d6ff0a21c550320a71b23c..441b9751b965bbd5277abc6bdb0de57c2fd645f5 100644 (file)
@@ -17,13 +17,12 @@ if not "!F!" == "off" (
 rem set DAT_OVERRIDE=D:\dapl2\dat.conf\r
 rem favor DAT 2.0 (dapl2test.exe) over DAT 1.1 (dapltest.exe)\r
 \r
-set PF="%ProgramFiles%\OFED"\r
-\r
-if NOT EXIST %PF%\dapl2test.exe (\r
-    echo Missing file %PF%\dapl2test.exe ?\r
-    exit /B 1\r
-)\r
 set DT=dapl2test.exe\r
+%DT% -h > Nul 2>&1\r
+if not "%ERRORLEVEL%" == "1" (\r
+    echo %0: ERR - %DT% not in exec path?\r
+    exit /B %ERRORLEVEL%\r
+)\r
 rem     To debug dapl2test - use dapl2testd.exe with ibnic0v2d\r
 \r
 rem setup DAPL provider name: translate shorthand name or use name from dat.conf.\r
index 9c1888294ef44e910cea1b315e694b09ad7d36cf..9974d23569345998a97f4af65487ede7cf57c26e 100644 (file)
@@ -5,15 +5,13 @@ rem
 SETLOCAL\r
 \r
 rem set DAT_OVERRIDE=C:\DAT\dat.conf\r
+set DT=dapl2test.exe\r
 \r
-set PF="%ProgramFiles%\OFED"\r
-\r
-if NOT EXIST %PF%\dapl2test.exe (\r
-    echo Missing file %PF%\dapl2test.exe ?\r
-    exit /B 1\r
+%DT% -h > Nul 2>&1\r
+if not "%ERRORLEVEL%" == "1" (\r
+    echo %0: ERR - %DT% not in exec path?\r
+    exit /B %ERRORLEVEL%\r
 )\r
-\r
-set DT=dapl2test.exe\r
 rem To debug dapl2test - use dapl2testd.exe with ibnic0v2d\r
 \r
 rem which Dapl provider?\r