# HG changeset patch # User Tero Koskinen # Date 1641412186 -7200 # Wed Jan 05 21:49:46 2022 +0200 # Node ID 5b86efa9705e223bc77ded25627b31e5ad52272b # Parent 0e1948a44506e7e0bc81f975de94334e5c8a1872 Move robot test executables to bin dir. Move the test executables generated for the Robot Framework tests to the robot/test_sources/bin directory. diff --git a/robot/basic.robot b/robot/basic.robot --- a/robot/basic.robot +++ b/robot/basic.robot @@ -19,7 +19,7 @@ *** Keywords *** Run Test [Arguments] ${testname} - ${result}= Run Process test_sources/${testname} + ${result}= Run Process test_sources/bin/${testname} Set Test Variable ${TEST_OUTPUT} ${result.stdout} Result Should Contain diff --git a/robot/test_sources/gnat/build.bat b/robot/test_sources/gnat/build.bat --- a/robot/test_sources/gnat/build.bat +++ b/robot/test_sources/gnat/build.bat @@ -1,3 +1,11 @@ -gnatmake -p -P gnat\tests -copy gnat\simple1r.exe . -copy gnat\fail1r.exe . +if not exist bin ( mkdir bin ) +gprbuild -p -P gnat\tests +if %ERRORLEVEL NEQ 0 goto errorhappened +copy gnat\simple1r.exe bin +copy gnat\fail1r.exe bin + +:allok: +exit /b 0 + +:errorhappened: +exit /b 1 diff --git a/robot/test_sources/janusada/build.bat b/robot/test_sources/janusada/build.bat --- a/robot/test_sources/janusada/build.bat +++ b/robot/test_sources/janusada/build.bat @@ -1,9 +1,13 @@ +@rem Run this from robot\test_sources directory + +if not exits bin ( mkdir bin ) + cd simple1 corder simple1r /pSimple1/l'ads'/n'adb'/t/w/k255/js'jbind'/jb'/t/l/YLLIBCMT'/b'..\simple1_obj\ctst.bat'/r..\simple1_obj cd ..\simple1_obj call ctst.bat call lkc simple1r -move simple1r.exe .. +move simple1r.exe ..\bin cd .. cd fail1 @@ -11,5 +15,5 @@ cd ..\fail1_obj call ctst.bat call lkc fail1r -move fail1r.exe .. +move fail1r.exe ..\bin cd ..