On Fri, Jan 25, 2013 at 3:30 AM, Kornel Benko <kor...@lyx.org> wrote:
> Am Donnerstag, 24. Januar 2013 um 21:02:52, schrieb Scott Kostyshak
> <skost...@lyx.org>
>
>> On Thu, Jan 24, 2013 at 8:50 PM, Tommaso Cucinotta <tomm...@lyx.org>
>> wrote:
>
>> > On 24/01/13 04:42, Scott Kostyshak wrote:
>
>> >> I am trying to add an autotest for #8523, but how can I open a .lyx
>
>> >> file that I need to reproduce the crash?
>
>> >>
>
>> >> Two solutions come to mind:
>
>> >>
>
>> >> 1. Allow for a macro [autotest-dir] that key-test.py will replace with
>
>> >> the autotest directory.
>
>> >
>
>> > As of now, when launched through run-tests.sh, the tests execute in a
>> > child
>
>> > directory of the autotests/ folder, named after out-<name-of-test>/.
>
>> >
>
>> > Therefore, this works:
>
>> >
>
>> > TestBegin ../bug-8523.lyx > lyx-log.txt 2>&1
>
>> >
>
>> > Though, the test should not try to modify the file (e.g., forcing Ctrl-S
>> > or similar).
>
>> >
>
>> > Also, don't know whether it works when launched through the cmake
>> > infrastructure.
>
>> >
>
>> > Would that suffice/work with cmake?
>
>>
>
>> Not currently. The tests are run in the CMake user build directory,
>
>> which can be anywhere and is specified by the user. CMake must know
>
>> where the source path is though because it knows this information when
>
>> building so hopefully Kornel will have an idea.
>
>
>
> "test.lyx" already is in the build directory (autotests/out-home/), so
> ../bug-8523.lyx
>
> would be in build directory "autotests". What is the problem? Copy an
> existing .lyx-files to build-dir?
>
> Should be easy.

Ah yes you're right. You are convincing me more and more that
out-of-source builds have many advantages and no disadvantages. So all
is needed is just to copy the .lyx file there.

Scott

Reply via email to