Kaydet (Commit) 18c702a8 authored tarafından Michael Stahl's avatar Michael Stahl

gbuild: move unittest mock profile to WORKDIR

Change-Id: Idd6420a855fec8b44fce6c0694b491d5f1eec95e
üst a50682cd
...@@ -36,8 +36,6 @@ class OOO_DLLPUBLIC_UNOTEST BootstrapFixtureBase : public CppUnit::TestFixture ...@@ -36,8 +36,6 @@ class OOO_DLLPUBLIC_UNOTEST BootstrapFixtureBase : public CppUnit::TestFixture
protected: protected:
OUString m_aSrcRootURL; OUString m_aSrcRootURL;
OUString m_aSrcRootPath; OUString m_aSrcRootPath;
OUString m_aSolverRootURL;
OUString m_aSolverRootPath;
OUString m_aWorkdirRootURL; OUString m_aWorkdirRootURL;
OUString m_aWorkdirRootPath; OUString m_aWorkdirRootPath;
......
...@@ -293,10 +293,10 @@ $(call gb_CppunitTest_get_target,$(1)) : HEADLESS= ...@@ -293,10 +293,10 @@ $(call gb_CppunitTest_get_target,$(1)) : HEADLESS=
endef endef
# Use configuration in $(OUTDIR)/unittest/registry. # Use configuration in $(WORKDIR)/unittest/registry.
define gb_CppunitTest_use_unittest_configuration define gb_CppunitTest_use_unittest_configuration
$(call gb_CppunitTest_get_target,$(1)) : $(call gb_Package_get_target,test_unittest) $(call gb_CppunitTest_get_target,$(1)) : $(call gb_Package_get_target,test_unittest)
$(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(OUTDIR)/unittest/registry) $(call gb_CppunitTest__use_configuration,$(1),xcsxcu,$(WORKDIR)/unittest/registry)
endef endef
......
...@@ -31,7 +31,7 @@ gb_PackagePart_get_destinations = \ ...@@ -31,7 +31,7 @@ gb_PackagePart_get_destinations = \
$(OUTDIR)/pck \ $(OUTDIR)/pck \
$(OUTDIR)/res \ $(OUTDIR)/res \
$(OUTDIR)/share \ $(OUTDIR)/share \
$(OUTDIR)/unittest \ $(WORKDIR)/unittest \
gb_InstallScript_get_target = $(OUTDIR)/bin/$(1)$(gb_InstallScript_EXT) gb_InstallScript_get_target = $(OUTDIR)/bin/$(1)$(gb_InstallScript_EXT)
# kind of lame but with just 3 of these why bother with registration etc. # kind of lame but with just 3 of these why bother with registration etc.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
$(eval $(call gb_Package_Package,test_unittest,$(SRCDIR)/test/user-template)) $(eval $(call gb_Package_Package,test_unittest,$(SRCDIR)/test/user-template))
$(eval $(call gb_Package_set_outdir,test_unittest,$(OUTDIR))) $(eval $(call gb_Package_set_outdir,test_unittest,$(WORKDIR)))
$(eval $(call gb_Package_add_file,test_unittest,unittest/registry/modifications.xcd,registry/modifications.xcd)) $(eval $(call gb_Package_add_file,test_unittest,unittest/registry/modifications.xcd,registry/modifications.xcd))
$(eval $(call gb_Package_add_file,test_unittest,unittest/user/wordbook/sl.dic,user/wordbook/sl.dic)) $(eval $(call gb_Package_add_file,test_unittest,unittest/user/wordbook/sl.dic,user/wordbook/sl.dic))
......
...@@ -57,9 +57,6 @@ test::BootstrapFixtureBase::BootstrapFixtureBase() ...@@ -57,9 +57,6 @@ test::BootstrapFixtureBase::BootstrapFixtureBase()
m_aSrcRootPath = OUString::createFromAscii( pSrcRoot ); m_aSrcRootPath = OUString::createFromAscii( pSrcRoot );
m_aSrcRootURL = getFileURLFromSystemPath(m_aSrcRootPath); m_aSrcRootURL = getFileURLFromSystemPath(m_aSrcRootPath);
m_aSolverRootPath = OUString::createFromAscii( pSolverRoot );
m_aSolverRootURL = getFileURLFromSystemPath(m_aSolverRootPath);
m_aWorkdirRootPath = OUString::createFromAscii( pWorkdirRoot ); m_aWorkdirRootPath = OUString::createFromAscii( pWorkdirRoot );
m_aWorkdirRootURL = getFileURLFromSystemPath(m_aWorkdirRootPath); m_aWorkdirRootURL = getFileURLFromSystemPath(m_aWorkdirRootPath);
...@@ -94,7 +91,7 @@ void test::BootstrapFixtureBase::setUp() ...@@ -94,7 +91,7 @@ void test::BootstrapFixtureBase::setUp()
{ {
// set UserInstallation to user profile dir in test/user-template // set UserInstallation to user profile dir in test/user-template
rtl::Bootstrap aDefaultVars; rtl::Bootstrap aDefaultVars;
OUString sUserInstallURL = m_aSolverRootURL + OUString("/unittest"); OUString sUserInstallURL = m_aWorkdirRootURL + OUString("/unittest");
aDefaultVars.set(OUString("UserInstallation"), sUserInstallURL); aDefaultVars.set(OUString("UserInstallation"), sUserInstallURL);
m_xContext = comphelper::getProcessComponentContext(); m_xContext = comphelper::getProcessComponentContext();
......
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