2
0
Эх сурвалжийг харах

* pass TEST_REMOTEPATH to emulator as "-R TEST_REMOTEPATH"

git-svn-id: trunk@6034 -
yury 18 жил өмнө
parent
commit
b6dbf981c9

+ 3 - 1
tests/readme.txt

@@ -174,7 +174,9 @@ files will be removed.
 Example cross testing of target arm-wince
 -----------------------------------------
 //arm-wince example : see FPCTRUNK\DEMO\WINCE\TESTEMU\ for additional required tools
-make TEST_FPC=ppcrossarm TEST_CPU_TARGET=arm TEST_OS_TARGET=wince TEST_OPT="-XParm-wince-pe- -WC" EMULATOR=MyDisc:\My\Path\to\wcetemu.exe
+make TEST_FPC=ppcrossarm TEST_CPU_TARGET=arm TEST_OS_TARGET=wince TEST_OPT="-XParm-wince- -WC -Xs" TEST_REMOTEPATH=\fpctest EMULATOR=MyDisc:\My\Path\to\wcetemu.exe
+
+You need to create \fpctest folder on remote device before running testsuite.
 
 Result uploading
 ----------------

+ 5 - 1
tests/utils/dotest.pp

@@ -686,6 +686,7 @@ const
   CurrDir = '';
 {$endif}
 var
+  s,
   OldDir,
   FullExeLogFile,
   TestRemoteExe,
@@ -722,7 +723,10 @@ begin
        ChDir(TestOutputDir);
       {$I+}
       ioresult;
-      execres:=ExecuteEmulated(EmulatorName,CurrDir+SplitFileName(TestExe));
+      s:=CurrDir+SplitFileName(TestExe);
+      if RemotePath<>'' then
+        s:='-R '+RemotePath+' '+s;
+      execres:=ExecuteEmulated(EmulatorName,s);
       {$I-}
        ChDir(OldDir);
       {$I+}