| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # -*- Mode: sh; tab-width: 4; indent-tabs-mode: t -*- |
| 3 | # |
| 4 | # This file is part of the LibreOffice project. |
| 5 | # |
| 6 | # This Source Code Form is subject to the terms of the Mozilla Public |
| 7 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 8 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 9 | # |
| 10 | catscip-shell system . . cat. << EOF |
| 11 | |
| 12 | Error: a unit test failed: |
| 13 | |
| 14 | To rerun just this failed test without all others, use: |
| 15 | make UITest_$2 |
| 16 | |
| 17 | Or to run just a specific test case method, use: |
| 18 | make UITest_$2 UITEST_TEST_NAME="Module.ClassName.methodName" |
| 19 | where |
| 20 | Module - the name of the python file (without the .py extension) |
| 21 | Class - is the name in the "class Class" declaration |
| 22 | |
| 23 | Or to do interactive debugging, run two shells with: |
| 24 | LANG=C SAL_USE_VCLPLUGIN=gen make debugrun |
| 25 | make gb_UITest_DEBUGRUN=T UITest_$2 |
| 26 | |
| 27 | The SAL_USE_VCLPLUGIN part is unnecessary if you are running on a kde desktop. |
| 28 | (The default gtk3 backend has issues with some uitests). |
| 29 | |
| 30 | Failing that, put a |
| 31 | time.sleep(60) |
| 32 | in the beginning of the method in the .py file, |
| 33 | and attach gdb to the running soffice process. |
| 34 | |
| 35 | EOF |
| 36 | |
| 37 | # In theory, we could add this text, but it really doesn't work very well. |
| 38 | # |
| 39 | # Or to do interactive debugging, run two shells with: |
| 40 | # make debugrun |
| 41 | # make gb_UITest_DEBUGRUN=T UITest_$2 |
| 42 | |
| 43 | exit 1 |
| 44 | |
| 45 | # vim: set et sw=4: |