Kaydet (Commit) 335ea181 authored tarafından Juergen Funk's avatar Juergen Funk Kaydeden (comit) Michael Stahl

make debugrun under Windows

Debugging with Visual-Studio, attach to soffice.bin

Description:
Start 
  make debugrun
after the start of LO, in VS-Debugger
  "Attach to Process" to the soffice.bin
then start in other box the test with
  make gb_JunitTest_DEBUGRUN=T JunitTest_YYY"

Change-Id: I44571d1d4feafe9ce836d71781eaf793fe72cb92
Reviewed-on: https://gerrit.libreoffice.org/16290Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
Tested-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 92d77c1c
...@@ -45,7 +45,7 @@ $(call gb_JunitTest_get_target,%) : ...@@ -45,7 +45,7 @@ $(call gb_JunitTest_get_target,%) :
&& echo "to rerun just this failed test without all others, run:" \ && echo "to rerun just this failed test without all others, run:" \
&& echo && echo " make JunitTest_$*" && echo \ && echo && echo " make JunitTest_$*" && echo \
&& echo "cd into the module dir to run the tests faster" \ && echo "cd into the module dir to run the tests faster" \
&& echo "Or to do interactive debugging (non-Windows), run two shells with:" \ && echo "Or to do interactive debugging, run two shells with:" \
&& echo \ && echo \
&& echo " make debugrun" \ && echo " make debugrun" \
&& echo " make gb_JunitTest_DEBUGRUN=T JunitTest_$*" \ && echo " make gb_JunitTest_DEBUGRUN=T JunitTest_$*" \
......
...@@ -411,12 +411,27 @@ endif ...@@ -411,12 +411,27 @@ endif
define gb_JunitTest_JunitTest_platform define gb_JunitTest_JunitTest_platform
$(call gb_JunitTest_get_target,$(1)) : DEFS := \ $(call gb_JunitTest_get_target,$(1)) : DEFS := \
-Dorg.openoffice.test.arg.soffice="$$$${OOO_TEST_SOFFICE:-path:$(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice.exe}" \ -Dorg.openoffice.test.arg.soffice="$(gb_JunitTest_SOFFICEARG)" \
-Dorg.openoffice.test.arg.env=PATH="$$$$PATH" \ -Dorg.openoffice.test.arg.env=PATH="$$$$PATH" \
-Dorg.openoffice.test.arg.user=$(call gb_Helper_make_url,$(call gb_JunitTest_get_userdir,$(1))) -Dorg.openoffice.test.arg.user=$(call gb_Helper_make_url,$(call gb_JunitTest_get_userdir,$(1)))
-Dorg.openoffice.test.arg.workdir=$(call gb_JunitTest_get_userdir,$(1)) \
endef endef
define gb_Module_DEBUGRUNCOMMAND
printf "\nAttach the debugger to soffice.bin\n\n"
unset VCL_HIDE_WINDOWS && \
OFFICESCRIPT=`mktemp` && \
printf "$(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice.exe" > $${OFFICESCRIPT} && \
printf " --norestore --nologo '--accept=pipe,name=$(USER);urp;'\n" >> $${OFFICESCRIPT} && \
$(SHELL) $${OFFICESCRIPT} && \
rm $${OFFICESCRIPT}
endef
# PythonTest class # PythonTest class
gb_PythonTest_PRECOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND) gb_PythonTest_PRECOMMAND := $(gb_CppunitTest_CPPTESTPRECOMMAND)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment