12#include <cppunit/TestAssert.h>
13#include <osl/file.hxx>
18OUString getFileURLFromSystemPath(OUString
const& path)
21 osl::FileBase::RC e = osl::FileBase::getFileURLFromSystemPath(path, url);
22 CPPUNIT_ASSERT_EQUAL(osl::FileBase::E_None, e);
23 if (!url.endsWith(
"/"))
33 const char* pSrcRoot = getenv(
"SRC_ROOT");
34 CPPUNIT_ASSERT_MESSAGE(
"SRC_ROOT env variable not set", pSrcRoot !=
nullptr);
35 CPPUNIT_ASSERT_MESSAGE(
"SRC_ROOT env variable not set", pSrcRoot[0] != 0);
36 const char* pWorkdirRoot = getenv(
"WORKDIR_FOR_BUILD");
37 CPPUNIT_ASSERT_MESSAGE(
"$WORKDIR_FOR_BUILD env variable not set", pWorkdirRoot !=
nullptr);
38 CPPUNIT_ASSERT_MESSAGE(
"$WORKDIR_FOR_BUILD env variable not set", pWorkdirRoot[0] != 0);
48 return m_aSrcRootURL + rPath;
53 return m_aSrcRootPath + rPath;
58 return m_aWorkdirRootURL + rPath;
63 return m_aWorkdirRootPath + rPath;
OUString getPathFromSrc(std::u16string_view rPath) const
OUString getURLFromWorkdir(std::u16string_view rPath) const
OUString m_aWorkdirRootPath
OUString getURLFromSrc(std::u16string_view rPath) const
OUString getPathFromWorkdir(std::u16string_view rPath) const
OUString m_aWorkdirRootURL