libzip: libzip-discuss: Re: libzip regression tests

Thread

Thread Index

Message

From: Dieter Baron <dillo%danbala.tuwien.ac.at@localhost>
To: Patrick Spendrin <ps_ml%gmx.de@localhost>
Subject: Re: libzip regression tests
Date: Mon, 11 Jan 2010 09:58:45 +0100

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?

> 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.

                                                yours,
                                                dillo

Made by MHonArc.