summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorhomeboy445 <akshitsan13@gmail.com>2021-06-07 15:52:34 +0530
committerTomaž Vajngerl <quikee@gmail.com>2021-06-18 07:22:49 +0200
commit07e269f2596756bf841bbc380929bcffc3ca6bc6 (patch)
tree41fd6e8bbb715800aa3fc6c72000372627e1beeb /desktop
parent3fc41a91ce3bd9d6756905809e261499a51d9774 (diff)
VCL graphics rendering tests that a run on LO version change
This commit includes the implementation of graphics rendering tests which would be automatically triggered at first installation or upgrades of LibreOffice. These tests check the graphic rendering interface of LibreOffice by drawing and checking various graphical rendering tools (eg:. by drawing lines, polygons etc.). After the successful completion of tests, their results are stored in the user folder for future reference. Change-Id: I59c94b57a1f3f3a9cba55af1067a9702b6da98d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116779 Tested-by: Tomaž Vajngerl <quikee@gmail.com> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/app.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index b0c4fac53e10..42a687b69088 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -99,8 +99,10 @@
#include <osl/process.h>
#include <rtl/byteseq.hxx>
#include <unotools/pathoptions.hxx>
+#include <unotools/VersionConfig.hxx>
#include <svtools/menuoptions.hxx>
#include <rtl/bootstrap.hxx>
+#include <vcl/test/GraphicsRenderTests.hxx>
#include <vcl/glxtestprocess.hxx>
#include <vcl/help.hxx>
#include <vcl/weld.hxx>
@@ -336,6 +338,16 @@ void RemoveIconCacheDirectory()
namespace {
+void runGraphicsRenderTests()
+{
+ if (!utl::isProductVersionUpgraded(false))
+ {
+ return;
+ }
+ GraphicsRenderTests TestObject;
+ TestObject.run();
+}
+
OUString MakeStartupErrorMessage(std::u16string_view aErrorMessage)
{
@@ -1550,6 +1562,9 @@ int Desktop::Main()
CheckOpenCLCompute(xDesktop);
#endif
+ //Running the VCL graphics rendering tests
+ runGraphicsRenderTests();
+
// Reap the process started by fire_glxtest_process().
reap_glxtest_process();