From a919190282189bb96ad9545035d1b1e4abf5b5d8 Mon Sep 17 00:00:00 2001 From: Stan Smith Date: Thu, 18 Mar 2010 18:13:07 +0000 Subject: [PATCH] [DAPL2] remove static path specification. git-svn-id: svn://openib.tc.cornell.edu/gen1@2740 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat | 11 +++++------ trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat | 12 +++++------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat b/trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat index 00369506..441b9751 100644 --- a/trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat +++ b/trunk/ulp/dapl2/test/dapltest/scripts/dt-cli.bat @@ -17,13 +17,12 @@ if not "!F!" == "off" ( rem set DAT_OVERRIDE=D:\dapl2\dat.conf rem favor DAT 2.0 (dapl2test.exe) over DAT 1.1 (dapltest.exe) -set PF="%ProgramFiles%\OFED" - -if NOT EXIST %PF%\dapl2test.exe ( - echo Missing file %PF%\dapl2test.exe ? - exit /B 1 -) set DT=dapl2test.exe +%DT% -h > Nul 2>&1 +if not "%ERRORLEVEL%" == "1" ( + echo %0: ERR - %DT% not in exec path? + exit /B %ERRORLEVEL% +) rem To debug dapl2test - use dapl2testd.exe with ibnic0v2d rem setup DAPL provider name: translate shorthand name or use name from dat.conf. diff --git a/trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat b/trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat index 9c188829..9974d235 100644 --- a/trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat +++ b/trunk/ulp/dapl2/test/dapltest/scripts/dt-svr.bat @@ -5,15 +5,13 @@ rem SETLOCAL rem set DAT_OVERRIDE=C:\DAT\dat.conf +set DT=dapl2test.exe -set PF="%ProgramFiles%\OFED" - -if NOT EXIST %PF%\dapl2test.exe ( - echo Missing file %PF%\dapl2test.exe ? - exit /B 1 +%DT% -h > Nul 2>&1 +if not "%ERRORLEVEL%" == "1" ( + echo %0: ERR - %DT% not in exec path? + exit /B %ERRORLEVEL% ) - -set DT=dapl2test.exe rem To debug dapl2test - use dapl2testd.exe with ibnic0v2d rem which Dapl provider? -- 2.46.0