Thread
Thread Index
Message
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dieter Baron schrieb:
> hi,
>
>> The regression tests use the runtest shellscript which I can translate
>> into cmake code as far as necessary, but they currently depend on being
>> run in the source directory, meaning there is no way to find out from
>> the *.test files if an argument is a file and in which directory it is
>> supposed to be.
>
> The runtest script first sets up a sandbox directory to run the test
> in, by copying all files specified via file and file-del from the
> source directory into a newly created directory. This is necessary
> because some test cases alter their input files, which would break
> later test using the same file.
>
> You would need to translate that to cmake as well (also the result
> comparison, which again uses files from the source directory). Maybe
> it would be easier to translate the runtest script to a batch file?
Hm, not really, because how would you replace unix utils like sort,
diff, tr, etc. There are some parts that can be easily translated (I am
currently trying it) but I guess some parts still won't work without
using either unix utils or cmake.
>
>> So I'd like to propose something like
>>
>> args @regressionpath%test.zip@localhost
>>
>> instead of
>>
>> args test.zip
>>
>> where @regressionpath@ would be replaced by the path to the source
>> directory.
>
> See above, this is wrong. You do *not* want to give the file in the
> source directory as an argument.
Yeah, I already found that myself.
This shouldn't be a big problem though as copying the files into the
builddirectory should be doable.
>
> yours,
> dillo
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (MingW32)
iEYEARECAAYFAktLIIcACgkQi49rfdk/G3YUigCgjO3IdIB9GQnckfhF272YcPQZ
El4AoJXHRgEH/oMxF0XaseULPChqIjar
=B0j2
-----END PGP SIGNATURE-----
Made by MHonArc.
|