summaryrefslogtreecommitdiff
path: root/ios/UnitTest
AgeCommit message (Collapse)Author
2020-10-16Rename CLANG_CC, CLANG_CXX configuration vars (avoid clash with scan-build)Stephan Bergmann
Clang's scan-build tool uses the CLANG_CXX environment variable (setting it up in the scan-build script to pass it to the ccc-analyzer script), but happens to erroneously set it to a non-existing path (see <https://reviews.llvm.org/D89481> "[scan-build] Fix clang++ pathname again"). So wrapping LO's autogen.sh and make in scan-build picked up that broken CLANG_CXX and caused build failures like > [CXX] external/skia/source/SkMemory_malloc.cxx > /bin/sh: ~/llvm/inst/bin/clang-12++: No such file or directory (see <https://lists.freedesktop.org/archives/libreoffice/2020-October/086113.html> "Re: llvm/clang static analyzer reports"). So rename CLANG_CXX, and for consistency also CLANG_CC and the various CLANG_CXXFLAGS_INTRINSICS_*, by prefixing each with LO_. Change-Id: Ib41cabe940f8bfb1997f74e865cca5725f859e07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104383 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-07-22tdf#134832: Also run the BitmapTest from vclTor Lillqvist
Required some fiddling with the SolarMutex. Sadly running BitMapTest did not help finding the root cause for the bug. If you build and run UnitTest in a tree with --enable-dbgutil, you need to manually add DBG_UTIL=1 to the preprocessor macros the UnitTest Xcode project. Change-Id: I92abb6db596868c112996a93d51cc37fb6ab6541 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99184 Tested-by: Tor Lillqvist <tml@collabora.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
2020-07-20Make the iOS UnitTest project compile againTor Lillqvist
Change-Id: I0de05c0bca17e59a8e3de16ba2cd43f62f86811f
2019-02-28I had forgotten to add these files to gitTor Lillqvist
Change-Id: I02ab930c6e3304009c90eef36f55d61a4531af7c
2019-02-28Current ICU version is 63Tor Lillqvist
Change-Id: I126dbbec9fb6cbb19f848d8317002c69b407a36b
2018-10-10Move the iOS CGBitmapContextCreate() call do doc_paintTile()Tor Lillqvist
Thus it now actually takes a buffer pointer also on iOS, like on Linux and Android. Less confusing, more uniform. Add a separate iOS-specific paintTileToCGContext() method to LibreOfficeKitDocumentClass that takes a CGContextRef. Adapt callers correspondingly. (The LibreOfficeLight code in particular needs the paintTileToCGContext().) Change-Id: I81084806d37b9aac9f2b2bc03d0c262e991eec81
2018-10-08The UnitTest app needs the MobileCoreServices frameworkTor Lillqvist
(No idea why it complains about that only now. I did upgrade the Mac where I am building this to 10.14, but not sure how that could have an impact?) Change-Id: Ifaf56dbbe380694049d4957cc3fa8174c602bc67
2018-10-05Add more vcl sources for easier breakpointingTor Lillqvist
Change-Id: I3dccdd3253bf6e3e451b9ed53786eefaa02d451e
2018-10-05Add sources in vcl/headless for easier breakpointingTor Lillqvist
Change-Id: I02c73c040eafd77628d94f6045c48f02b650f8d6
2018-10-05Add more source files from vcl for breakpointing convenienceTor Lillqvist
Change-Id: I61b030d277a7fbcc1fd714b3edafc7922c59483a
2018-10-05Add files from vcl/quartz for easy breakpointingTor Lillqvist
Change-Id: Iccf4b7156677c6db7e675b2c7a6926d8395d025a
2018-10-02LibreOfficeKit wants the tile pixmap bytes to be in BGRA order in memoryTor Lillqvist
To get that with CoreGraphics on iOS we need to use also kCGImageByteOrder32Little in the CGBitmapContextCreate() call, otherwise the bytes will be in ARGB order in memory. (Not touching the macOS code here.) Change-Id: I3c2dd94feb1c6bf46c5b335f5901b29e5fe1e7fb
2018-10-02More hacking on the tilebench part of the UnitTest appTor Lillqvist
On iOS, don't attempt to write the tile dump ppm file to /tmp, but use the app-specific directory so that it can be copied for inspection using iTunes. (Of course, even better would be to simply paint it to the app's view. Later) Change-Id: I8dd60d04adc61de6594099f5c358a9b6220522da Reviewed-on: https://gerrit.libreoffice.org/61255 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2018-09-28Start on the iOS unit test appTor Lillqvist
Change-Id: Idef0b375d5c7d6d4542aee1f8abecaf9f834189c Reviewed-on: https://gerrit.libreoffice.org/61058 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>